Issue with abort calls when using f2py command
bernardopacini opened this issue · 0 comments
bernardopacini commented
I can successfully build and run my code using the f2py-f90wrap
command:
f2py-f90wrap --fcompiler=$(FF90) --build-dir . -c -m _${PYTHON_MODN} -L. -lsrc f90wrap*.f90
However, when I use only the f2py
command as:
f2py --fcompiler=$(FF90) --build-dir . -c -m _${PYTHON_MODN} -L. -lsrc f90wrap*.f90
I run into a namespace error for the abort function call:
>>> import helix_pyf90
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/bernardo_pacini/Documents/HELIX/python_src/helix_pyf90/__init__.py", line 2, in <module>
import _helix_pyf90
ImportError: dlopen(/Users/bernardo_pacini/Documents/HELIX/python_src/_helix_pyf90.so, 2): Symbol not found: _f90wrap_abort_
Referenced from: /Users/bernardo_pacini/Documents/HELIX/python_src/_helix_pyf90.so
Expected in: flat namespace
in /Users/bernardo_pacini/Documents/HELIX/python_src/_helix_pyf90.so
I am not using the -a/--abort-function
flag in either case.
Thank you