MacOS wheel only contains x86_64 version of the libcapstone.dylib despite the package claims to be universal #2301
Labels
bug
Something is not working as it should
build & packaging
Build system and packaging related
duplicate
Milestone
I installed capstone using
pip install capstone
and the installation succeeds. However, when I try to run Python and import capstone, I am met with the following error:I checked the wheel for macOS (https://files.pythonhosted.org/packages/56/c9/936a81a0707fbd2650a94c9297e36c4c2cf34f51695fb1f6fd39de1b3247/capstone-5.0.1-py3-none-macosx_10_9_universal2.whl), and found the
libcapstone.dylib
is x86_64 only, and not universal, as it claims to be (on https://pypi.org/project/capstone/#files).I tested
brew install capstone
and it gives me an arm64libcapstone.dylib
in/opt/homebrew/Cellar/capstone/5.0.1/lib
. I figured out a workaround that is to copy the dylib from the brew installation folder to the pip installation folder.Work environment
Expected behavior
Actual behavior
Steps to reproduce the behavior
CODE
to make your code visibleAdditional Logs, screenshots, source code, configuration dump, ...
Drag and drop zip archives containing the Additional info here, don't use external services or link.
Screenshots can be directly dropped here.
The text was updated successfully, but these errors were encountered: