You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
OSError: dlopen(/opt/homebrew/lib/python3.11/site-packages/capstone/lib/libcapstone.dylib, 0x0006): tried: '/opt/homebrew/lib/python3.11/site-packages/capstone/lib/libcapstone.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/python3.11/site-packages/capstone/lib/libcapstone.dylib' (no such file), '/opt/homebrew/lib/python3.11/site-packages/capstone/lib/libcapstone.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64'))
I tested brew install capstone and it gives me an arm64 libcapstone.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.
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: