trailofbits / trailofbits/pe-parse
failed to install pype with pip
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 911
- Forks
- 171
- PR merge metrics
- No merged PRs in 30d
Description
When I've tried to install pype with pip it shows this error:
PS C:\Users\Mohamed> pip3 install pepy
Collecting pepy
Downloading pepy-2.1.1.tar.gz (15 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pepy
Building wheel for pepy (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pepy (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
running bdist_wheel
running build
running build_ext
building 'pepy' extension
creating build\temp.win-amd64-cpython-313\Release\Users\Mohamed\AppData\Local\Temp\pip-install-34_ufjwn\pepy_32cca2f9d0c34144b395c21a2cee9386\pe-parser-library\src
creating build\temp.win-amd64-cpython-313\Release\Users\Mohamed\AppData\Local\Temp\pip-install-34_ufjwn\pepy_32cca2f9d0c34144b395c21a2cee9386\pepy
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.44.35207\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DPEPARSE_VERSION=\"2.1.1\" -IC:\Users\Mohamed\AppData\Local\Programs\Python\Python313\include -IC:\Users\Mohamed\AppData\Local\Temp\pip-install-34_ufjwn\pepy_32cca2f9d0c34144b395c21a2cee9386\pe-parser-library\include -IC:\usr\include -IC:\Users\Mohamed\AppData\Local\Programs\Python\Python313\include -IC:\Users\Mohamed\AppData\Local\Programs\Python\Python313\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.44.35207\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" /EHsc /TpC:\Users\Mohamed\AppData\Local\Temp\pip-install-34_ufjwn\pepy_32cca2f9d0c34144b395c21a2cee9386\pe-parser-library\src\buffer.cpp /Fobuild\temp.win-amd64-cpython-313\Release\Users\Mohamed\AppData\Local\Temp\pip-install-34_ufjwn\pepy_32cca2f9d0c34144b395c21a2cee9386\pe-parser-library\src\buffer.obj /EHsc
buffer.cpp
c1xx: fatal error C1083: Cannot open source file: 'C:\Users\Mohamed\AppData\Local\Temp\pip-install-34_ufjwn\pepy_32cca2f9d0c34144b395c21a2cee9386\pe-parser-library\src\buffer.cpp': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.44.35207\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pepy
Failed to build pepy
error: failed-wheel-build-for-install
× Failed to build installable wheels for some pyproject.toml based projects
╰─> pepy
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failed pip3 install pepy on Windows with Python 3.13, then inspect the package's pyproject.toml build configuration and the packaged pe-parser-library/src/buffer.cpp path shown in the error. Done means the package builds its extension and installs successfully in the reported environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100