Skip to content
This repository was archived by the owner on Dec 31, 2025. It is now read-only.
This repository was archived by the owner on Dec 31, 2025. It is now read-only.

Cannot Import MMA from pyMMA #63

@nettelbladt

Description

@nettelbladt

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions