CNES / pangeo-pyinterp

Python library for optimized interpolation.
https://pangeo-pyinterp.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
117 stars 17 forks source link

Can't import pyinter.fill #23

Closed JuGoCa7 closed 9 months ago

JuGoCa7 commented 1 year ago

I'm working on Windows 10 and I've installed the Boost C++, Eigen3, GNU Scientific Library, and pybind11 libraries. Then I've proceeded to conda install on the Anacona Prompt the pyinterp library. But when I intended to import some functions, the next occurred:

import pyinterp.fill

This is the complete traceback: << Cell In[2], line 1 import pyinterp.fill

File ~\anaconda3\lib\site-packages\pyinterp__init__.py:9 from . import geodetic, geohash, version

File ~\anaconda3\lib\site-packages\pyinterp\geodetic__init__.py:9 from .. import interface

File ~\anaconda3\lib\site-packages\pyinterp\interface.py:14 from . import core

ImportError: DLL load failed while importing core: the specified module can not be found.

I've searched online about what DLL file could be missing, but no responses yet.

I would appreciate if you could guide me about what files I might be missing or if it is necessary to uninstall it and reinstall it in a different way, thank you very much in advance

fbriol commented 1 year ago

The version of the compiler used by conda-forge on Windows has changed. I have rebuilt a new package (in progress). Let me know if this solves your problem.

JuGoCa7 commented 1 year ago

Hello @fbriol, thanks very much for your quick response. I've followed the installation instructions of your build. Now the problem is that the solving environment part of the conda installation is taking forever (more than 1 hour in the same step). I've tried this solution, however it keeps getting stuck in the solving environment step.

Thanks in advance.

fbriol commented 1 year ago

You can try the latest version 2023.5.0 to see if the problem is fixed.

treden commented 1 year ago

Hi @fbriol, Same problem here, even with the latest version 2023.5.0. Is there any fix ?

Here is the pyinterp error (after running a swot_simulator instance in the cmd promp):

File "C:\Users\ytt\AppData\Local\anaconda3\lib\site-packages\swot_simulator\plugins\ssh\aviso.py", line 10, in import pyinterp.backends.xarray File "C:\Users\ytt\AppData\Local\anaconda3\lib\site-packages\pyinterp__init.py", line 9, in from . import geodetic, geohash, version File "C:\Users\ytt\AppData\Local\anaconda3\lib\site-packages\pyinterp\geodetic\init__.py", line 9, in from .. import interface File "C:\Users\ytt\AppData\Local\anaconda3\lib\site-packages\pyinterp\interface.py", line 14, in from . import core ImportError: DLL load failed while importing core: The specified module could not be found.

Thanks !

fbriol commented 9 months ago

This problem is usually fixed in the latest release of the library. Don't hesitate to reopen this issue if you find it persists.