Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pip install capstone doesn't work #2284

Closed
ScraperMan2002 opened this issue Feb 29, 2024 · 2 comments
Closed

Pip install capstone doesn't work #2284

ScraperMan2002 opened this issue Feb 29, 2024 · 2 comments
Labels
Milestone

Comments

@ScraperMan2002
Copy link

ScraperMan2002 commented Feb 29, 2024

I use "pip install capstone" to install capstone because some program called Qiling uses it, but when I run the program that calls Qiling that calls capstone, I get this:

OSError: dlopen(/Users/[MYUSERNAME]/Library/Python/3.9/lib/python/site-packages/capstone/lib/libcapstone.dylib, 0x0006): tried: '/Users/[MYUSERNAME]/Library/Python/3.9/lib/python/site-packages/capstone/lib/libcapstone.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/[MYUSERNAME]/Library/Python/3.9/lib/python/site-packages/capstone/lib/libcapstone.dylib' (no such file), '/Users/[MYUSERNAME]/Library/Python/3.9/lib/python/site-packages/capstone/lib/libcapstone.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

What's going on? I've tried everything like installing capstone via GitHub, installing capstone via brew, nothing works.

@Rot127 Rot127 added the python bindings label Mar 19, 2024
@Rot127
Copy link
Collaborator

Rot127 commented Mar 20, 2024

This was fixed in #2221. But the new version was not yet released. You can build the Python bindings either on your own, or wait until v5.0.2

@Rot127 Rot127 added this to the v5.0.2 milestone Mar 20, 2024
@Rot127
Copy link
Collaborator

Rot127 commented Mar 20, 2024

Ah, just found the duplicate issue: #2066

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants