boa: conda mambabuild failing with "KeyError: Dist" again

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?)

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 19 (11 by maintainers)

Commits related to this issue

Most upvoted comments

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.

I’ll fix it later today. Sorry folks!

Sorry for the bug! Indeed we just merged a new implementation of the Channel class that is probably responsible for this regression. For now you could pin to mamba 0.14 and boa 0.5 until this is fixed