Skip to content

Python wrapper feature: unable to import pysu2 by Python on OSX  #1606

Open
@yiren6

Description

@yiren6

Describe the bug
Python cannot import pysu2 module with error message:

import pysu2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/.../feature_pysu2_fsi_adjoint/SU2_PY/pySU2/pysu2.py", line 17, in <module>
    import _pysu2
ModuleNotFoundError: No module named '_pysu2'

This issue seems to be persistent for different OSX machines under standard build when enabling python wrapper. Tried to build wrapper through swig manually and yet this problem persists.

Desktop (please complete the following information):

  • OS: Mac OSX 12.3
  • C++ compiler and version: apple clang 13.1.6
  • MPI implementation and version: mpich 4.0.1
  • SU2 Version: 7.3
  • Python Version: 3.9.7
  • SWIG Version: 4.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions