I'm currently upgrading to python3.7 my win10 dev machine. And to update a python3 package i need to also upgrade capstone. But when i run pip3 install capstone it failed with these errors. It can be an environment problem, but i can't find the solution.
`ERROR: Command errored out with exit status 1:
command: 'c:\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Admin\AppData\Local\Temp\pip-install-p8haj8f9\capstone\setup.py'"'"'; file='"'"'C:\Users\Admin\AppData\Local\Temp\pip-install-p8haj8f9\capstone\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\Admin\AppData\Local\Temp\pip-record-ir9uh078\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python37\Include\capstone'
cwd: C:\Users\Admin\AppData\Local\Temp\pip-install-p8haj8f9\capstone
Complete output (51 lines):
running install
running build
Building C extensions
-- The C compiler identification is MSVC 19.0.24210.0
-- The CXX compiler identification is MSVC 19.0.24210.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.18/Modules/CMakeTestCCompiler.cmake:66 (message):
The C compiler
"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: C:/Users/Admin/AppData/Local/Temp/pip-install-p8haj8f9/capstone/src/build/CMakeFiles/CMakeTmp
Run Build Command(s):nmake /nologo cmTC_4a6f0\fast && "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe" -f CMakeFiles\cmTC_4a6f0.dir\build.make /nologo -L CMakeFiles\cmTC_4a6f0.dir\build
Building C object CMakeFiles/cmTC_4a6f0.dir/testCCompiler.c.obj
C:\PROGRA~2\MICROS~1.0\VC\bin\cl.exe @C:\Users\Admin\AppData\Local\Temp\nmC2AB.tmp
testCCompiler.c
Linking C executable cmTC_4a6f0.exe
"C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=CMakeFiles\cmTC_4a6f0.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- C:\PROGRA~2\MICROS~1.0\VC\bin\link.exe /nologo @CMakeFiles\cmTC_4a6f0.dir\objects1.rsp @C:\Users\Admin\AppData\Local\Temp\nmC2FA.tmp
RC Pass 1: command "rc /fo CMakeFiles\cmTC_4a6f0.dir/manifest.res CMakeFiles\cmTC_4a6f0.dir/manifest.rc" failed (exit code 0) with the following output:
The system cannot find the file specifiedNMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' : return code '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\nmake.exe"' : return code '0x2'
Stop.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
See also "C:/Users/Admin/AppData/Local/Temp/pip-install-p8haj8f9/capstone/src/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Admin/AppData/Local/Temp/pip-install-p8haj8f9/capstone/src/build/CMakeFiles/CMakeError.log".
Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation. All rights reserved.
NMAKE : fatal error U1064: MAKEFILE not found and no target specified
Stop.
error: [Errno 2] No such file or directory: 'capstone.dll'
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Admin\AppData\Local\Temp\pip-install-p8haj8f9\capstone\setup.py'"'"'; file='"'"'C:\Users\Admin\AppData\Local\Temp\pip-install-p8haj8f9\capstone\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\Admin\AppData\Local\Temp\pip-record-ir9uh078\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python37\Include\capstone' Check the logs for full command output.
WARNING: You are using pip version 20.0.1; however, version 20.2.4 is available.
You should consider upgrading via the 'c:\python37\python.exe -m pip install --upgrade pip' command.`
The output log C:/Users/Admin/AppData/Local/Temp/pip-install-p8haj8f9/capstone/src/build/CMakeFiles/CMakeOutput.log doesn't exist ..
Thanks
I'm currently upgrading to python3.7 my win10 dev machine. And to update a python3 package i need to also upgrade capstone. But when i run pip3 install capstone it failed with these errors. It can be an environment problem, but i can't find the solution.
`ERROR: Command errored out with exit status 1:
command: 'c:\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Admin\AppData\Local\Temp\pip-install-p8haj8f9\capstone\setup.py'"'"'; file='"'"'C:\Users\Admin\AppData\Local\Temp\pip-install-p8haj8f9\capstone\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\Admin\AppData\Local\Temp\pip-record-ir9uh078\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python37\Include\capstone'
cwd: C:\Users\Admin\AppData\Local\Temp\pip-install-p8haj8f9\capstone
Complete output (51 lines):
running install
running build
Building C extensions
-- The C compiler identification is MSVC 19.0.24210.0
-- The CXX compiler identification is MSVC 19.0.24210.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.18/Modules/CMakeTestCCompiler.cmake:66 (message):
The C compiler
ERROR: Command errored out with exit status 1: 'c:\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Admin\AppData\Local\Temp\pip-install-p8haj8f9\capstone\setup.py'"'"'; file='"'"'C:\Users\Admin\AppData\Local\Temp\pip-install-p8haj8f9\capstone\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\Admin\AppData\Local\Temp\pip-record-ir9uh078\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python37\Include\capstone' Check the logs for full command output.
WARNING: You are using pip version 20.0.1; however, version 20.2.4 is available.
You should consider upgrading via the 'c:\python37\python.exe -m pip install --upgrade pip' command.`
The output log C:/Users/Admin/AppData/Local/Temp/pip-install-p8haj8f9/capstone/src/build/CMakeFiles/CMakeOutput.log doesn't exist ..
Thanks