angr/pyvex

pip install fails on Windows for 8.20.1.7

Closed this issue · 5 comments

Python 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)] on win32
>>> ^Z

C:\Users\mike\Documents\projects\angr>pip install pyvex
Collecting pyvex
  Using cached pyvex-8.20.1.7.tar.gz (1.7 MB)
Collecting pycparser
  Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Collecting cffi>=1.0.3
  Using cached cffi-1.14.0-cp37-cp37m-win_amd64.whl (176 kB)
Processing c:\users\mike\appdata\local\pip\cache\wheels\85\32\c7\49857f0670e4488a443dc9faf2378dd20bcfffb42200ab5319\archinfo-8.20.1.7-py3-none-any.whl
Collecting bitstring
  Using cached bitstring-3.1.6-py3-none-any.whl (37 kB)
Processing c:\users\mike\appdata\local\pip\cache\wheels\8b\99\a0\81daf51dcd359a9377b110a8a886b3895921802d2fc1b2397e\future-0.18.2-cp37-none-any.whl
Building wheels for collected packages: pyvex
  Building wheel for pyvex (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\mike\venvs\angrr\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\mike\\AppData\\Local\\Temp\\pip-install-0yj0etdh\\pyvex\\setup.py'"'"'; __file__='"'"'C:\\Users\\mike\\AppData\\Local\\Temp\\pip-install-0yj0etdh\\pyvex\\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 'C:\Users\mike\AppData\Local\Temp\pip-wheel-e9pquhbr'
       cwd: C:\Users\mike\AppData\Local\Temp\pip-install-0yj0etdh\pyvex\
  Complete output (4 lines):
  running bdist_wheel
  running build
  Building libVEX
  error: Unable to build libVEX.
  ----------------------------------------
  ERROR: Failed building wheel for pyvex
  Running setup.py clean for pyvex
Failed to build pyvex
Installing collected packages: pycparser, cffi, archinfo, bitstring, future, pyvex
    Running setup.py install for pyvex ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\mike\venvs\angrr\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\mike\\AppData\\Local\\Temp\\pip-install-0yj0etdh\\pyvex\\setup.py'"'"'; __file__='"'"'C:\\Users\\mike\\AppData\\Local\\Temp\\pip-install-0yj0etdh\\pyvex\\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\mike\AppData\Local\Temp\pip-record-upqxtq0u\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\mike\venvs\angrr\include\site\python3.7\pyvex'
         cwd: C:\Users\mike\AppData\Local\Temp\pip-install-0yj0etdh\pyvex\
    Complete output (4 lines):
    running install
    running build
    Building libVEX
    error: Unable to build libVEX.
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\mike\venvs\angrr\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\mike\\AppData\\Local\\Temp\\pip-install-0yj0etdh\\pyvex\\setup.py'"'"'; __file__='"'"'C:\\Users\\mike\\AppData\\Local\\Temp\\pip-install-0yj0etdh\\pyvex\\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\mike\AppData\Local\Temp\pip-record-upqxtq0u\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\mike\venvs\angrr\include\site\python3.7\pyvex' Check the logs for full command output.

You can solve this by being in the visual studio development command prompt when you install it, but really we should have wheels uploaded. @twizmwazin, did you forget to do the windows wheels for the january 7 release?

I don't believe we ever got around to doing windows wheels from the last release, just linux ones. When I have time, I think it would be a good idea to integrate this in some way with azure pipelines so that we can build wheels for all the platforms with one button click.

Yes, that would be nice, but can we fix the current release?

I won't have time until next week, I may be able to see if someone else with an environment already set up can.

I also have this problem in win10. and i solve it just now. i think you neednt install VS, just install visualcppbuildtools_full.exe and use VC++ command prompt to "pip install pyvex".