question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

environment.yml works, environment.yaml doesn't

See original GitHub issue

Bug description

Hey 👋 Not sure if this is a bug or an intentional feature so opened an issue for discussion.

When building an image using conda, repo2docker accepts environment.yml files but does not pick up environment.yaml files. Is there a reason for this that I’m missing?

Expected behaviour

Both the .yml and .yaml file extensions would be valid and repo2docker would successfully build both envs with conda.

Actual behaviour

Only the .yml file is recognised. Building with .yaml succeeds but none of the requested packages are installed.

How to reproduce

I created two repos to test this on mybinder.org.

.yml extension: Repo: https://github.com/sgibson91/test_repo_yml Binder link: https://mybinder.org/v2/gh/sgibson91/test_repo_yml/main

.yaml extension: Repo: https://github.com/sgibson91/test_repo_yaml Binder link: https://mybinder.org/v2/gh/sgibson91/test_repo_yaml/main

Both repos contain environment files that should install numpy, pandas and matplotlib. By clicking the binder links, opening a new notebooks and attempting to import any (or all) of these packages is successful in the .yml repo and fails in the .yaml repo.

Your personal set up

Currently testing on mybinder.org

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
betatimcommented, Oct 22, 2020

I wouldn’t prioritise it because I don’t think it is a common problem 😕

1reaction
betatimcommented, Oct 22, 2020

I would not add support for this. I think environment.yaml is pretty rare and it seems people have “agreed” that environment.yml is the name everyone should use. It is also the one mentioned in documentation like https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-from-an-environment-yml-file

Read more comments on GitHub >

github_iconTop Results From Across the Web

conda-env example environment.yml file doesn't work #9161
I'd expect the environment to be created. I have spend quite a while figuring out what's wrong with my .yml file which was...
Read more >
conda fails to create environment from yml - Stack Overflow
The simplest solution to this is to omit the build info from the environment definition export. conda env export -n py36 -f py36.yml...
Read more >
How to automatically create a environment.yml that works with ...
This how-to explains how to create a environment.yml that specifies all installed packages and their precise versions from your environment.
Read more >
Set up an anaconda environment from ... - YouTube
This demonstrates setting up an anaconda environment from an environment. yml file on Windows. It is for our Data Analysis Workflows course, ...
Read more >
Managing environments - Conda
With conda, you can create, export, list, remove, and update environments that have different versions of Python and/or packages installed in them.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found