mamba-org / setup-micromamba

GitHub Action to set up micromamba
MIT License
97 stars 15 forks source link

Environment File Name Specification Error #149

Closed karkir0003 closed 1 year ago

karkir0003 commented 1 year ago

I don't understand this error message when passing the environment-file parameter into the setup-micromamba action. Can you help clarify?

Error: Could not determine environment name from file /training/environment.yml
Error: Error: Error: ENOENT: no such file or directory, open '/training/environment.yml'
Error: If your environment file is not YAML containing `name` at the top level, please specify the environment name directly.
karkir0003 commented 1 year ago

https://github.com/DSGT-DLP/Deep-Learning-Playground/actions/runs/6230333932/job/16910193521

pavelzw commented 1 year ago

no such file or directory, open '/training/environment.yml'

it cannot file the file /training/environment.yml.

this has two reasons:

the error message could be a bit more clear

jonashaag commented 1 year ago

@karkir0003 again, please do at least some effort to understand the problem and provide a list of things that you have tried that haven't worked out before opening an issue.

karkir0003 commented 1 year ago

no such file or directory, open '/training/environment.yml'

it cannot file the file /training/environment.yml.

this has two reasons:

  • file path was incorrectly specified: should be training/environment.yml
  • The repository was not cloned yet so the environment file doesn’t exist yet

the error message could be a bit more clear

Got it resolved. Turns out that I needed to run the checkout action before the setup-micromamba action. Thanks team!