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

ResolvePackageNotFound when trying to set up the virtual environment #14

Open
toast2023 opened this issue Mar 9, 2023 · 1 comment
Open

Comments

@toast2023
Copy link

I keep getting the following error message when trying to set up the virtual environment in chapter 1, using the conda env create -f environment.yml command:

Collecting package metadata (repodata.json): done
Solving environment: failed

ResolvePackageNotFound:

  • mkl=2021.2.0
  • graph-tool=2.43
  • gensim=3.8.3

How can I fix it? I've already tried to install these packages manually and I've also tried to use mamba instead of conda.
(my device specifics are: Apple M1 Pro; macOS Monterey)

@tcrick
Copy link
Collaborator

tcrick commented Aug 31, 2023

Hi there, sorry for the quite late response, but if you (or anyone else) still have this issue, it is because the Apple M1 chip was released after DCSS was written. These use the ARM CPU architecture, sometimes listed as osx-arm64. You will need to install newer versions of some packages. I would suggest using the oldest version that supports osx-arm64, to minimize issues with API changes.

The oldest version of graph-tool you can use is 2.45. There shouldn't be many API changes between that and version 2.43 used in the notebooks.

mkl (intel math kernel library) is for intel processors only - you'll need to remove that line from your environment.yml. I believe the only impact, if any, will be longer runtimes in a small number of situations. If other problems come up, look to the nomkl package, maybe start here: https://stackoverflow.com/questions/71306262/conda-env-broken-after-installing-pytorch-on-m1-intel-mkl-fatal-error

Unfortunately, I believe you will have a lot of trouble with gensim, which was not updated for osx-arm64 until after 4.0 - a major release. The COMPASS section of Chapter 31, using TWEC, requires gensim version 3.8.3 and will not be feasible on your device. TWEC is unlikely to see any updates. The other chapters that use gensim should be possible, but the major release probably has a lot of API changes. You'll need version 4.2.0 or newer.

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

2 participants