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

pip install fail on windows #93

Open
fbeauche opened this issue Aug 7, 2020 · 3 comments
Open

pip install fail on windows #93

fbeauche opened this issue Aug 7, 2020 · 3 comments

Comments

@fbeauche
Copy link

fbeauche commented Aug 7, 2020

Installation is failing on windows cause of psutils version not installing.

The PR #86 should fix this. Any plan to merge it soon ?

> pip install target-stitch Collecting target-stitch Using cached target-stitch-3.0.3.tar.gz (10 kB) Requirement already satisfied: jsonschema==2.6.0 in c:\users\admvooban\dev\virtualenvs\target-stitch\lib\site-packages (from target-stitch) (2.6.0) Requirement already satisfied: mock==2.0.0 in c:\users\admvooban\dev\virtualenvs\target-stitch\lib\site-packages (from target-stitch) (2.0.0) Requirement already satisfied: requests==2.20.0 in c:\users\admvooban\dev\virtualenvs\target-stitch\lib\site-packages (from target-stitch) (2.20.0) Requirement already satisfied: singer-python==5.8.0 in c:\users\admvooban\dev\virtualenvs\target-stitch\lib\site-packages (from target-stitch) (5.8.0) Collecting psutil==5.3.1 Using cached psutil-5.3.1.tar.gz (397 kB) Requirement already satisfied: simplejson==3.11.1 in c:\users\admvooban\dev\virtualenvs\target-stitch\lib\site-packages (from target-stitch) (3.11.1) Processing c:\users\admvooban\appdata\local\pip\cache\wheels\89\84\e6\de199bc435ee4eb6a0d978d3b59457fd05ac67ab1bc4e66e11\aiohttp-3.5.4-cp38-cp38-win_amd64.whl Collecting cchardet==2.1.4 Using cached cchardet-2.1.4.tar.gz (648 kB) Collecting aiodns==2.0.0 Using cached aiodns-2.0.0-py2.py3-none-any.whl (4.8 kB) Requirement already satisfied: ciso8601 in c:\users\admvooban\dev\virtualenvs\target-stitch\lib\site-packages (from target-stitch) (2.1.3) Requirement already satisfied: pbr>=0.11 in c:\users\admvooban\dev\virtualenvs\target-stitch\lib\site-packages (from mock==2.0.0->target-stitch) (5.4.5) Requirement already satisfied: six>=1.9 in c:\users\admvooban\dev\virtualenvs\target-stitch\lib\site-packages (from mock==2.0.0->target-stitch) (1.15.0) Requirement already satisfied: certifi>=2017.4.17 in c:\users\admvooban\dev\virtualenvs\target-stitch\lib\site-packages (from requests==2.20.0->target-stitch) (2020.6.20) Requirement already satisfied: idna<2.8,>=2.5 in c:\users\admvooban\dev\virtualenvs\target-stitch\lib\site-packages (from requests==2.20.0->target-stitch) (2.7) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\admvooban\dev\virtualenvs\target-stitch\lib\site-packages (from requests==2.20.0->target-stitch) (3.0.4) Requirement already satisfied: urllib3<1.25,>=1.21.1 in c:\users\admvooban\dev\virtualenvs\target-stitch\lib\site-packages (from requests==2.20.0->target-stitch) (1.24.3) Requirement already satisfied: pytz==2018.4 in c:\users\admvooban\dev\virtualenvs\target-stitch\lib\site-packages (from singer-python==5.8.0->target-stitch) (2018.4) Requirement already satisfied: python-dateutil>=2.6.0 in c:\users\admvooban\dev\virtualenvs\target-stitch\lib\site-packages (from singer-python==5.8.0->target-stitch) (2.8.1) Requirement already satisfied: backoff==1.8.0 in c:\users\admvooban\dev\virtualenvs\target-stitch\lib\site-packages (from singer-python==5.8.0->target-stitch) (1.8.0) Collecting yarl<2.0,>=1.0 Using cached yarl-1.5.1-cp38-cp38-win_amd64.whl (128 kB) Collecting multidict<5.0,>=4.0 Using cached multidict-4.7.6-cp38-cp38-win_amd64.whl (48 kB) Collecting async-timeout<4.0,>=3.0 Using cached async_timeout-3.0.1-py3-none-any.whl (8.2 kB) Collecting attrs>=17.3.0 Using cached attrs-19.3.0-py2.py3-none-any.whl (39 kB) Collecting pycares>=3.0.0 Using cached pycares-3.1.1-cp38-cp38-win_amd64.whl (70 kB) Collecting cffi>=1.5.0 Using cached cffi-1.14.1-cp38-cp38-win_amd64.whl (178 kB) Collecting pycparser Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB) Using legacy setup.py install for target-stitch, since package 'wheel' is not installed. Using legacy setup.py install for psutil, since package 'wheel' is not installed. Using legacy setup.py install for cchardet, since package 'wheel' is not installed. Installing collected packages: psutil, multidict, yarl, async-timeout, attrs, aiohttp, cchardet, pycparser, cffi, pycares, aiodns, target-stitch Running setup.py install for psutil ... error ERROR: Command errored out with exit status 1: command: 'c:\users\admvooban\dev\virtualenvs\target-stitch\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\admvooban\\AppData\\Local\\Temp\\3\\pip-install-h_hcdqch\\psutil\\setup.py'"'"'; __file__='"'"'C:\\Users\\admvooban\\AppData\\Local\\Temp\\3\\pip-install-h_hcdqch\\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 'C:\Users\admvooban\AppData\Local\Temp\3\pip-record-sehgbnw0\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\admvooban\dev\virtualenvs\target-stitch\include\site\python3.8\psutil' cwd: C:\Users\admvooban\AppData\Local\Temp\3\pip-install-h_hcdqch\psutil\ Complete output (55 lines): running install running build running build_py creating build creating build\lib.win-amd64-3.8 creating build\lib.win-amd64-3.8\psutil copying psutil\_common.py -> build\lib.win-amd64-3.8\psutil copying psutil\_compat.py -> build\lib.win-amd64-3.8\psutil copying psutil\_psbsd.py -> build\lib.win-amd64-3.8\psutil copying psutil\_pslinux.py -> build\lib.win-amd64-3.8\psutil copying psutil\_psosx.py -> build\lib.win-amd64-3.8\psutil copying psutil\_psposix.py -> build\lib.win-amd64-3.8\psutil copying psutil\_pssunos.py -> build\lib.win-amd64-3.8\psutil copying psutil\_pswindows.py -> build\lib.win-amd64-3.8\psutil copying psutil\__init__.py -> build\lib.win-amd64-3.8\psutil creating build\lib.win-amd64-3.8\psutil\tests copying psutil\tests\test_bsd.py -> build\lib.win-amd64-3.8\psutil\tests copying psutil\tests\test_connections.py -> build\lib.win-amd64-3.8\psutil\tests copying psutil\tests\test_contracts.py -> build\lib.win-amd64-3.8\psutil\tests copying psutil\tests\test_linux.py -> build\lib.win-amd64-3.8\psutil\tests copying psutil\tests\test_memory_leaks.py -> build\lib.win-amd64-3.8\psutil\tests copying psutil\tests\test_misc.py -> build\lib.win-amd64-3.8\psutil\tests copying psutil\tests\test_osx.py -> build\lib.win-amd64-3.8\psutil\tests copying psutil\tests\test_posix.py -> build\lib.win-amd64-3.8\psutil\tests copying psutil\tests\test_process.py -> build\lib.win-amd64-3.8\psutil\tests copying psutil\tests\test_sunos.py -> build\lib.win-amd64-3.8\psutil\tests copying psutil\tests\test_system.py -> build\lib.win-amd64-3.8\psutil\tests copying psutil\tests\test_unicode.py -> build\lib.win-amd64-3.8\psutil\tests copying psutil\tests\test_windows.py -> build\lib.win-amd64-3.8\psutil\tests copying psutil\tests\__init__.py -> build\lib.win-amd64-3.8\psutil\tests copying psutil\tests\__main__.py -> build\lib.win-amd64-3.8\psutil\tests running build_ext building 'psutil._psutil_windows' extension creating build\temp.win-amd64-3.8 creating build\temp.win-amd64-3.8\Release creating build\temp.win-amd64-3.8\Release\psutil creating build\temp.win-amd64-3.8\Release\psutil\arch creating build\temp.win-amd64-3.8\Release\psutil\arch\windows C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPSUTIL_WINDOWS=1 -DPSUTIL_VERSION=531 -D_WIN32_WINNT=0x01000 -D_AVAIL_WINVER_=0x01000 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ic:\users\admvooban\dev\virtualenvs\target-stitch\include "-IC:\Program Files\Python38\include" "-IC:\Program Files\Python38\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcpsutil/_psutil_common.c /Fobuild\temp.win-amd64-3.8\Release\psutil/_psutil_common.obj _psutil_common.c C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPSUTIL_WINDOWS=1 -DPSUTIL_VERSION=531 -D_WIN32_WINNT=0x01000 -D_AVAIL_WINVER_=0x01000 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -Ic:\users\admvooban\dev\virtualenvs\target-stitch\include "-IC:\Program Files\Python38\include" "-IC:\Program Files\Python38\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /Tcpsutil/_psutil_windows.c /Fobuild\temp.win-amd64-3.8\Release\psutil/_psutil_windows.obj _psutil_windows.c C:\Users\admvooban\AppData\Local\Temp\3\pip-install-h_hcdqch\psutil\psutil\arch\windows\ntextapi.h(166): error C2011: '_CLIENT_ID'ÿ: red‚finition du type 'struct' C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winternl.h(80): note: voir la d‚claration de '_CLIENT_ID' C:\Users\admvooban\AppData\Local\Temp\3\pip-install-h_hcdqch\psutil\psutil\arch\windows\ntextapi.h(172): error C2011: '_SYSTEM_THREAD_INFORMATION'ÿ: red‚finition du type 'struct' C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winternl.h(286): note: voir la d‚claration de '_SYSTEM_THREAD_INFORMATION' C:\Users\admvooban\AppData\Local\Temp\3\pip-install-h_hcdqch\psutil\psutil\arch/windows/inet_ntop.h(15): warning C4028: paramŠtre formel 2 diff‚rent de la d‚claration psutil/_psutil_windows.c(839): warning C4267: '='ÿ: conversion de 'size_t' en 'DWORD', perte possible de donn‚es psutil/_psutil_windows.c(2078): warning C4312: 'cast de type'ÿ: la conversion de 'int' en 'PVOID' d'une taille sup‚rieure psutil/_psutil_windows.c(2769): error C2039: 'ContextSwitches' n'est pas membre de '_SYSTEM_THREAD_INFORMATION' C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winternl.h(286): note: voir la d‚claration de '_SYSTEM_THREAD_INFORMATION' psutil/_psutil_windows.c(2888): warning C4133: 'fonction'ÿ: types incompatibles - de 'MEMORY_BASIC_INFORMATION64 *' … 'PMEMORY_BASIC_INFORMATION' psutil/_psutil_windows.c(2921): warning C4047: '='ÿ: les niveaux d'indirection de 'PVOID' et de 'ULONGLONG' sont diff‚rents psutil/_psutil_windows.c(3453): warning C4267: 'fonction'ÿ: conversion de 'size_t' en 'ULONG', perte possible de donn‚es error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2 ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:\users\admvooban\dev\virtualenvs\target-stitch\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\admvooban\\AppData\\Local\\Temp\\3\\pip-install-h_hcdqch\\psutil\\setup.py'"'"'; __file__='"'"'C:\\Users\\admvooban\\AppData\\Local\\Temp\\3\\pip-install-h_hcdqch\\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 'C:\Users\admvooban\AppData\Local\Temp\3\pip-record-sehgbnw0\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\admvooban\dev\virtualenvs\target-stitch\include\site\python3.8\psutil' Check the logs for full command output.

@Tallons
Copy link

Tallons commented Aug 12, 2021

I am also encountering this problem. I ended up installing the package "wheel" and that made the installation get further but still crashes on the installation of psutil. I get the "ERROR: Failed building wheel for psutil".

I have also tried to install the psutil package independently: pip install psutil==5.6.6 which throws the same error. If I install the most up-to-date version of psutil it installs, but that doesnt help since the target-stitch package uses the older version.

Here is the console info:

Collecting target-stitch
Using cached target_stitch-3.2.0-py3-none-any.whl
Collecting cchardet==2.1.4
Using cached cchardet-2.1.4-cp39-cp39-win_amd64.whl
Collecting mock==2.0.0
Using cached mock-2.0.0-py2.py3-none-any.whl (56 kB)
Collecting aiodns==2.0.0
Using cached aiodns-2.0.0-py2.py3-none-any.whl (4.8 kB)
Requirement already satisfied: ciso8601 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from target-stitch) (2.2.0)
Requirement already satisfied: singer-python==5.8.0 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from target-stitch) (5.8.0)
Requirement already satisfied: requests==2.20.0 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from target-stitch) (2.20.0)
Requirement already satisfied: simplejson==3.11.1 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from target-stitch) (3.11.1)
Collecting aiohttp==3.5.4
Using cached aiohttp-3.5.4-py3-none-any.whl
Collecting psutil==5.3.1
Using cached psutil-5.3.1.tar.gz (397 kB)
Requirement already satisfied: jsonschema==2.6.0 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from target-stitch) (2.6.0)
Requirement already satisfied: pycares>=3.0.0 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from aiodns==2.0.0->target-stitch) (4.0.0)
Requirement already satisfied: multidict<5.0,>=4.0 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from aiohttp==3.5.4->target-stitch) (4.7.6)
Requirement already satisfied: yarl<2.0,>=1.0 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from aiohttp==3.5.4->target-stitch) (1.6.3)
Requirement already satisfied: attrs>=17.3.0 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from aiohttp==3.5.4->target-stitch) (21.2.0)
Requirement already satisfied: chardet<4.0,>=2.0 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from aiohttp==3.5.4->target-stitch) (3.0.4)
Requirement already satisfied: async-timeout<4.0,>=3.0 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from aiohttp==3.5.4->target-stitch) (3.0.1)
Requirement already satisfied: pbr>=0.11 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from mock==2.0.0->target-stitch) (5.6.0)
Requirement already satisfied: six>=1.9 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from mock==2.0.0->target-stitch) (1.16.0)
Requirement already satisfied: idna<2.8,>=2.5 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from requests==2.20.0->target-stitch) (2.7)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from requests==2.20.0->target-stitch) (1.24.3)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from requests==2.20.0->target-stitch) (2021.5.30)
Requirement already satisfied: pytz==2018.4 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from singer-python==5.8.0->target-stitch) (2018.4)
Requirement already satisfied: python-dateutil>=2.6.0 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from singer-python==5.8.0->target-stitch) (2.8.2)
Requirement already satisfied: backoff==1.8.0 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from singer-python==5.8.0->target-stitch) (1.8.0)
Requirement already satisfied: cffi>=1.5.0 in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from pycares>=3.0.0->aiodns==2.0.0->target-stitch) (1.14.6)
Requirement already satisfied: pycparser in c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages (from cffi>=1.5.0->pycares>=3.0.0->aiodns==2.0.0->target-stitch) (2.20)
Building wheels for collected packages: psutil
Building wheel for psutil (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Tallo\IdeaProjects\tap-tiktok.virtualenvs\target-stitch\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Tallo\AppData\Local\Temp\pip-install-xf2mjq2v\p
sutil_159c5ecdbff44007910d9f172fb74125\setup.py'"'"'; file='"'"'C:\Users\Tallo\AppData\Local\Temp\pip-install-xf2mjq2v\psutil_159c5ecdbff44007910d9f172fb74125\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(
file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d
'C:\Users\Tallo\AppData\Local\Temp\pip-wheel-m3nh7v_z'
cwd: C:\Users\Tallo\AppData\Local\Temp\pip-install-xf2mjq2v\psutil_159c5ecdbff44007910d9f172fb74125
Complete output (55 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\psutil
copying psutil_common.py -> build\lib.win-amd64-3.9\psutil
copying psutil_compat.py -> build\lib.win-amd64-3.9\psutil
copying psutil_psbsd.py -> build\lib.win-amd64-3.9\psutil
copying psutil_pslinux.py -> build\lib.win-amd64-3.9\psutil
copying psutil_psosx.py -> build\lib.win-amd64-3.9\psutil
copying psutil_psposix.py -> build\lib.win-amd64-3.9\psutil
copying psutil_pssunos.py -> build\lib.win-amd64-3.9\psutil
copying psutil_pswindows.py -> build\lib.win-amd64-3.9\psutil
copying psutil_init_.py -> build\lib.win-amd64-3.9\psutil
creating build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_bsd.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_connections.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_contracts.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_linux.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_memory_leaks.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_misc.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_osx.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_posix.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_process.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_sunos.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_system.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_unicode.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_windows.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests_init_.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests_main_.py -> build\lib.win-amd64-3.9\psutil\tests
running build_ext
building 'psutil.psutil_windows' extension
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\psutil
creating build\temp.win-amd64-3.9\Release\psutil\arch
creating build\temp.win-amd64-3.9\Release\psutil\arch\windows
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPSUTIL_WINDOWS=1 -DPSUTIL_VERSION=531 -D_WIN32_WINNT=0x01000 -D_AVAIL_WINVER=0
x01000 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -IC:\Users\Tallo\IdeaProjects\tap-tiktok.virtualenvs\target-stitch\include -IC:\Users\Tallo\AppData\Local\Programs\Python\Python39\include -IC:\Users\Tallo\AppData\Local\Programs
\Python\Python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include -I
C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -IC:\Program Files (x86)\Windows K
its\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcpsutil/_psutil_common.c /Fobuild\temp.win-amd64-3.9\Relea
se\psutil/_psutil_common.obj
psutil_common.c
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPSUTIL_WINDOWS=1 -DPSUTIL_VERSION=531 -D_WIN32_WINNT=0x01000 -D_AVAIL_WINVER=0
x01000 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -IC:\Users\Tallo\IdeaProjects\tap-tiktok.virtualenvs\target-stitch\include -IC:\Users\Tallo\AppData\Local\Programs\Python\Python39\include -IC:\Users\Tallo\AppData\Local\Programs
\Python\Python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include -I
C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -IC:\Program Files (x86)\Windows K
its\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcpsutil/_psutil_windows.c /Fobuild\temp.win-amd64-3.9\Rele
ase\psutil/_psutil_windows.obj
_psutil_windows.c
C:\Users\Tallo\AppData\Local\Temp\pip-install-xf2mjq2v\psutil_159c5ecdbff44007910d9f172fb74125\psutil\arch\windows\ntextapi.h(166): error C2011: '_CLIENT_ID': 'struct' type redefinition
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winternl.h(80): note: see declaration of '_CLIENT_ID'
C:\Users\Tallo\AppData\Local\Temp\pip-install-xf2mjq2v\psutil_159c5ecdbff44007910d9f172fb74125\psutil\arch\windows\ntextapi.h(172): error C2011: '_SYSTEM_THREAD_INFORMATION': 'struct' type redefinition
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winternl.h(286): note: see declaration of '_SYSTEM_THREAD_INFORMATION'
C:\Users\Tallo\AppData\Local\Temp\pip-install-xf2mjq2v\psutil_159c5ecdbff44007910d9f172fb74125\psutil\arch/windows/inet_ntop.h(15): warning C4028: formal parameter 2 different from declaration
psutil/_psutil_windows.c(839): warning C4267: '=': conversion from 'size_t' to 'DWORD', possible loss of data
psutil/_psutil_windows.c(2078): warning C4312: 'type cast': conversion from 'int' to 'PVOID' of greater size
psutil/_psutil_windows.c(2769): error C2039: 'ContextSwitches': is not a member of '_SYSTEM_THREAD_INFORMATION'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winternl.h(286): note: see declaration of '_SYSTEM_THREAD_INFORMATION'
psutil/_psutil_windows.c(2888): warning C4133: 'function': incompatible types - from 'MEMORY_BASIC_INFORMATION64 *' to 'PMEMORY_BASIC_INFORMATION'
psutil/_psutil_windows.c(2921): warning C4047: '=': 'PVOID' differs in levels of indirection from 'ULONGLONG'
psutil/_psutil_windows.c(3453): warning C4267: 'function': conversion from 'size_t' to 'ULONG', possible loss of data
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe' failed with exit code 2
ERROR: Failed building wheel for psutil
Running setup.py clean for psutil
Failed to build psutil
Installing collected packages: psutil, mock, cchardet, aiohttp, aiodns, target-stitch
Attempting uninstall: psutil
Found existing installation: psutil 5.8.0
Uninstalling psutil-5.8.0:
Successfully uninstalled psutil-5.8.0
Running setup.py install for psutil ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Tallo\IdeaProjects\tap-tiktok.virtualenvs\target-stitch\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Tallo\AppData\Local\Temp\pip-install-xf2mjq2v
\psutil_159c5ecdbff44007910d9f172fb74125\setup.py'"'"'; file='"'"'C:\Users\Tallo\AppData\Local\Temp\pip-install-xf2mjq2v\psutil_159c5ecdbff44007910d9f172fb74125\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open
)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --rec
ord 'C:\Users\Tallo\AppData\Local\Temp\pip-record-q704jne5\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Tallo\IdeaProjects\tap-tiktok.virtualenvs\target-stitch\include\site\python3
.9\psutil'
cwd: C:\Users\Tallo\AppData\Local\Temp\pip-install-xf2mjq2v\psutil_159c5ecdbff44007910d9f172fb74125
Complete output (55 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\psutil
copying psutil_common.py -> build\lib.win-amd64-3.9\psutil
copying psutil_compat.py -> build\lib.win-amd64-3.9\psutil
copying psutil_psbsd.py -> build\lib.win-amd64-3.9\psutil
copying psutil_pslinux.py -> build\lib.win-amd64-3.9\psutil
copying psutil_psosx.py -> build\lib.win-amd64-3.9\psutil
copying psutil_psposix.py -> build\lib.win-amd64-3.9\psutil
copying psutil_pssunos.py -> build\lib.win-amd64-3.9\psutil
copying psutil_pswindows.py -> build\lib.win-amd64-3.9\psutil
copying psutil_init_.py -> build\lib.win-amd64-3.9\psutil
creating build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_bsd.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_connections.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_contracts.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_linux.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_memory_leaks.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_misc.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_osx.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_posix.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_process.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_sunos.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_system.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_unicode.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests\test_windows.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests_init_.py -> build\lib.win-amd64-3.9\psutil\tests
copying psutil\tests_main_.py -> build\lib.win-amd64-3.9\psutil\tests
running build_ext
building 'psutil.psutil_windows' extension
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\psutil
creating build\temp.win-amd64-3.9\Release\psutil\arch
creating build\temp.win-amd64-3.9\Release\psutil\arch\windows
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPSUTIL_WINDOWS=1 -DPSUTIL_VERSION=531 -D_WIN32_WINNT=0x01000 -D_AVAIL_WINVER
=0x01000 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -IC:\Users\Tallo\IdeaProjects\tap-tiktok.virtualenvs\target-stitch\include -IC:\Users\Tallo\AppData\Local\Programs\Python\Python39\include -IC:\Users\Tallo\AppData\Local\Progra
ms\Python\Python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include
-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -IC:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcpsutil/_psutil_common.c /Fobuild\temp.win-amd64-3.9\Rel
ease\psutil/_psutil_common.obj
psutil_common.c
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPSUTIL_WINDOWS=1 -DPSUTIL_VERSION=531 -D_WIN32_WINNT=0x01000 -D_AVAIL_WINVER
=0x01000 -D_CRT_SECURE_NO_WARNINGS -DPSAPI_VERSION=1 -IC:\Users\Tallo\IdeaProjects\tap-tiktok.virtualenvs\target-stitch\include -IC:\Users\Tallo\AppData\Local\Programs\Python\Python39\include -IC:\Users\Tallo\AppData\Local\Progra
ms\Python\Python39\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\include
-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared -IC:\Program Files (x86)\Windows
Kits\10\include\10.0.18362.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt /Tcpsutil/_psutil_windows.c /Fobuild\temp.win-amd64-3.9\Re
lease\psutil/_psutil_windows.obj
_psutil_windows.c
C:\Users\Tallo\AppData\Local\Temp\pip-install-xf2mjq2v\psutil_159c5ecdbff44007910d9f172fb74125\psutil\arch\windows\ntextapi.h(166): error C2011: '_CLIENT_ID': 'struct' type redefinition
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winternl.h(80): note: see declaration of '_CLIENT_ID'
C:\Users\Tallo\AppData\Local\Temp\pip-install-xf2mjq2v\psutil_159c5ecdbff44007910d9f172fb74125\psutil\arch\windows\ntextapi.h(172): error C2011: '_SYSTEM_THREAD_INFORMATION': 'struct' type redefinition
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winternl.h(286): note: see declaration of '_SYSTEM_THREAD_INFORMATION'
C:\Users\Tallo\AppData\Local\Temp\pip-install-xf2mjq2v\psutil_159c5ecdbff44007910d9f172fb74125\psutil\arch/windows/inet_ntop.h(15): warning C4028: formal parameter 2 different from declaration
psutil/_psutil_windows.c(839): warning C4267: '=': conversion from 'size_t' to 'DWORD', possible loss of data
psutil/_psutil_windows.c(2078): warning C4312: 'type cast': conversion from 'int' to 'PVOID' of greater size
psutil/_psutil_windows.c(2769): error C2039: 'ContextSwitches': is not a member of '_SYSTEM_THREAD_INFORMATION'
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winternl.h(286): note: see declaration of '_SYSTEM_THREAD_INFORMATION'
psutil/_psutil_windows.c(2888): warning C4133: 'function': incompatible types - from 'MEMORY_BASIC_INFORMATION64 *' to 'PMEMORY_BASIC_INFORMATION'
psutil/_psutil_windows.c(2921): warning C4047: '=': 'PVOID' differs in levels of indirection from 'ULONGLONG'
psutil/_psutil_windows.c(3453): warning C4267: 'function': conversion from 'size_t' to 'ULONG', possible loss of data
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\cl.exe' failed with exit code 2
----------------------------------------
Rolling back uninstall of psutil
Moving to c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages\psutil-5.8.0.dist-info
from C:\Users\Tallo\IdeaProjects\tap-tiktok.virtualenvs\target-stitch\Lib\site-packages~sutil-5.8.0.dist-info
Moving to c:\users\tallo\ideaprojects\tap-tiktok.virtualenvs\target-stitch\lib\site-packages\psutil
from C:\Users\Tallo\IdeaProjects\tap-tiktok.virtualenvs\target-stitch\Lib\site-packages~sutil
ERROR: Command errored out with exit status 1: 'C:\Users\Tallo\IdeaProjects\tap-tiktok.virtualenvs\target-stitch\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Tallo\AppData\L
ocal\Temp\pip-install-xf2mjq2v\psutil_159c5ecdbff44007910d9f172fb74125\setup.py'"'"'; file='"'"'C:\Users\Tallo\AppData\Local\Temp\pip-install-xf2mjq2v\psutil_159c5ecdbff44007910d9f172fb74125\setup.py'"'"';f = getat
tr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file
, '"'"'exec'"'"'))' install --record 'C:\Users\Tallo\AppData\Local\Temp\pip-record-q704jne5\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Tallo\IdeaProjects\tap-tiktok.virtualenvs\t
arget-stitch\include\site\python3.9\psutil' Check the logs for full command output.

@Tallons
Copy link

Tallons commented Aug 13, 2021

This is a potential fix: giampaolo/psutil#1850
psutil 5.8.0 now includes "wheels" for python 3.9 for Windows

@danteblink
Copy link

I was having the same error. I created a new env with conda and installed python 3.5.6, upgraded pip to the latest version and I had no problems with pip target-stitch on windows.

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

No branches or pull requests

3 participants