belangeo / pyo

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

ImportError: symbol not found in flat namespace #243

Closed radkoff closed 2 years ago

radkoff commented 2 years 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 2 years 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 2 years 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!