Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows 7] pypy -m pip install psutil fails #1571

Closed
bataliero opened this issue Aug 22, 2019 · 2 comments
Closed

[Windows 7] pypy -m pip install psutil fails #1571

bataliero opened this issue Aug 22, 2019 · 2 comments
Assignees

Comments

@bataliero
Copy link

bataliero commented Aug 22, 2019

pypy3.6-v7.1.1-win32\pypy3.exe
Windows 7 (version: 6.1.7601)

pypy3.6-v7.1.1-win32\pypy3" -m pip install psutil
Collecting psutil
  Using cached https://files.pythonhosted.org/packages/1c/ca/5b8c1fe032a458c2c4bcbe509d1401dca9dda35c7fc46b36bb81c2834740/psutil-5.6.3.tar.gz
Building wheels for collected packages: psutil
  Running setup.py bdist_wheel for psutil ... error
  Complete output from command pypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\pypy3.exe -u -c "import setuptools, tokenize;__file__='AppData\\Local\\Temp\\
pip-build-erttox2u\\psutil\\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 AppData\Local\Temp\tmpi1oa3pfopip-wheel- --python-tag pp371:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win32-3.6
  creating build\lib.win32-3.6\psutil
  copying psutil\_common.py -> build\lib.win32-3.6\psutil
  copying psutil\_compat.py -> build\lib.win32-3.6\psutil
  copying psutil\_psaix.py -> build\lib.win32-3.6\psutil
  copying psutil\_psbsd.py -> build\lib.win32-3.6\psutil
  copying psutil\_pslinux.py -> build\lib.win32-3.6\psutil
  copying psutil\_psosx.py -> build\lib.win32-3.6\psutil
  copying psutil\_psposix.py -> build\lib.win32-3.6\psutil
  copying psutil\_pssunos.py -> build\lib.win32-3.6\psutil
  copying psutil\_pswindows.py -> build\lib.win32-3.6\psutil
  copying psutil\__init__.py -> build\lib.win32-3.6\psutil
  creating build\lib.win32-3.6\psutil\tests
  copying psutil\tests\runner.py -> build\lib.win32-3.6\psutil\tests
  copying psutil\tests\test_aix.py -> build\lib.win32-3.6\psutil\tests
  copying psutil\tests\test_bsd.py -> build\lib.win32-3.6\psutil\tests
  copying psutil\tests\test_connections.py -> build\lib.win32-3.6\psutil\tests
  copying psutil\tests\test_contracts.py -> build\lib.win32-3.6\psutil\tests
  copying psutil\tests\test_linux.py -> build\lib.win32-3.6\psutil\tests
  copying psutil\tests\test_memory_leaks.py -> build\lib.win32-3.6\psutil\tests
  copying psutil\tests\test_misc.py -> build\lib.win32-3.6\psutil\tests
  copying psutil\tests\test_osx.py -> build\lib.win32-3.6\psutil\tests
  copying psutil\tests\test_posix.py -> build\lib.win32-3.6\psutil\tests
  copying psutil\tests\test_process.py -> build\lib.win32-3.6\psutil\tests
  copying psutil\tests\test_sunos.py -> build\lib.win32-3.6\psutil\tests
  copying psutil\tests\test_system.py -> build\lib.win32-3.6\psutil\tests
  copying psutil\tests\test_unicode.py -> build\lib.win32-3.6\psutil\tests
  copying psutil\tests\test_windows.py -> build\lib.win32-3.6\psutil\tests
  copying psutil\tests\__init__.py -> build\lib.win32-3.6\psutil\tests
  copying psutil\tests\__main__.py -> build\lib.win32-3.6\psutil\tests
  running build_ext
  building 'psutil._psutil_windows' extension
  creating build\temp.win32-3.6
  creating build\temp.win32-3.6\Release
  creating build\temp.win32-3.6\Release\psutil
  creating build\temp.win32-3.6\Release\psutil\arch
  creating build\temp.win32-3.6\Release\psutil\arch\windows
  C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32_W
INNT=0x0601 -D_AVAIL_WINVER_=0x0601 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ipypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\include /Tcpsutil/_psutil_common.c /Fobuild\tem
p.win32-3.6\Release\psutil/_psutil_common.obj
  _psutil_common.c
  psutil/_psutil_common.c(66): warning C4013: 'PyErr_SetFromWindowsErrWithFilename' undefined; assuming extern returning int
  C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32_W
INNT=0x0601 -D_AVAIL_WINVER_=0x0601 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ipypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\include /Tcpsutil/_psutil_windows.c /Fobuild\te
mp.win32-3.6\Release\psutil/_psutil_windows.obj
  _psutil_windows.c
  psutil/_psutil_windows.c(113): warning C4013: 'PyErr_SetFromWindowsErr' undefined; assuming extern returning int
  psutil/_psutil_windows.c(309): warning C4047: 'return': 'PyObject *' differs in levels of indirection from 'int'
  psutil/_psutil_windows.c(892): warning C4047: 'return': 'PyObject *' differs in levels of indirection from 'int'
  psutil/_psutil_windows.c(913): warning C4047: 'return': 'PyObject *' differs in levels of indirection from 'int'
  psutil/_psutil_windows.c(2096): warning C4013: 'PyErr_SetFromWindowsErrWithFilename' undefined; assuming extern returning int
  psutil/_psutil_windows.c(2096): warning C4047: 'return': 'PyObject *' differs in levels of indirection from 'int'
  psutil/_psutil_windows.c(3349): warning C4047: 'return': 'PyObject *' differs in levels of indirection from 'int'
  psutil/_psutil_windows.c(3383): warning C4047: 'return': 'PyObject *' differs in levels of indirection from 'int'
  psutil/_psutil_windows.c(3513): warning C4113: 'PyObject *(__cdecl *)()' differs in parameter lists from 'PyCFunction'
  psutil/_psutil_windows.c(3515): warning C4113: 'PyObject *(__cdecl *)()' differs in parameter lists from 'PyCFunction'
  C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32_W
INNT=0x0601 -D_AVAIL_WINVER_=0x0601 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ipypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\include /Tcpsutil/arch/windows/process_info.c /
Fobuild\temp.win32-3.6\Release\psutil/arch/windows/process_info.obj
  process_info.c
  psutil/arch/windows/process_info.c(235): warning C4013: 'PyErr_SetFromWindowsErr' undefined; assuming extern returning int
  psutil/arch/windows/process_info.c(235): warning C4047: 'return': 'HANDLE' differs in levels of indirection from 'int'
  C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32_W
INNT=0x0601 -D_AVAIL_WINVER_=0x0601 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ipypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\include /Tcpsutil/arch/windows/process_handles.
c /Fobuild\temp.win32-3.6\Release\psutil/arch/windows/process_handles.obj
  process_handles.c
  psutil/arch/windows/process_handles.c(126): warning C4013: 'PyErr_SetFromWindowsErr' undefined; assuming extern returning int
  psutil/arch/windows/process_handles.c(174): warning C4047: '!=': 'HANDLE' differs in levels of indirection from 'ULONG_PTR'
  psutil/arch/windows/process_handles.c(371): warning C4047: '!=': 'HANDLE' differs in levels of indirection from 'ULONG_PTR'
  C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32_W
INNT=0x0601 -D_AVAIL_WINVER_=0x0601 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ipypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\include /Tcpsutil/arch/windows/security.c /Fobu
ild\temp.win32-3.6\Release\psutil/arch/windows/security.obj
  security.c
  C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32_W
INNT=0x0601 -D_AVAIL_WINVER_=0x0601 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ipypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\include /Tcpsutil/arch/windows/inet_ntop.c /Fob
uild\temp.win32-3.6\Release\psutil/arch/windows/inet_ntop.obj
  inet_ntop.c
  psutil/arch/windows/inet_ntop.c(41): warning C4013: 'PyErr_SetExcFromWindowsErr' undefined; assuming extern returning int
  C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32_W
INNT=0x0601 -D_AVAIL_WINVER_=0x0601 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ipypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\include /Tcpsutil/arch/windows/services.c /Fobu
ild\temp.win32-3.6\Release\psutil/arch/windows/services.obj
  services.c
  C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32_W
INNT=0x0601 -D_AVAIL_WINVER_=0x0601 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ipypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\include /Tcpsutil/arch/windows/global.c /Fobuil
d\temp.win32-3.6\Release\psutil/arch/windows/global.obj
  global.c
  psutil/arch/windows/global.c(36): warning C4013: 'PyErr_SetFromWindowsErrWithFilename' undefined; assuming extern returning int
  psutil/arch/windows/global.c(87): warning C4047: 'return': 'PVOID' differs in levels of indirection from 'int'
  C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32_W
INNT=0x0601 -D_AVAIL_WINVER_=0x0601 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ipypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\include /Tcpsutil/arch/windows/wmi.c /Fobuild\t
emp.win32-3.6\Release\psutil/arch/windows/wmi.obj
  wmi.c
  psutil/arch/windows/wmi.c(76): warning C4013: 'PyErr_SetFromWindowsErr' undefined; assuming extern returning int
  psutil/arch/windows/wmi.c(101): warning C4013: 'PyErr_SetExcFromWindowsErr' undefined; assuming extern returning int
  C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:pypy3.6-v7.1.1-win
32\pypy3.6-v7.1.1-win32\libs psapi.lib kernel32.lib advapi32.lib shell32.lib netapi32.lib wtsapi32.lib ws2_32.lib PowrProf.lib pdh.lib python36.lib /EXPORT:PyInit__psutil_windows build\temp.win32-3.6\
Release\psutil/_psutil_common.obj build\temp.win32-3.6\Release\psutil/_psutil_windows.obj build\temp.win32-3.6\Release\psutil/arch/windows/process_info.obj build\temp.win32-3.6\Release\psutil/arch/win
dows/process_handles.obj build\temp.win32-3.6\Release\psutil/arch/windows/security.obj build\temp.win32-3.6\Release\psutil/arch/windows/inet_ntop.obj build\temp.win32-3.6\Release\psutil/arch/windows/s
ervices.obj build\temp.win32-3.6\Release\psutil/arch/windows/global.obj build\temp.win32-3.6\Release\psutil/arch/windows/wmi.obj /OUT:build\lib.win32-3.6\psutil\_psutil_windows.pypy3-71-win32.pyd /IMP
LIB:build\temp.win32-3.6\Release\psutil\_psutil_windows.pypy3-71-win32.lib /MANIFEST /MANIFESTFILE:build\temp.win32-3.6\Release\psutil\_psutil_windows.pypy3-71-win32.pyd.manifest
     Creating library build\temp.win32-3.6\Release\psutil\_psutil_windows.pypy3-71-win32.lib and object build\temp.win32-3.6\Release\psutil\_psutil_windows.pypy3-71-win32.exp
  _psutil_common.obj : error LNK2019: unresolved external symbol _PyErr_SetFromWindowsErrWithFilename referenced in function _PyErr_SetFromOSErrnoWithSyscall
  _psutil_windows.obj : error LNK2001: unresolved external symbol _PyErr_SetFromWindowsErrWithFilename
  global.obj : error LNK2001: unresolved external symbol _PyErr_SetFromWindowsErrWithFilename
  _psutil_windows.obj : error LNK2019: unresolved external symbol _PyErr_SetFromWindowsErr referenced in function _psutil_get_num_cpus
  process_info.obj : error LNK2001: unresolved external symbol _PyErr_SetFromWindowsErr
  process_handles.obj : error LNK2001: unresolved external symbol _PyErr_SetFromWindowsErr
  wmi.obj : error LNK2001: unresolved external symbol _PyErr_SetFromWindowsErr
  inet_ntop.obj : error LNK2019: unresolved external symbol _PyErr_SetExcFromWindowsErr referenced in function _inet_ntop@16
  wmi.obj : error LNK2001: unresolved external symbol _PyErr_SetExcFromWindowsErr
  build\lib.win32-3.6\psutil\_psutil_windows.pypy3-71-win32.pyd : fatal error LNK1120: 3 unresolved externals
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\WDExpress\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\link.exe' failed with exit status 1120

  ----------------------------------------
  Failed building wheel for psutil
  Running setup.py clean for psutil
Failed to build psutil
Installing collected packages: psutil
  Running setup.py install for psutil ... error
    Complete output from command pypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\pypy3.exe -u -c "import setuptools, tokenize;__file__='AppData\\Local\\Temp
\\pip-build-erttox2u\\psutil\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record AppData\Local\Temp\pip-rms9ihke-record\install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win32-3.6
    creating build\lib.win32-3.6\psutil
    copying psutil\_common.py -> build\lib.win32-3.6\psutil
    copying psutil\_compat.py -> build\lib.win32-3.6\psutil
    copying psutil\_psaix.py -> build\lib.win32-3.6\psutil
    copying psutil\_psbsd.py -> build\lib.win32-3.6\psutil
    copying psutil\_pslinux.py -> build\lib.win32-3.6\psutil
    copying psutil\_psosx.py -> build\lib.win32-3.6\psutil
    copying psutil\_psposix.py -> build\lib.win32-3.6\psutil
    copying psutil\_pssunos.py -> build\lib.win32-3.6\psutil
    copying psutil\_pswindows.py -> build\lib.win32-3.6\psutil
    copying psutil\__init__.py -> build\lib.win32-3.6\psutil
    creating build\lib.win32-3.6\psutil\tests
    copying psutil\tests\runner.py -> build\lib.win32-3.6\psutil\tests
    copying psutil\tests\test_aix.py -> build\lib.win32-3.6\psutil\tests
    copying psutil\tests\test_bsd.py -> build\lib.win32-3.6\psutil\tests
    copying psutil\tests\test_connections.py -> build\lib.win32-3.6\psutil\tests
    copying psutil\tests\test_contracts.py -> build\lib.win32-3.6\psutil\tests
    copying psutil\tests\test_linux.py -> build\lib.win32-3.6\psutil\tests
    copying psutil\tests\test_memory_leaks.py -> build\lib.win32-3.6\psutil\tests
    copying psutil\tests\test_misc.py -> build\lib.win32-3.6\psutil\tests
    copying psutil\tests\test_osx.py -> build\lib.win32-3.6\psutil\tests
    copying psutil\tests\test_posix.py -> build\lib.win32-3.6\psutil\tests
    copying psutil\tests\test_process.py -> build\lib.win32-3.6\psutil\tests
    copying psutil\tests\test_sunos.py -> build\lib.win32-3.6\psutil\tests
    copying psutil\tests\test_system.py -> build\lib.win32-3.6\psutil\tests
    copying psutil\tests\test_unicode.py -> build\lib.win32-3.6\psutil\tests
    copying psutil\tests\test_windows.py -> build\lib.win32-3.6\psutil\tests
    copying psutil\tests\__init__.py -> build\lib.win32-3.6\psutil\tests
    copying psutil\tests\__main__.py -> build\lib.win32-3.6\psutil\tests
    running build_ext
    building 'psutil._psutil_windows' extension
    creating build\temp.win32-3.6
    creating build\temp.win32-3.6\Release
    creating build\temp.win32-3.6\Release\psutil
    creating build\temp.win32-3.6\Release\psutil\arch
    creating build\temp.win32-3.6\Release\psutil\arch\windows
    C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32
_WINNT=0x0601 -D_AVAIL_WINVER_=0x0601 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ipypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\include /Tcpsutil/_psutil_common.c /Fobuild\t
emp.win32-3.6\Release\psutil/_psutil_common.obj
    _psutil_common.c
    psutil/_psutil_common.c(66): warning C4013: 'PyErr_SetFromWindowsErrWithFilename' undefined; assuming extern returning int
    C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32
_WINNT=0x0601 -D_AVAIL_WINVER_=0x0601 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ipypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\include /Tcpsutil/_psutil_windows.c /Fobuild\
temp.win32-3.6\Release\psutil/_psutil_windows.obj
    _psutil_windows.c
    psutil/_psutil_windows.c(113): warning C4013: 'PyErr_SetFromWindowsErr' undefined; assuming extern returning int
    psutil/_psutil_windows.c(309): warning C4047: 'return': 'PyObject *' differs in levels of indirection from 'int'
    psutil/_psutil_windows.c(892): warning C4047: 'return': 'PyObject *' differs in levels of indirection from 'int'
    psutil/_psutil_windows.c(913): warning C4047: 'return': 'PyObject *' differs in levels of indirection from 'int'
    psutil/_psutil_windows.c(2096): warning C4013: 'PyErr_SetFromWindowsErrWithFilename' undefined; assuming extern returning int
    psutil/_psutil_windows.c(2096): warning C4047: 'return': 'PyObject *' differs in levels of indirection from 'int'
    psutil/_psutil_windows.c(3349): warning C4047: 'return': 'PyObject *' differs in levels of indirection from 'int'
    psutil/_psutil_windows.c(3383): warning C4047: 'return': 'PyObject *' differs in levels of indirection from 'int'
    psutil/_psutil_windows.c(3513): warning C4113: 'PyObject *(__cdecl *)()' differs in parameter lists from 'PyCFunction'
    psutil/_psutil_windows.c(3515): warning C4113: 'PyObject *(__cdecl *)()' differs in parameter lists from 'PyCFunction'
    C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32
_WINNT=0x0601 -D_AVAIL_WINVER_=0x0601 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ipypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\include /Tcpsutil/arch/windows/process_info.c
 /Fobuild\temp.win32-3.6\Release\psutil/arch/windows/process_info.obj
    process_info.c
    psutil/arch/windows/process_info.c(235): warning C4013: 'PyErr_SetFromWindowsErr' undefined; assuming extern returning int
    psutil/arch/windows/process_info.c(235): warning C4047: 'return': 'HANDLE' differs in levels of indirection from 'int'
    C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32
_WINNT=0x0601 -D_AVAIL_WINVER_=0x0601 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ipypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\include /Tcpsutil/arch/windows/process_handle
s.c /Fobuild\temp.win32-3.6\Release\psutil/arch/windows/process_handles.obj
    process_handles.c
    psutil/arch/windows/process_handles.c(126): warning C4013: 'PyErr_SetFromWindowsErr' undefined; assuming extern returning int
    psutil/arch/windows/process_handles.c(174): warning C4047: '!=': 'HANDLE' differs in levels of indirection from 'ULONG_PTR'
    psutil/arch/windows/process_handles.c(371): warning C4047: '!=': 'HANDLE' differs in levels of indirection from 'ULONG_PTR'
    C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32
_WINNT=0x0601 -D_AVAIL_WINVER_=0x0601 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ipypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\include /Tcpsutil/arch/windows/security.c /Fo
build\temp.win32-3.6\Release\psutil/arch/windows/security.obj
    security.c
    C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32
_WINNT=0x0601 -D_AVAIL_WINVER_=0x0601 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ipypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\include /Tcpsutil/arch/windows/inet_ntop.c /F
obuild\temp.win32-3.6\Release\psutil/arch/windows/inet_ntop.obj
    inet_ntop.c
    psutil/arch/windows/inet_ntop.c(41): warning C4013: 'PyErr_SetExcFromWindowsErr' undefined; assuming extern returning int
    C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32
_WINNT=0x0601 -D_AVAIL_WINVER_=0x0601 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ipypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\include /Tcpsutil/arch/windows/services.c /Fo
build\temp.win32-3.6\Release\psutil/arch/windows/services.obj
    services.c
    C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32
_WINNT=0x0601 -D_AVAIL_WINVER_=0x0601 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ipypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\include /Tcpsutil/arch/windows/global.c /Fobu
ild\temp.win32-3.6\Release\psutil/arch/windows/global.obj
    global.c
    psutil/arch/windows/global.c(36): warning C4013: 'PyErr_SetFromWindowsErrWithFilename' undefined; assuming extern returning int
    psutil/arch/windows/global.c(87): warning C4047: 'return': 'PVOID' differs in levels of indirection from 'int'
    C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -DPSUTIL_VERSION=563 -DPSUTIL_WINDOWS=1 -D_WIN32
_WINNT=0x0601 -D_AVAIL_WINVER_=0x0601 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ipypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\include /Tcpsutil/arch/windows/wmi.c /Fobuild
\temp.win32-3.6\Release\psutil/arch/windows/wmi.obj
    wmi.c
    psutil/arch/windows/wmi.c(76): warning C4013: 'PyErr_SetFromWindowsErr' undefined; assuming extern returning int
    psutil/arch/windows/wmi.c(101): warning C4013: 'PyErr_SetExcFromWindowsErr' undefined; assuming extern returning int
    C:\Program Files (x86)\Microsoft Visual Studio\2017\WDExpress\VC\Tools\MSVC\14.14.26428\bin\HostX86\x86\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:\pypy3.6-v7.1.1-w
in32\pypy3.6-v7.1.1-win32\libs psapi.lib kernel32.lib advapi32.lib shell32.lib netapi32.lib wtsapi32.lib ws2_32.lib PowrProf.lib pdh.lib python36.lib /EXPORT:PyInit__psutil_windows build\temp.win32-3.
6\Release\psutil/_psutil_common.obj build\temp.win32-3.6\Release\psutil/_psutil_windows.obj build\temp.win32-3.6\Release\psutil/arch/windows/process_info.obj build\temp.win32-3.6\Release\psutil/arch/w
indows/process_handles.obj build\temp.win32-3.6\Release\psutil/arch/windows/security.obj build\temp.win32-3.6\Release\psutil/arch/windows/inet_ntop.obj build\temp.win32-3.6\Release\psutil/arch/windows
/services.obj build\temp.win32-3.6\Release\psutil/arch/windows/global.obj build\temp.win32-3.6\Release\psutil/arch/windows/wmi.obj /OUT:build\lib.win32-3.6\psutil\_psutil_windows.pypy3-71-win32.pyd /I
MPLIB:build\temp.win32-3.6\Release\psutil\_psutil_windows.pypy3-71-win32.lib /MANIFEST /MANIFESTFILE:build\temp.win32-3.6\Release\psutil\_psutil_windows.pypy3-71-win32.pyd.manifest
       Creating library build\temp.win32-3.6\Release\psutil\_psutil_windows.pypy3-71-win32.lib and object build\temp.win32-3.6\Release\psutil\_psutil_windows.pypy3-71-win32.exp
    _psutil_common.obj : error LNK2019: unresolved external symbol _PyErr_SetFromWindowsErrWithFilename referenced in function _PyErr_SetFromOSErrnoWithSyscall
    _psutil_windows.obj : error LNK2001: unresolved external symbol _PyErr_SetFromWindowsErrWithFilename
    global.obj : error LNK2001: unresolved external symbol _PyErr_SetFromWindowsErrWithFilename
    _psutil_windows.obj : error LNK2019: unresolved external symbol _PyErr_SetFromWindowsErr referenced in function _psutil_get_num_cpus
    process_info.obj : error LNK2001: unresolved external symbol _PyErr_SetFromWindowsErr
    process_handles.obj : error LNK2001: unresolved external symbol _PyErr_SetFromWindowsErr
    wmi.obj : error LNK2001: unresolved external symbol _PyErr_SetFromWindowsErr
    inet_ntop.obj : error LNK2019: unresolved external symbol _PyErr_SetExcFromWindowsErr referenced in function _inet_ntop@16
    wmi.obj : error LNK2001: unresolved external symbol _PyErr_SetExcFromWindowsErr
    build\lib.win32-3.6\psutil\_psutil_windows.pypy3-71-win32.pyd : fatal error LNK1120: 3 unresolved externals
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\WDExpress\\VC\\Tools\\MSVC\\14.14.26428\\bin\\HostX86\\x86\\link.exe' failed with exit status 1120

    ----------------------------------------
Command "pypy3.6-v7.1.1-win32\pypy3.6-v7.1.1-win32\pypy3.exe -u -c "import setuptools, tokenize;__file__='AppData\\Local\\Temp\\pip-build-erttox2u\\ps
util\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record AppData\Local\Temp\p
ip-rms9ihke-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in AppData\Local\Temp\pip-build-erttox2u\psutil\
@giampaolo
Copy link
Owner

giampaolo commented Feb 11, 2020

It turns out psutil does not compile at all on PyPy on Windows, I guess since forever.
Some cPython APIs which should be included by #include <Python.h> are not available on PYPY.
psutil + PyPy on Linux is fine though.

@giampaolo
Copy link
Owner

#1686 added PYPY support on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants