Skip to content

error installing on mac M1 system #267

@dandante

Description

@dandante

Hello,

I have read many of the related issues that people are having and tried many of the solutions but I am still having trouble. First I installed pyo with pip but when I tried to import it I got

ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyo/_pyo.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace (_Pa_AbortStream)

I then installed from source by cloning the repo and doing sudo python3 setup.py install and that succeeded, but when I import pyo I get:

ModuleNotFoundError: No module named 'pyo._pyo'

If I run python3 -c 'import pyo' from a different directory (other than the root of the repo) I am back to the original error of symbol not found in flat namespace.

Dependencies are installed via homebrew.
I set up the following before building from source:

export LIBRARY_PATH="/opt/homebrew/lib:$LIBRARY_PATH"
export CPATH="/opt/homebrew/include:$CPATH"

Still having trouble.

Hope someone can help. Does this package run on an M1? Do I need to build it under Rosetta? BTW I am using an ARM (M1) version of Python.

Does pyo (including the wx/gui portions) work under Docker? I'd settle for a working docker image for the time being.

Thanks

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