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
conda env processing to provide more helpful messages #5885
Comments
I ran into the same issue today and wasted an hour googling. This should be improved. |
I ran into the same issue today when trying to debug a problem reported by one of my software's users, but had a hunch and tried using a completely made-up environment file name, with the same result as they reported:
Please, can this situation be detected and an appropriate error message given, like "Specified environment file not found"? This has to be a common occurrence, and the error message sends users in completely the wrong direction. Worse, the above examples indicate that users will get the same message for typos within the file, so people who find this issue on the web will have no idea whether it's a problem finding the file or a problem within the file. |
I made the same mistake today:
but my env file was called I didn't realise what the problem was at first, so I tried
As the others suggested, could please improve the error message to say "Environment file not found: environment.yml"? |
if the error still persist and you had once created an environment with the name env in your anaconda directory then you should probably make use of the virtual environment to to install the new environment for example. I don't know if that solves the problem for you!!! |
Fix #5885 improve conda env error messages and add extra tests
Hi there, thank you for your contribution to Conda! This issue has been automatically locked since it has not had recent activity after it was closed. Please open a new issue if needed. |
From the Anaconda ML (see last half of this thread ) :
Can you spot the problem? I tried myself, putting that YAML into a file
testml.yaml
, and got:Someone on the ML pointed out the issue: spelling mistake in the YAML. I'd suggest a few things:
improve the error message to say something like:
report any sections that are found that are unexpected and are going to be ignored (such as
dependecies
use something like Kwalify (and perhaps pykwalify ) to test/assert an open schema on the JSON for env files
The text was updated successfully, but these errors were encountered: