Skip to content
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

pip installation failing. #11

Open
matijacell opened this issue Jun 29, 2023 · 2 comments
Open

pip installation failing. #11

matijacell opened this issue Jun 29, 2023 · 2 comments

Comments

@matijacell
Copy link

Hi, I am trying to install pyspharm. I tried locally building the package which is sucessful (using gfortran 7.4.1), and then I tried a pip installation, which also succeeds in building the project. However, on importing anything spharm related (more specifically, _spherepack) I get the following error:

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

I'm not even sure which DLL dependencies this is referring to, however the DLL in _spherepack is definitely there.

@DWesl
Copy link
Contributor

DWesl commented Jun 4, 2024

python -vvv -d -c 'import ...'

will provide more information on what it is looking for and where. Adding >python-import-spharm.log to the end might make it easier to upload the result.

EDIT: Do you have a way to print out the function names in the DLL? NumPy ran into a problem a few years back where explicitly exporting one function disabled the export of the function Python needs to create the module object (PyInit__spherepack, I think)

Are there permission issues? I've run into a need to run chmod u+x path/to/whatever.dll for imports to work a few times, but I'm not sure what the Windows equivalent is (assuming you're on Windows).

Note that this requires python<3.12, since Python removed distutils and NumPy followed with numpy.distutils, and pyspharm uses the latter.

@DWesl
Copy link
Contributor

DWesl commented Jul 12, 2024

Can it find the fortran runtime library? You might need to copy that into the same directory as _spherepack.*.dll. Do you know of a Windows equivalent to ldd to print out the DLLs required by a given library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants