gdstk: Error importing gdstk >= 0.9.38 on Mac M2
between 0.9.37 and 0.9.38, I am not able to import gdstk properly on my Mac M2.
Must be an issue with something in here
https://github.com/heitzmann/gdstk/compare/v0.9.37...v0.9.38
I tried re-installing cmake and zlib with brew, no luck.
>>> import gdstk
ImportError: dlopen(/Users/twhughes/.pyenv/versions/3.10.9/lib/python3.10/site-packages/gdstk.cpython-310-darwin.so, 0x0002): symbol not found in flat namespace (__ZN5gdstk12error_loggerE)
Note: running MacOS 12.5.1 Monterey
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 21 (3 by maintainers)
Install works on my M2 Apple Silicon machine! 🎉 I think this issue can be closed now.
I’ve added a fix and enabled arm64 wheel builds in release v0.9.48. When installing, you might want to use the pip flag
--only-binaryif it tries to compile from source. Compiling from source should also work, but you need to have all C++ dependencies in place. If anyone with Apple Silicon give this a try, let me know if it works! @tylerflex @sequoiap @jasminabrar