belangeo / pyo

Python DSP module
GNU Lesser General Public License v3.0
1.28k stars 130 forks source link

ImportError: symbol not found in flat namespace #243

Closed radkoff closed 1 year ago

radkoff commented 1 year ago

Hi,

I'm trying to install pyo but I'm unable to import it, getting: ImportError: dlopen(/Users/evan/miniforge3/envs/myenv/lib/python3.8/site-packages/pyo-1.0.4-py3.8-macosx-11.1-arm64.egg/pyo/_pyo.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace '_Pm_Close'

I'm running mac os 12.4 on an M1, python 3.8.13. I've tried installing with pip, and installing from source. Any ideas?

radkoff commented 1 year ago

I had an old version cached in pip, so I did a fresh reinstall with --no-cache-dir. Same result, different path:

ImportError: dlopen(/Users/evan/miniforge3/envs/myenv/lib/python3.8/site-packages/pyo/_pyo.cpython-38-darwin.so, 0x0002): symbol not found in flat namespace '_Pm_Close'

radkoff commented 1 year ago

I had installed portmidi and liblo with homebrew, and setup.py couldn't see their install locations. I built those from source and it worked!