ProjectPythia / pythia-foundations

Jupyterbook source for the Foundations collection
http://foundations.projectpythia.org
Apache License 2.0
59 stars 42 forks source link

environment.yml: do not constrain 'python' to 3.8 #279

Closed phil-blain closed 2 years ago

phil-blain commented 2 years ago

The environment that conda (or mamba) creates from this file on Windows does not work; importing 'pythia_datasets' results in a cryptic error:

ImportError: DLL load failed while importing shell: The specified procedure could not be found.

It seems there is some incompatibility between 'pywin32', a dependency of 'jupyter_core' on Windows, and 'appdirs' (a dependency of pythia_dataset's dependency 'pooch'), at least under Python 3.8.

Fix this by lifting the version constrain on the 'python' package. This creates an environment with Python 3.10, where importing 'pythia_datasets' works correctly.

Closes: https://github.com/ProjectPythia/pythia-foundations/issues/277

github-actions[bot] commented 2 years ago

This pull request is being automatically built with GitHub Actions and Netlify. To see the status of your deployment, click below.

🔍 Git commit SHA: 0ea1dbe4efb59bb19144211e5065721c4e1ce86e ✅ Deployment Preview URL: https://627592f6ca027706d3172c1f--pythia-foundations.netlify.app

brian-rose commented 2 years ago

Thanks for this contribution @phil-blain!

dcamron commented 2 years ago

Hey @phil-blain, we really appreciate the issues you've opened and this PR. Can we send you a Project Pythia sticker? If so, email me at dcamron@ucar.edu and we can make that happen! Either way, much appreciated.