Skip to content
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

Error loading modules with variant path #43

Open
ScottWales opened this issue Jun 22, 2023 · 0 comments
Open

Error loading modules with variant path #43

ScottWales opened this issue Jun 22, 2023 · 0 comments

Comments

@ScottWales
Copy link
Contributor

Loading the conda modules with

module use /g/data/hh5/public/modules/conda
module load analysis3-23.01

is failing without an error message due to how the module works out which environment to load at https://github.com/coecms/conda-envs/blob/analysis3/modules/.common.v2#L17. Users see e.g.

$ python -c 'import numpy'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'

A simple fix would be to add a test that [lindex [split [module-info name] {/}] 0] == 'conda' and fail with an error message if it does not, or you could change line 17 to get the last element of the list instead of the second element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant