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 while creating environment. #1

Open
hasan-sayeed opened this issue Feb 3, 2023 · 8 comments
Open

Error while creating environment. #1

hasan-sayeed opened this issue Feb 3, 2023 · 8 comments

Comments

@hasan-sayeed
Copy link

hasan-sayeed commented Feb 3, 2023

I'm facing the following error while trying to create an environment using the command conda env create -f environment.yml.
Any idea how to resolve it?

Thanks.

Solving environment: failed

ResolvePackageNotFound:
  - libffi=3.3
  - libuuid=1.0.3
  - readline=8.1.2
  - pip=23.0
  - _openmp_mutex=5.1
  - ld_impl_linux-64=2.38
  - libgomp=11.2.0
  - libstdcxx-ng=11.2.0
  - ncurses=6.3
  - libgcc-ng=11.2.0```
@mm04926412
Copy link
Contributor

mm04926412 commented Feb 6, 2023

Hello

Can you try opening the .yml file and changing

channels:
  - defaults

to

  channels:
  - anaconda
  - conda-forge
  - defaults

As well as updating your base conda, and pip? This error seems to be coming from the packages not being found in your default conda channels, an update might fix this, as well as the explicit inclusion of conda-forge I outline above.

Please let me know if that helps, and please let me know if adding conda-forge was required, as then this change be pushed.

@SurgeArrester
Copy link
Collaborator

Apologies I haven't had terminal access to address this recently, many thanks to @mm04926412 for your help with this! This should be merged into the master branch now, please let us know if that works and will close the issue

@hasan-sayeed
Copy link
Author

hasan-sayeed commented Feb 6, 2023

@mm04926412 @SurgeArrester Thank you for your response. Still, I'm getting the following error. I was trying to use it on my windows machine. Is that the problem? Was it built on Linux?


ResolvePackageNotFound: 
  - ncurses=6.3
  - libuuid=1.0.3
  - libstdcxx-ng=11.2.0
  - libgomp=11.2.0
  - _openmp_mutex=5.1
  - readline=8.1.2
  - libgcc-ng=11.2.0
  - ld_impl_linux-64=2.38```

@mm04926412
Copy link
Contributor

mm04926412 commented Feb 6, 2023

The last package is explicitly the linux binaries (Linux-64) so Linux will unfortunately be a hard requirement. There might be windows binaries for that package and the others, but I wouldn't know for sure.

I would recommend installing windows subsystem for linux 2 (WSL) on your machine if you lack access to bare metal linux machine, it has GPU pass through if that is required. You can also set up visual studio code to operate on your instance of WSL and then install anaconda.

@SurgeArrester
Copy link
Collaborator

Looking at this issue conda/conda#7311, would it be possible to generate a new environment.yml file from conda with the --no-builds flag and push to the repo @mm04926412?

@SurgeArrester
Copy link
Collaborator

Otherwise, I should have access to Windows and Linux environments from Friday so will investigate properly then! I'll add a second recommendation for WSL though

@SurgeArrester
Copy link
Collaborator

Did you get this working in the end? What was the fix if so?

@mm04926412
Copy link
Contributor

mm04926412 commented Oct 25, 2023 via email

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

3 participants