bvanosnabrugge / summaWorkflow_public

GNU General Public License v3.0
0 stars 4 forks source link

[Package] Conda install leads to missing scipy file error on Windows #40

Open wknoben opened 2 years ago

wknoben commented 2 years ago

Error:

running wrapper for C:/Git_repos/cwarhm/summaWorkflow_public/dependencies/cwarhm-summa\3a_forcing\3_create_shapefile\create_ERA5_shapefile.py
Traceback (most recent call last):
  File "test_bow_at_banff.py", line 53, in <module>
    fm.create_ERA5_shapefile(cwarhm_summa_folder)
  File "C:\Git_repos\cwarhm\summaWorkflow_public\cwarhm\wrappers\cwarhm_summa.py", line 305, in create_ERA5_shapefile
    exec_python_lwd(python_file_to_run)
  File "C:\Git_repos\cwarhm\summaWorkflow_public\cwarhm\wrappers\cwarhm_summa.py", line 59, in exec_python_lwd
    exec(open(script_path).read(), globals(), globals())
  File "<string>", line 18, in <module>
  File "C:\Users\wmk934\Anaconda3\envs\cwarhm-env\lib\site-packages\xarray\__init__.py", line 1, in <module>
    from . import testing, tutorial, ufuncs
  File "C:\Users\wmk934\Anaconda3\envs\cwarhm-env\lib\site-packages\xarray\tutorial.py", line 13, in <module>
    from .backends.api import open_dataset as _open_dataset
  File "C:\Users\wmk934\Anaconda3\envs\cwarhm-env\lib\site-packages\xarray\backends\__init__.py", line 16, in <module>
    from .scipy_ import ScipyDataStore
  File "C:\Users\wmk934\Anaconda3\envs\cwarhm-env\lib\site-packages\xarray\backends\scipy_.py", line 28, in <module>
    import scipy.io
  File "C:\Users\wmk934\Anaconda3\envs\cwarhm-env\lib\site-packages\scipy\__init__.py", line 136, in <module>
    from . import _distributor_init
  File "C:\Users\wmk934\Anaconda3\envs\cwarhm-env\lib\site-packages\scipy\_distributor_init.py", line 59, in <module>
    WinDLL(os.path.abspath(filename))
  File "C:\Users\wmk934\Anaconda3\envs\cwarhm-env\lib\ctypes\__init__.py", line 373, in __init__
    self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'C:\Users\wmk934\Anaconda3\envs\cwarhm-env\lib\site-packages\scipy\.libs\libbanded5x.TNNMG3IXHGJK7NIBT5J6YPEO5XWTOQAJ.gfortran-win_amd64.dll' (or one of its dependencies). Try using the full path with constructor syntax.

Workaround:

conda upgrade scipy

Changes to venv: