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

Creating spack env fails because of special characters (dot) in env name #29

Open
manodeep opened this issue Dec 23, 2024 · 0 comments
Open

Comments

@manodeep
Copy link

manodeep commented Dec 23, 2024

Following the documentation in the README, I tried to create a new environment

[~/codes/access-nri @gadi05] spack env create access-esm1.6 spack.yaml
==> Error: 'access-esm1.6': names must start with a letter, and only contain letters, numbers, _, and -.

The command succeeded after removing the . from the env name.

[~/codes/access-nri/ACCESS-ESM1.6 @gadi05] spack env create access-esm1p6 spack.yaml
==> Created environment access-esm1p6 in: /g/data/tm70/ms2335/spack/0.22/environments/access-esm1p6
==> Activate with: spack env activate access-esm1p6

Related: It was also not clear which directory this statement should be executed in - from within the cloned ACCESS-ESM1.6 directory or somewhere else. (Based on the successful spack env command, it seems that the env is created/managed by spack and the working directory for that spack env command does not matter)

Edit: Working directory does matter and has to contain the relevant spack.yaml file 🤦🏾

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