madebr / pyOpt

Fork of http://www.pyopt.org/ (python3 compatible)
Other
84 stars 35 forks source link

Cannot Import MMA from pyMMA #63

Open nettelbladt opened 1 year ago

nettelbladt commented 1 year ago

Hello!

I Installed the pyOpt package as the instructions prescribe, but all shared libraries fail to import. Here is a sample trace for the MMA package. I am working on a M1 Max MacBook Pro.

Traceback (most recent call last):
  File "/Users/nettel/miniforge3/envs/topology-optim/lib/python3.11/site-packages/pyOpt/pyMMA/pyMMA.py", line 43, in <module>
    from . import mma
ImportError: dlopen(/Users/nettel/miniforge3/envs/topology-optim/lib/python3.11/site-packages/pyOpt/pyMMA/mma.cpython-311-darwin.so, 0x0002): symbol not found in flat namespace '_mma_'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/nettel/code/MMAstructures/pyMMAcode.py", line 3, in <module>
    from pyOpt.pyMMA import pyMMA
  File "/Users/nettel/miniforge3/envs/topology-optim/lib/python3.11/site-packages/pyOpt/pyMMA/pyMMA.py", line 45, in <module>
    raise ImportError('MMA shared library failed to import')
ImportError: MMA shared library failed to import

Apologies if I am not providing enough information, I am not entirely sure what I am doing!