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
[conda-build] issue with package pinning ? #3172
Comments
Please post the information requested in the template. We also need a minimal reproducible test case. |
@msarahan thanks for your quick answer. Here some extra information: So basically the system is running on a CI build on a gitlab repository: It seems to fail when executing this line: The example of this failed job can be found here: https://gitlab.idiap.ch/beat/beat.editor/-/jobs/149048 It uses this conda build configuration file:
For more information:
|
@msarahan, @183amir: Here is a minimal example that reproduces the issue, using git@github.com:AnacondaRecipes/zlib-feedstock.git: $ git clone git@github.com:AnacondaRecipes/zlib-feedstock.git
$ cd zlib-feedstock
$ conda update -n base conda conda-build
# just to ensure we've got the lastest
$ conda build --no-test recipe
# works w/o issues
$ conda build --test recipe
TEST START: recipe
No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.11
WARNING:conda_build.metadata:No numpy version specified in conda_build_config.yaml. Falling back to default numpy value of 1.11
Adding in variants from internal_defaults
INFO:conda_build.variants:Adding in variants from internal_defaults
Leaving build/test directories:
Work:
/idiap/user/aanjos/conda/conda-bld/work
Test:
/idiap/user/aanjos/conda/conda-bld/test_tmp
Leaving build/test environments:
Test:
source activate /idiap/user/aanjos/conda/conda-bld/_test_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_
Build:
source activate /idiap/user/aanjos/conda/conda-bld/_build_env
Traceback (most recent call last):
File "/idiap/user/aanjos/conda/bin/conda-build", line 11, in <module>
sys.exit(main())
File "/idiap/user/aanjos/conda/lib/python3.6/site-packages/conda_build/cli/main_build.py", line 438, in main
execute(sys.argv[1:])
File "/idiap/user/aanjos/conda/lib/python3.6/site-packages/conda_build/cli/main_build.py", line 408, in execute
action(recipe, config)
File "/idiap/user/aanjos/conda/lib/python3.6/site-packages/conda_build/cli/main_build.py", line 348, in test_action
return api.test(recipe, move_broken=False, config=config)
File "/idiap/user/aanjos/conda/lib/python3.6/site-packages/conda_build/api.py", line 227, in test
stats=stats)
File "/idiap/user/aanjos/conda/lib/python3.6/site-packages/conda_build/build.py", line 1835, in test
config)
File "/idiap/user/aanjos/conda/lib/python3.6/site-packages/conda_build/build.py", line 1805, in construct_metadata_for_test
m, hash_input = _construct_metadata_for_test_from_recipe(recipedir_or_package, config)
File "/idiap/user/aanjos/conda/lib/python3.6/site-packages/conda_build/build.py", line 1691, in _construct_metadata_for_test_from_recipe
metadata = finalize_metadata(metadata)
File "/idiap/user/aanjos/conda/lib/python3.6/site-packages/conda_build/render.py", line 457, in finalize_metadata
output = m.get_rendered_output(m.name())
File "/idiap/user/aanjos/conda/lib/python3.6/site-packages/conda_build/metadata.py", line 2047, in get_rendered_output
permit_undefined_jinja=permit_undefined_jinja):
File "/idiap/user/aanjos/conda/lib/python3.6/site-packages/conda_build/metadata.py", line 2037, in get_rendered_outputs_section
self.parse_until_resolved()
File "/idiap/user/aanjos/conda/lib/python3.6/site-packages/conda_build/metadata.py", line 980, in parse_until_resolved
bypass_env_check=bypass_env_check)
File "/idiap/user/aanjos/conda/lib/python3.6/site-packages/conda_build/metadata.py", line 924, in parse_again
bypass_env_check=bypass_env_check),
File "/idiap/user/aanjos/conda/lib/python3.6/site-packages/conda_build/metadata.py", line 1494, in _get_contents
rendered = template.render(environment=env)
File "/idiap/user/aanjos/conda/lib/python3.6/site-packages/jinja2/asyncsupport.py", line 76, in render
return original_render(self, *args, **kwargs)
File "/idiap/user/aanjos/conda/lib/python3.6/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/idiap/user/aanjos/conda/lib/python3.6/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/idiap/user/aanjos/conda/lib/python3.6/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "/remote/idiap.svm/user.active/aanjos/work/bob/zlib-feedstock/recipe/meta.yaml", line 15, in top-level template code
# mostly OK, but some scary symbol removal. Let's try for trusting them.
File "/idiap/user/aanjos/conda/lib/python3.6/site-packages/conda_build/jinja_context.py", line 313, in pin_subpackage
raise ValueError("Bug in conda-build: we need to have info about other outputs in "
ValueError: Bug in conda-build: we need to have info about other outputs in order to allow pinning to them. It's not here. The problem seems to happen when you test only (and not build the package). This is currently breaking a lot of our infrastructure and issuing (unnecessary) rebuilds, as we cannot just test already built packages. |
This is probably a regression issue. This used to work for us before. |
I checked - conda-build 3.10.3 is the last to work correctly in this regard. Changes in 3.10.4 likely created the bug. All versions following that have it. |
I will fix this, but I am deprecating this mode of operation. Pass tarball paths to conda-build for testing instead. |
Hi there, thank you for your contribution! This issue has been automatically locked because it has not had recent activity after being closed. Please open a new issue if needed. Thanks! |
Hi,
Could you please help ?
We are having a strange issue related to conda-build and package pinning:
This is the error:
Here is the complete output:
Thanks for your help
The text was updated successfully, but these errors were encountered: