keystone-engine / keystone

Keystone assembler framework: Core (Arm, Arm64, Hexagon, Mips, PowerPC, Sparc, SystemZ & X86) + bindings
http://www.keystone-engine.org
GNU General Public License v2.0
2.31k stars 459 forks source link

failed to install keystone engine on windows 10 python 3.6 #450

Open Jasemalsadi opened 4 years ago

Jasemalsadi commented 4 years ago

I tried to install the keystone engine windows 10 with python 3.6 version but the it telling me that : error: can't copy 'src\build\llvm\lib\libkeystone.so': doesn't exist or not a regular file

Here is full dump of the command output : C:\Users\J>pip3 install cmake Requirement already satisfied: cmake in c:\python3\lib\site-packages You are using pip version 9.0.1, however version 20.0.2 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\Users\J>pip3 install keystone-engine Collecting keystone-engine Using cached https://files.pythonhosted.org/packages/9a/fc/ed0d3f46921bfaa612d9e8ce8313f99f4149ecf6635659510220c994cb72/keystone-engine-0.9.1-3.tar.gz Installing collected packages: keystone-engine Running setup.py install for keystone-engine ... error Complete output from command c:\python3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\J\AppData\Local\Temp\pip-build-k028vxss\keystone-engine\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\J\AppData\Local\Temp\pip-pody9vpi-record\install-record.txt --single-version-externally-managed --compile: c:\python3\lib\site-packages\setuptools\dist.py:331: UserWarning: Normalizing '0.9.1-3' to '0.9.1.post3' normalized_version, running install running build running build_py creating build creating build\lib creating build\lib\keystone copying keystone\arm64_const.py -> build\lib\keystone copying keystone\arm_const.py -> build\lib\keystone copying keystone\hexagon_const.py -> build\lib\keystone copying keystone\keystone.py -> build\lib\keystone copying keystone\keystone_const.py -> build\lib\keystone copying keystone\mips_const.py -> build\lib\keystone copying keystone\ppc_const.py -> build\lib\keystone copying keystone\sparc_const.py -> build\lib\keystone copying keystone\systemz_const.py -> build\lib\keystone copying keystone\x86_const.py -> build\lib\keystone copying keystone__init__.py -> build\lib\keystone running build_clib running custom_build_clib building 'keystone' library '..' is not recognized as an internal or external command, operable program or batch file. running install_lib running install_data error: can't copy 'src\build\llvm\lib\libkeystone.so': doesn't exist or not a regular file

----------------------------------------

Command "c:\python3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\J\AppData\Local\Temp\pip-build-k028vxss\keystone-engine\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\J\AppData\Local\Temp\pip-pody9vpi-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\J\AppData\Local\Temp\pip-build-k028vxss\keystone-engine\ You are using pip version 9.0.1, however version 20.0.2 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\Users\J>pip3 uninstall keystone-engine Cannot uninstall requirement keystone-engine, not installed You are using pip version 9.0.1, however version 20.0.2 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.

feralfenrir commented 4 years ago

I have the same issue but with Debian

sudo pip3 install keystone-engine Collecting keystone-engine Downloading https://files.pythonhosted.org/packages/9a/fc/ed0d3f46921bfaa612d9e8ce8313f99f4149ecf6635659510220c994cb72/keystone-engine-0.9.1-3.tar.gz (2.8MB) 100% |████████████████████████████████| 2.8MB 338kB/s Building wheels for collected packages: keystone-engine Running setup.py bdist_wheel for keystone-engine ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-install-0p_205m3/keystone-engine/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /tmp/pip-wheel-zd45z4wn --python-tag cp37: /usr/lib/python3/dist-packages/setuptools/dist.py:476: UserWarning: Normalizing '0.9.1-3' to '0.9.1.post3' normalized_version, running bdist_wheel running build running build_py creating build creating build/lib creating build/lib/keystone copying keystone/sparc_const.py -> build/lib/keystone copying keystone/systemz_const.py -> build/lib/keystone copying keystone/keystone.py -> build/lib/keystone copying keystone/arm64_const.py -> build/lib/keystone copying keystone/ppc_const.py -> build/lib/keystone copying keystone/keystone_const.py -> build/lib/keystone copying keystone/arm_const.py -> build/lib/keystone copying keystone/hexagon_const.py -> build/lib/keystone copying keystone/x86_const.py -> build/lib/keystone copying keystone/init.py -> build/lib/keystone copying keystone/mips_const.py -> build/lib/keystone running build_clib running custom_build_clib building 'keystone' library ../make-share.sh: 21: cmake: not found installing to build/bdist.linux-x86_64/wheel running install running install_lib creating build/bdist.linux-x86_64 creating build/bdist.linux-x86_64/wheel creating build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data creating build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib creating build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone copying build/lib/keystone/sparc_const.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone copying build/lib/keystone/systemz_const.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone copying build/lib/keystone/keystone.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone copying build/lib/keystone/arm64_const.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone copying build/lib/keystone/ppc_const.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone copying build/lib/keystone/keystone_const.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone copying build/lib/keystone/arm_const.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone copying build/lib/keystone/hexagon_const.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone copying build/lib/keystone/x86_const.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone copying build/lib/keystone/init.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone copying build/lib/keystone/mips_const.py -> build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/purelib/keystone running install_data creating build/bdist.linux-x86_64/wheel/keystone_engine-0.9.1.post3.data/data creating build/bdist.linux-x86_64/wheel/usr creating build/bdist.linux-x86_64/wheel/usr/lib creating build/bdist.linux-x86_64/wheel/usr/lib/python3 creating build/bdist.linux-x86_64/wheel/usr/lib/python3/dist-packages creating build/bdist.linux-x86_64/wheel/usr/lib/python3/dist-packages/keystone error: can't copy 'src/build/llvm/lib/libkeystone.so': doesn't exist or not a regular file


Failed building wheel for keystone-engine Running setup.py clean for keystone-engine Failed to build keystone-engine

KevinWang22 commented 4 years ago

I got the same issue. Had you solved it?

aquynh commented 4 years ago

try to install our new Pypi package with:

pip install keystone-engine --pre

and see if Keystone is properly installed for you.