Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid version: '' error in bioconda-utils autobump #870

Open
sroener opened this issue Apr 19, 2023 · 0 comments
Open

Invalid version: '' error in bioconda-utils autobump #870

sroener opened this issue Apr 19, 2023 · 0 comments

Comments

@sroener
Copy link

sroener commented Apr 19, 2023

Hi,

I installed bioconda-utils with the following command:

mamba create -n bioconda -c conda-forge -c bioconda bioconda-utils

Everything seemed fine (linitng worked without problems), but when trying to update a package with autobump (bioconda-utils autobump recipes/ config.yml --packages bioconductor-bsgenome.hsapiens.ucsc.hg38) I get the following error.

16:18:41 BIOCONDA ERROR Dropping into debugger
Traceback (most recent call last):
  File "/home/user/anaconda3/envs/bioconda/lib/python3.7/site-packages/bioconda_utils/cli.py", line 73, in wrapper
    func(*args, **kwargs)
  File "<boltons.funcutils.FunctionBuilder-19>", line 5, in autobump
  File "/home/user/anaconda3/envs/bioconda/lib/python3.7/site-packages/bioconda_utils/cli.py", line 92, in wrapper
    func(*args, **kwargs)
  File "/home/user/anaconda3/envs/bioconda/lib/python3.7/site-packages/bioconda_utils/cli.py", line 881, in autobump
    from . import autobump
  File "/home/user/anaconda3/envs/bioconda/lib/python3.7/site-packages/bioconda_utils/autobump.py", line 84, in <module>
    LegacyVersion = parse_version("").__class__  # pylint: disable=invalid-name
  File "/home/user/anaconda3/envs/bioconda/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/version.py", line 197, in __init__
    raise InvalidVersion(f"Invalid version: '{version}'")
pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: ''
Traceback (most recent call last):
  File "/home/user/anaconda3/envs/bioconda/bin/bioconda-utils", line 10, in <module>
    sys.exit(main())
  File "/home/user/anaconda3/envs/bioconda/lib/python3.7/site-packages/bioconda_utils/cli.py", line 1017, in main
    handle_merged_pr,
  File "/home/user/anaconda3/envs/bioconda/lib/python3.7/site-packages/argh/dispatching.py", line 328, in dispatch_commands
    dispatch(parser, *args, **kwargs)
  File "/home/user/anaconda3/envs/bioconda/lib/python3.7/site-packages/argh/dispatching.py", line 174, in dispatch
    for line in lines:
  File "/home/user/anaconda3/envs/bioconda/lib/python3.7/site-packages/argh/dispatching.py", line 277, in _execute_command
    for line in result:
  File "/home/user/anaconda3/envs/bioconda/lib/python3.7/site-packages/argh/dispatching.py", line 260, in _call
    result = function(*positional, **keywords)
  File "<boltons.funcutils.FunctionBuilder-22>", line 5, in autobump
  File "/home/user/anaconda3/envs/bioconda/lib/python3.7/site-packages/bioconda_utils/cli.py", line 132, in wrapper
    func(*args, **kwargs)
  File "<boltons.funcutils.FunctionBuilder-21>", line 5, in autobump
  File "/home/user/anaconda3/envs/bioconda/lib/python3.7/site-packages/bioconda_utils/cli.py", line 61, in wrapper
    func(*args, **kwargs)
  File "<boltons.funcutils.FunctionBuilder-20>", line 5, in autobump
  File "/home/user/anaconda3/envs/bioconda/lib/python3.7/site-packages/bioconda_utils/cli.py", line 73, in wrapper
    func(*args, **kwargs)
  File "<boltons.funcutils.FunctionBuilder-19>", line 5, in autobump
  File "/home/user/anaconda3/envs/bioconda/lib/python3.7/site-packages/bioconda_utils/cli.py", line 92, in wrapper
    func(*args, **kwargs)
  File "/home/user/anaconda3/envs/bioconda/lib/python3.7/site-packages/bioconda_utils/cli.py", line 881, in autobump
    from . import autobump
  File "/home/user/anaconda3/envs/bioconda/lib/python3.7/site-packages/bioconda_utils/autobump.py", line 84, in <module>
    LegacyVersion = parse_version("").__class__  # pylint: disable=invalid-name
  File "/home/user/anaconda3/envs/bioconda/lib/python3.7/site-packages/pkg_resources/_vendor/packaging/version.py", line 197, in __init__
    raise InvalidVersion(f"Invalid version: '{version}'")
pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant