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

Issue with abort calls when using f2py command #140

Open
bernardopacini opened this issue Feb 2, 2021 · 0 comments
Open

Issue with abort calls when using f2py command #140

bernardopacini opened this issue Feb 2, 2021 · 0 comments

Comments

@bernardopacini
Copy link
Contributor

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

@bernardopacini bernardopacini changed the title Issue with abort calls with using f2py command Issue with abort calls when using f2py command Feb 2, 2021
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

1 participant