-
Notifications
You must be signed in to change notification settings - Fork 43
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
Notebook does not work on Windows, "ImportError: DLL load failed while importing shell: The specified procedure could not be found." #277
Comments
I did try Output:
|
I also read https://jupyter-notebook.readthedocs.io/en/latest/troubleshooting.html#resolving-pywin32-issues and tried using:
Again, same error when executing the first cell. |
A short and faster reproducer: mamba env create -f https://raw.githubusercontent.com/ProjectPythia/pythia-foundations/main/environment.yml
conda activate pythia-book-dev
python -c 'import pythia_datasets' |
@phil-blain thanks for this concise reproducer! It doesn't sound like the error has anything to do with Pythia content per se, but maybe someone on our team has some knowledge about pywin32 and Jupyter notebooks. |
Yes I agree. I just wanted to report since it's the environment description you ship with the repo that creates this user experience on Windows... |
OK, even smaller env that reproduces:
Without |
Ok, wrote too fast, the environment.yml itself constrains Python to 3.8 ... |
And removing I could submit a PR to do that. |
Interesting, I can't remember if there was a good reason that the I suggest submitting a PR that removes that, and we'll see if all the tests pass. |
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: ProjectPythia#277
PR is here: #279 |
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: #277
What happened: I tried to open the "Calculating ENSO with Xarray" tutorial on my Windows laptop. It does not work because of some error with package
pywin32
.What you expected to happen: It works.
Minimal Complete Verifiable Example:
then open "enso-xarray" Notebook and execute the first cell. Result:
ImportError: DLL load failed while importing shell: The specified procedure could not be found.
Anything else we need to know?: I read https://github.com/mhammond/pywin32#the-specified-procedure-could-not-be-found--entry-point-not-found-errors but I'm not administrator on my computer...
Environment:
The text was updated successfully, but these errors were encountered: