-
Notifications
You must be signed in to change notification settings - Fork 81
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
f2py-f90wrap v0.2.15 now leads to "Fatal Error: Cannot open module file xyz.mod’ for reading" #226
Comments
I can confirm this looks like a side effect of mamba uninstall meson
mamba install python=3.11 |
Thanks for reporting. f90wrap also depends on and uses Meson as its build system, so this should not directly be the reason for the problem, but it could very well be that the changes to f2py which has broken the monkey-patching done by |
I got the same problem and figured it is an upstream bug on numpy/numpy#27018 . My current workaround is to use python<3.12 and setuptools<74 where the distutils backend of f2py still works. This is no permanent solution. Since upstream is not active on the problem with the meson backend and extra objects and modules not parsed by f2py, a possibility would be to fix it here in |
Part of a workaround (faster than expected and also posted upstream):
This worked for me with python 3.12 with setuptools 75.6.0 to compile. However, the object code still cannot be found when loading the python module, maybe it is not linked. |
Almost, but the relevant |
I am not sure this is a
f90wrap
issue per se, but want to report it in case others bump into this issue. It may be a side effect ofnumpy f2py
now relying onmeson
to build stuff.Issue
I have a python wrapper in jmp75/air2stream at commit 02fc71 that builds fine in a conda environment that includes:
I am trying to run the same wrapping build script into a new environment with:
This fails in the script regen_wrapper.sh at the step calling
f2py-f90wrap
:The text was updated successfully, but these errors were encountered: