-
Notifications
You must be signed in to change notification settings - Fork 31
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
Comments
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:
|
This is a potential fix: giampaolo/psutil#1850 |
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. |
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.
The text was updated successfully, but these errors were encountered: