Doc issues
pre-commit
alias doesn't work properly
1. Run
bdt dev checkout bob.bio.base
Error
Traceback (most recent call last):
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/bin/bdt", line 11, in <module>
sys.exit(main())
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/bob/devtools/scripts/development.py", line 70, in checkout
subprocess.check_call(["pre-commit", "install"], cwd=dest)
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/subprocess.py", line 368, in check_call
retcode = call(*popenargs, **kwargs)
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/subprocess.py", line 349, in call
with Popen(*popenargs, **kwargs) as p:
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/subprocess.py", line 1821, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'pre-commit'
2. Additional information required regarding virtual packages (I think)
bob.bio.face
and run :
Checkout bdt dev create -vv dev
Error:
The reported errors are:
- Encountered problems while solving:
- - nothing provides __cuda needed by tensorflow-2.7.0-cuda102py310hcf4adbc_0
-
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/bin/bdt", line 11, in <module>
sys.exit(main())
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/bob/devtools/scripts/bdt.py", line 43, in _decorator
value = view_func(*args, **kwargs)
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/bob/devtools/scripts/create.py", line 268, in create
deps = parse_dependencies(recipe_dir, conda_config)
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/bob/devtools/build.py", line 333, in parse_dependencies
metadata = get_rendered_metadata(recipe_dir, config)
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/bob/devtools/build.py", line 239, in get_rendered_metadata
return conda_build.api.render(recipe_dir, config=config)
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/conda_build/api.py", line 42, in render
metadata_tuples = render_recipe(recipe_path, bypass_env_check=bypass_env_check,
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/conda_build/render.py", line 860, in render_recipe
rendered_metadata = distribute_variants(m, variants,
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/conda_build/render.py", line 763, in distribute_variants
mv.parse_until_resolved(allow_no_other_outputs=allow_no_other_outputs,
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/conda_build/metadata.py", line 1084, in parse_until_resolved
self.parse_again(permit_undefined_jinja=False,
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/conda_build/metadata.py", line 1006, in parse_again
self.meta = parse(self._get_contents(permit_undefined_jinja,
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/conda_build/metadata.py", line 1601, in _get_contents
rendered = template.render(environment=env)
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/jinja2/environment.py", line 1301, in render
self.environment.handle_exception()
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/jinja2/environment.py", line 936, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/remote/idiap.svm/user.active/lcolbois/bob_dev/run_ijbc/bob.bio.face/conda/meta.yaml", line 41, in top-level template code
- setuptools
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/conda_build/jinja_context.py", line 228, in pin_compatible
pins, _, _ = get_env_dependencies(m, 'host', m.config.variant)
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/conda_build/render.py", line 138, in get_env_dependencies
actions = environ.get_install_actions(tmpdir, tuple(dependencies), env,
File "/idiap/temp/lcolbois/miniconda3/envs/bdt/lib/python3.9/site-packages/boa/cli/mambabuild.py", line 133, in mamba_get_install_actions
raise err
conda_build.exceptions.DependencyNeedsBuildingError: Unsatisfiable dependencies for platform linux-64: {MatchSpec("tensorflow==2.7.0=cuda102py310hcf4adbc_0")}
Possible fix : first run
export CONDA_OVERRIDE_CUDA=11.6
Edited by Laurent COLBOIS