-
Notifications
You must be signed in to change notification settings - Fork 12
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 failed while importing solid for manual installation on Windows #86
Comments
My guess is that the |
i used the 3rd option below, it seemed to have compiled it but i'll try again today... thank you for your feedback!!
|
I would recommend using |
thanks, i tried conda but the error is still there.. i think the .for file is not compiled successfully... i'll see if i can install it on linux wsl |
Well.....I have the same issue. I used conda to install all requested packages (successed). To install Pysolid,
note: This error originates from a subprocess, and is likely not a problem with pip. it seems something wrong in the pyproject.toml. Anyway, can't work.
Therefore, I think "solid.for" is not compiled successfully. The problem could be the commands to built the solid.for . Does anyone know the output after successful compile the solid.for.... |
I change to install gcc version 13.2.0 and GNU fortran 13.2.0 (Rev6, Built by MSYS2 project) Found ninja-1.11.1.git.kitware.jobserver-1 at C:\Users\201113Z10\AppData\Local\Programs\Python\Python312\Scripts\ninja.EXE 1464 | it1=365.25d0*y 1465 | it2=30.6001d0*(m+1) 1487 | ia=(rjd+0.5d0) 1489 | ic=(ib-122.1d0)/365.25d0 1490 | id=365.25d0*ic 1491 | ie=(ib-id)/30.6001d0 1496 | it1=ie*30.6001d0 1497 | idy=ib-id-it1+fmjd 1498 | it2=ie/14.d0 1500 | it3=(7+imo)/10.d0 1504 | ihr=tmp 1506 | imn=tmp 1351 | it1=365.25d0*y 1352 | it2=30.6001d0*(m+1) 1125 | i = ghad/360.d0 1387 | it1=365.25d0*y 1388 | it2=30.6001d0*(m+1) 1411 | mjd=mjd0+tsec/86400.d0 1416 | ia=(rjd+0.5d0) 1418 | ic=(ib-122.1d0)/365.25d0 1419 | id=365.25d0*ic 1420 | ie=(ib-id)/30.6001d0 1425 | it1=ie*30.6001d0 1426 | idy=ib-id-it1+fmjd 1427 | it2=ie/14.d0 1429 | it3=(7+imo)/10.d0 1433 | ihr=tmp 1435 | imn=tmp 736 | subroutine step2lon(xsta,fhr,t,xcorsta) |
Finally, I manually compiled the Fortran code in Windows 11 ...after 3 days.
Now, you may install the pysolid 0.3.2 successfully. The package of pysolid is in the path as: However, when using the following and it will show "DLL load failed..."
After you download the source code and go to the folder "pysolid-0.3.3\src\pysolid"
If it find the c and fortran compiler, it will like figure below: You will have error messages as below: To solve the error messages and the number in the path is the win SDK number:
Copy "rc.exe" and "rcdll.dll" from C:\Program Files (x86)\Windows Kits\10\bin\10.0.22621.0\x64 Again, You will get a " solid.cp310-win_amd64.pyd" with the original files of "solid.for", " init.py", "grid.py", "point.py" in the folder.
Check you have install pysolid 0.3.3
Hope you guys success! |
(python 3.11.3 windows)
when running
python -c "import pysolid; print(pysolid.__version__)"
i get
0.3.2
which means pysolid was installed succesfully ?when i run
python PySolid/tests/grid.py
i get the following error :D:\test_gnss\PySolid\tests\grid.py
Traceback (most recent call last):
File "D:\test_gnss\gnss\Lib\site-packages\pysolid\grid.py", line 45, in calc_solid_earth_tides_grid
from pysolid.solid import solid_grid
ImportError: DLL load failed while importing solid: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\test_gnss\PySolid\tests\grid.py", line 33, in
tide_u) = pysolid.calc_solid_earth_tides_grid(dt_obj, atr, verbose=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\test_gnss\gnss\Lib\site-packages\pysolid\grid.py", line 50, in calc_solid_earth_tides_grid
raise ImportError(msg)
ImportError: Cannot import name 'solid' from 'pysolid'!
Maybe solid.for is NOT compiled yet.
Check instruction at: https://github.com/insarlab/PySolid.
The text was updated successfully, but these errors were encountered: