-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
DLL load issue in Spyder but not in cmd with python/ipython commands #19220
Comments
Hey @veenstrajelmer, thanks for reporting. I don't know what happens in your case, but it's very strange that importing @dalthviz, are you able to reproduce this problem on Windows? |
Hi @veenstrajelmer I was unable to reproduce this :/ Just in case, the env details where I tested this:
|
Hi again @veenstrajelmer , I was checking again all the info here and maybe the problem is due to the usage of the |
I @dalthviz, thanks for this suggestion. It did not work right away, but because of it I removed the Anaconda related paths from the Path environment variable and this solved the issue. Very helpful, thanks! |
Problem Description
I have Anaconda freshly installed quite recently (2022.05) and with the 'append to PATH option' enabled. I can import netCDF4 in cmd when my conda env is activated. However, I cannot import the netCDF4 module in Spyder (running the same conda env), since I get a DLL load error.
What steps reproduce the problem?
import netCDF4
in Spyder (in test_env environment, I checked this), I get the error:What is the expected output? What do you see instead?
Importing the module without an error
Paste Traceback/Error Below (if applicable)
Additional info: this is not because there are paths missing from os.sys.path, they are equal in ipython (cmd) and spyder
Versions
Workaround
I know from experience that if I install netCDF4 via pip, it does work properly. This is also mentioned by this issue: ContinuumIO/anaconda-issues#1671
However, in my case this would mean creating a conda env, pip installing my package (with netCDF4 as a dependency), conda installing the conda-forge specific packages like geopandas/contextily. This is not recommended when using conda/pip mixed (recommended is to first install all that is possible with conda, then install the last bits with pip)
The text was updated successfully, but these errors were encountered: