-
Notifications
You must be signed in to change notification settings - Fork 5
Issues installing on Windows #4
Description
Hi
First off - thanks for making this and making it public - it's been a really useful resource for a project I'm working on!
I have been working with NumbaMinpack on a Windows PC and I've not had issues, after installing the prerequisites. I tried porting the project to a different Windows machine, on which I have gfortran and cmake. Installing via pip finishes with no errors, however when I try and import the module in Python I now get the error:
import NumbaMinpack
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\sglje1\AppData\Roaming\Python\Python39\site-packages\NumbaMinpack\__init__.py", line 1, in <module>
from .driver import *
File "C:\Users\sglje1\AppData\Roaming\Python\Python39\site-packages\NumbaMinpack\driver.py", line 19, in <module>
minpack = ct.CDLL(rootdir+name)
File "C:\ProgramData\Anaconda3\lib\ctypes\__init__.py", line 374, in __init__
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'C:\Users\sglje1\AppData\Roaming\Python\Python39\site-packages\NumbaMinpack\libminpack.dll' (or one of its dependencies). Try using the full path with constructor syntax.
I tried various solutions relating to CDLL, including reinstalling Visual Studio C++ Redistributable, but no dice.
Looking at libminpack.dll itself, it is significantly smaller than the corresponding .dll in the version of Windows which does work (134 KB vs 1753 KB), so I imagine it is likely not installing properly, but given there aren't any errors I'm not sure what the issue could be. Replacing the .dll file with the "working" version seems to fix the issue, which works in the short term but it would still be useful so that collaborators could run the model/do tests without needing to log into their HPC systems! Any ideas what the problem may be?
Cheers,
Jon