question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

conda mambabuild failing with "KeyError: Dist" again

See original GitHub issue

I think the problem discussed in #88, #103 and #104 may have reappeared.

boa 0.6.0 py37h03978a9_0 conda 4.10.3 pypi_0 conda-build 3.21.4 py37haa95532_0 mamba 0.15.0 pypi_0 python 3.7.10 h6244533_0

Traceback (most recent call last): File “C:\Miniconda\Scripts\conda-mambabuild-script.py”, line 10, in <module> sys.exit(main()) File “C:\Miniconda\lib\site-packages\boa\cli\mambabuild.py”, line 142, in main call_conda_build(action, config) File “C:\Miniconda\lib\site-packages\boa\cli\mambabuild.py”, line 127, in call_conda_build **kwargs, File “C:\Miniconda\lib\site-packages\conda_build\api.py”, line 195, in build variants=variants File “C:\Miniconda\lib\site-packages\conda_build\build.py”, line 3079, in build_tree test(pkg, config=metadata.config.copy(), stats=stats) File “C:\Miniconda\lib\site-packages\conda_build\build.py”, line 2871, in test is_conda=metadata.name() == ‘conda’) File “C:\Miniconda\lib\site-packages\conda_build\environ.py”, line 907, in create_env display_actions(actions, index) File “C:\Miniconda\lib\site-packages\conda\exports.py”, line 236, in display_actions actions[‘LINK’] = [index[d] for d in actions[‘LINK’]] File “C:\Miniconda\lib\site-packages\conda\exports.py”, line 236, in <listcomp> actions[‘LINK’] = [index[d] for d in actions[‘LINK’]] KeyError: Dist(channel=‘file://c:/workspace/XXX_master/conda-bld’, dist_name=‘xxx-2.55.0+master.0.7ad9d1-py_0’, name=‘xxx’, fmt=‘.tar.bz2’, version=‘2.55.0+master.0.7ad9d1’, build_string=‘py_0’, build_number=0, base_url=None, platform=None)

Things I would note are:

  • It seems like this may be Windows-specific, or at least it seemed to still work on the parallel Linux build that happens in our Jenkins setup.
  • It’s a noarch build.
  • As you can see in the output, we tell conda-build to output under a local subdirectory, via the CONDA_BLD_PATH env var.

Let me know if there’s anything else I can provide.

(Side note: I think the pypi versions reported there are an artifact of the environment having been created with micromamba?)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:18 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
wolfvcommented, Jul 16, 2021

both will have to be at the latest version, although there is still an issue in the tests on master which I am fixing now.

1reaction
wolfvcommented, Jul 14, 2021

I’ll fix it later today. Sorry folks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

The conda mambabuild command - boa's documentation!
The conda mambabuild command#. Boa comes with an extension to conda build : the conda mambabuild command. It replaces the conda solver with...
Read more >
conda-forge/conda-forge.github.io - Gitter
@SylvainCorlay I just added mamba and it works - but cannot say for sure, since conda fails only sporadically and does work in...
Read more >
mambabuild: Reloading output folder, memory consumption ...
Hi,. I'm not sure what causes this problem and how to analyze it but here it is. This problem occurs with: conda 4.10.3;...
Read more >
ilastik-napari - Coder Social Home
conda activate napari-ilastik-dev mamba build -c ilastik-forge ... install build twine python -m build python -m twine upload --repository testpypi dist/* ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found