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

Difficulties setting up conda environment #88

Open
SimonTreu opened this issue May 15, 2023 · 6 comments
Open

Difficulties setting up conda environment #88

SimonTreu opened this issue May 15, 2023 · 6 comments
Assignees

Comments

@SimonTreu
Copy link
Collaborator

I followed the steps in the README.md to install the conda environment. It always got stuck with the message "failed with initial frozen solve. Retrying with flexible solve" when running
conda install netCDF4 pytables matplotlib arviz
Maybe specific version numbers need to be specified?
It might also be better to provide an environment.yml file

@SimonTreu SimonTreu self-assigned this May 15, 2023
@SimonTreu
Copy link
Collaborator Author

I retried to install the environment with
conda create -n attrici python=3.7 pymc3=3.7
Note that I used = instead of ==

This did not solve the issue

Then I tried to install the packages one by one.

  • installing netCDF4 ran without any issues
  • installing matplotlib, pytables and arviz also showed the "failed with initial frozen solve" but then it continued with the installation.

@SimonTreu
Copy link
Collaborator Author

The arviz package is not used anymore. I removed it from my env

@SimonTreu
Copy link
Collaborator Author

There is an environment.yml in conf/environment.yml
When we have a minimal working environment we should update this in the master branch

@A-Buch
Copy link

A-Buch commented May 16, 2023

At least for the latest ubuntu version on WSL2 the easiest way is to install via the config/environment.yml

ToDo

  • The develop_flood and test_input branches can be deleted/merged. Only the installation part mentioned in the readme.md is useful - it describes the installation for wsl2 which uses the latest ubuntu version
  • merge readme.md about attrici installation from branch develop_flood to interpolated_parameters

@SimonTreu
Copy link
Collaborator Author

@AnnaBooki did you get the code running on the pik cluster?

@A-Buch
Copy link

A-Buch commented May 16, 2023

I also used the yml file to set up the conda env on the cluster

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