py3nj icon indicating copy to clipboard operation
py3nj copied to clipboard

Installation failure on Windows

Open fujiisoup opened this issue 2 years ago • 2 comments

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 avatar Aug 25 '23 10:08 fujiisoup

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

  • libgomp-1.dll
  • libgfortran-5.dll

are missing.

fujiisoup avatar Aug 26 '23 02:08 fujiisoup

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.

fujiisoup avatar Aug 26 '23 02:08 fujiisoup