brainvisa / casa-distro

Unified development environment for BrainVISA projects.
2 stars 1 forks source link

bv sometimes does not find its own environment #333

Closed denisri closed 1 year ago

denisri commented 1 year ago

Describe the bug I have several environments in my ~/casa-distro directory. One is in my PATH. When I run bv bash, it works. But when I run another one, ie ~/casa-distro/brainvisa-overlay-22.04/bin/bv bash it fails with the error:

ValueError: Cannot find any environment to perform the requested. action. base_directory="/home/dr144257/casa_distro/brainvisa-overlay-22.04", selection={'type': None, 'distro': None, 'branch': None, 'system': None, 'image_version': None, 'name': None, 'version': None}

Environment:

denisri commented 1 year ago

OK, it happens in old environments in which the script casa_build_host_links has not run (for me because they share the build directory with another one) and thus use an outdated version of bv.