You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After updating the environment, I got following errors when importing other packages in a .py file: ImportError: DLL load failed while importing _netCDF4: The specified procedure could not be found.
In a Jupiter file everything still worked fine
Probably a Windows issue
Solution
Importing netCDF4 before every other package
Traceback
PS D:\GitHub\COVID19-Model> conda activate COVID_MODEL
PS D:\GitHub\COVID19-Model> & C:/Users/wolfd/.conda/envs/COVID_MODEL/python.exe d:/GitHub/COVID19-Model/notebooks/calibration/woldmuyn_constraint_PI_calibration.py
Traceback (most recent call last):
File "d:\GitHub\COVID19-Model\notebooks\calibration\woldmuyn_constraint_PI_calibration.py", line 23, in <module>
from covid19model.models.base import BaseModel
File "d:\github\covid19-model\src\covid19model\models\base.py", line 7, in <module>
import xarray
File "C:\Users\wolfd\.conda\envs\COVID_MODEL\lib\site-packages\xarray\__init__.py", line 1, in <module>
from . import testing, tutorial, ufuncs
File "C:\Users\wolfd\.conda\envs\COVID_MODEL\lib\site-packages\xarray\tutorial.py", line 13, in <module>
from .backends.api import open_dataset as _open_dataset
File "C:\Users\wolfd\.conda\envs\COVID_MODEL\lib\site-packages\xarray\backends\__init__.py", line 9, in <module>
from .h5netcdf_ import H5NetCDFStore
File "C:\Users\wolfd\.conda\envs\COVID_MODEL\lib\site-packages\xarray\backends\h5netcdf_.py", line 25, in <module>
from .netCDF4_ import (
File "C:\Users\wolfd\.conda\envs\COVID_MODEL\lib\site-packages\xarray\backends\netCDF4_.py", line 33, in <module> import netCDF4
File "C:\Users\wolfd\.conda\envs\COVID_MODEL\lib\site-packages\netCDF4\__init__.py", line 3, in <module>
from ._netCDF4 import *
ImportError: DLL load failed while importing _netCDF4: The specified procedure could not be found.
The text was updated successfully, but these errors were encountered:
woldmuyn
changed the title
Problems installing h5py
Problems installing h5py / importing netCDF4Nov 10, 2022
Technical questions
Description
After updating the environment, I got following errors when importing other packages in a .py file:
ImportError: DLL load failed while importing _netCDF4: The specified procedure could not be found.
In a Jupiter file everything still worked fine
Probably a Windows issue
Solution
Importing
netCDF4
before every other packageTraceback
The text was updated successfully, but these errors were encountered: