fujiisoup / py3nj

Wigner's 3J, 6J, 9J symbols for python
https://py3nj.readthedocs.io/
Apache License 2.0
19 stars 5 forks source link

Installation failure on Windows #26

Open fujiisoup opened 1 year ago

fujiisoup commented 1 year ago

It looks like installation on windows fails. It says 'successfully installed', but while importing py3nj,

ImportError: DLL load failed while importing _wigner: The specified module could not be found.

Related to #25

fujiisoup commented 1 year ago

Looks like this article is related https://www.jamesbowley.co.uk/nbs/ImportError_dll_load_failed_while_importing_cv2.html

Through an investigation with ProcessMonitor, it seems like

are missing.

fujiisoup commented 1 year ago

It seems like my specific problem... My libgomp and libgfortran is in 'C:\Users[username]\AppData\Local\quickstart_fortran\mingw64\bin' and it is in PATH, but python is not able to search this path.

If I add location by os.add_dll_directory(extra_dll_dir), it successfully imported.