dependency automatic install issue
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 560
- Avg merge
- 1h 41m
- Merged PRs (30d)
- 3
Description
I tried doing a fresh pyOCD install in Win7e/MSYS2 using pip3, and got errors on the psutil install:
C:\msys64\mingw64\bin/x86_64-w64-mingw32-gcc.exe -Wno-unused-result -Wsign-compare -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fwrapv -D__USE_MINGW_ANSI_STDIO=1 -D_WIN32_WINNT=0x0601 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fwrapv -D__USE_MINGW_ANSI_STDIO=1 -D_WIN32_WINNT=0x0601 -DNDEBUG -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=580 -DPSUTIL_WINDOWS=1 -D_WIN32_WINNT=0x0601 -D_AVAIL_WINVER_=0x0601 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -IC:/msys64/mingw64/include/python3.8 -c psutil/_psutil_common.c -o build/temp.mingw-3.8/psutil/_psutil_common.o
In file included from psutil/_psutil_common.h:120,
from psutil/_psutil_common.c:10:
psutil/arch/windows/ntextapi.h:59:14: error: redeclaration of 'enum _KWAIT_REASON'
59 | typedef enum _KWAIT_REASON {
| ^~~~~~~~~~~~~
After explicitly installing psutil and wheel, pyOCD installed OK.
psutil 5.6.7
wheel 0.36.2
pyocd 0.29.0
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
Start by reproducing a fresh pyOCD pip3 install on Win7/MSYS2 and inspect the psutil build failure shown in the issue. Done means pyOCD installs successfully without manually installing psutil and wheel, with the dependency versions verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100