static-frame / arraykit

Python C Extensions for StaticFrame
Other
8 stars 2 forks source link

symbol not found in flat namespace '_npy_double_to_half' #108

Closed alexlatif closed 10 months ago

alexlatif commented 1 year ago

https://github.com/static-frame/static-frame/issues/783

flexatone commented 1 year ago

This is the issue seen on Apple Silicon machines:

ImportError: 
dlopen(/Users/x/venv/lib/python3.11/site-packages/arraykit/_arraykit.cpython-311-darwin.so, 0x0002): symbol not found in flat namespace '_npy_double_to_half'
flexatone commented 1 year ago

This may be related to issues that others are having on M1/M2s using Python with compiled resources.

https://github.com/protocolbuffers/protobuf/issues/10571 https://stackoverflow.com/questions/71275212/how-to-fix-python-dlib-error-symbol-not-found-in-flat-namespace-png-do-exp

flexatone commented 10 months ago

https://github.com/pypa/cibuildwheel/issues/1691

flexatone commented 10 months ago

I have finally been able to configure my GitHub Action CI to build arm64 wheels on Apple Silicon runners, which is what is needed to resolve this issue.