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

Funtofem import broken #318

Open
pjuangph opened this issue Mar 31, 2024 · 1 comment
Open

Funtofem import broken #318

pjuangph opened this issue Mar 31, 2024 · 1 comment

Comments

@pjuangph
Copy link

Im trying to run the su2 example steady_onera_wing.
OS: Ubuntu x86_64
Python: 3.11

SU2 install
Build and install su2 along with su2py

Funtofem steps:

  1. modify Makefile.in.info for linux, replace mpiXX with mpicc
  2. make
  3. python setup.py install
    Stuff gets copied to usr/local/bin folder. Install finishes with
Using /usr/local/lib/python3.11/site-packages
Searching for numpy==1.26.4
Best match: numpy 1.26.4
Adding numpy 1.26.4 to easy-install.pth file
Installing f2py script to /usr/local/bin

Using /usr/local/lib/python3.11/site-packages
Finished processing dependencies for funtofem==0.3.7

After that I create a python script that imports funtofem

import funtofem

Here's the error

  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.11/site-packages/funtofem-0.3.7-py3.11-linux-x86_64.egg/funtofem/__init__.py", line 32, in <module>
    from .driver import *
  File "/usr/local/lib/python3.11/site-packages/funtofem-0.3.7-py3.11-linux-x86_64.egg/funtofem/driver/__init__.py", line 8, in <module>
    from ._funtofem_driver import *
  File "/usr/local/lib/python3.11/site-packages/funtofem-0.3.7-py3.11-linux-x86_64.egg/funtofem/driver/_funtofem_driver.py", line 27, in <module>
    from funtofem import TransferScheme
ImportError: /workspaces/funtofem-master/lib/libtransfer_schemes.so: undefined symbol: _ZN3MPI8Datatype4FreeEv
@sean-engelstad
Copy link
Contributor

sean-engelstad commented Apr 4, 2024

Can you try doing pip install . or editable pip install -e . instead of python setup.py install? That is an older command for python package installation. If not, can you try installing with a different python version than 3.11 and see if that is the issue? Also, I recommend using anaconda so you can easily change the python version in a new environment

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