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

Internal AssertionError in build command #768

Open
jakobnissen opened this issue Apr 27, 2022 · 2 comments
Open

Internal AssertionError in build command #768

jakobnissen opened this issue Apr 27, 2022 · 2 comments

Comments

@jakobnissen
Copy link

When locally testing my package (this PR: bioconda/bioconda-recipes#34519), bioconda-utils raises this exception:

09:47:59 BIOCONDA INFO (ERR)   File "/home/jakni/miniconda3/envs/bioconda/lib/python3.7/site-packages/conda_build/build.py", line 2128, in build
INFO:bioconda_utils.utils:(ERR)     create_build_envs(top_level_pkg, notest)
09:47:59 BIOCONDA INFO (ERR)     create_build_envs(top_level_pkg, notest)
INFO:bioconda_utils.utils:(ERR)   File "/home/jakni/miniconda3/envs/bioconda/lib/python3.7/site-packages/conda_build/build.py", line 1996, in create_build_envs
09:47:59 BIOCONDA INFO (ERR)   File "/home/jakni/miniconda3/envs/bioconda/lib/python3.7/site-packages/conda_build/build.py", line 1996, in create_build_envs
INFO:bioconda_utils.utils:(ERR)     channel_urls=tuple(m.config.channel_urls))
09:47:59 BIOCONDA INFO (ERR)     channel_urls=tuple(m.config.channel_urls))
INFO:bioconda_utils.utils:(ERR)   File "/home/jakni/miniconda3/envs/bioconda/lib/python3.7/site-packages/boa/cli/mambabuild.py", line 126, in mamba_get_install_actions
09:47:59 BIOCONDA INFO (ERR)   File "/home/jakni/miniconda3/envs/bioconda/lib/python3.7/site-packages/boa/cli/mambabuild.py", line 126, in mamba_get_install_actions
INFO:bioconda_utils.utils:(ERR)     conflict_packages = parse_problems(str(e))
09:47:59 BIOCONDA INFO (ERR)     conflict_packages = parse_problems(str(e))
INFO:bioconda_utils.utils:(ERR)   File "/home/jakni/miniconda3/envs/bioconda/lib/python3.7/site-packages/boa/cli/mambabuild.py", line 41, in parse_problems
09:47:59 BIOCONDA INFO (ERR)   File "/home/jakni/miniconda3/envs/bioconda/lib/python3.7/site-packages/boa/cli/mambabuild.py", line 41, in parse_problems
INFO:bioconda_utils.utils:(ERR)     assert words[1] == "package"
09:47:59 BIOCONDA INFO (ERR)     assert words[1] == "package"
INFO:bioconda_utils.utils:(ERR) AssertionError
09:47:59 BIOCONDA INFO (ERR) AssertionError
ERROR:bioconda_utils.utils:COMMAND FAILED (exited with 1): /home/jakni/miniconda3/envs/bioconda/bin/conda mambabuild --override-channels --no-anaconda-upload -c conda-forge -c bioconda -c defaults -e /home/jakni/miniconda3/envs/bioconda/conda_build_config.yaml -e /home/jakni/miniconda3/envs/bioconda/lib/python3.7/site-packages/bioconda_utils/bioconda_utils-conda_build_config.yaml recipes/vamb/meta.yaml

Since it is an assert being violated, I assume this is a bug.

@dpryan79
Copy link
Contributor

I guess we should pretty that up a bit, you get that any time the mamba solver can't resolve an environment (the actual error is further up).

@jakobnissen
Copy link
Author

Ah, I see. 👍

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

2 participants