Windows - Failed to build setproctitle
See original GitHub issueDescription
Windows.
Failed to build setproctitle ERROR: Could not build wheels for setproctitle which use PEP 517 and cannot be installed directly
setproctitle was updated on Nov 24 which is causing the problem. our CI started to break then. If you bump the version back down to the previous version 1.1.10
it then works as expected.
I see this, also --> setup.py
Easy to repo.
(env) C:\Users\seanw\viewstore\pgcli>pip install pgcli
Collecting pgcli
...
...
...
https://files.pythonhosted.org/packages/d8/cf/d7e48846e10ac4f8b89d489cec3dc9c2804a825f812c851559cfbcc251cc/Pygments-2.7.2-py3-none-any.whl
Collecting setproctitle>=1.1.9 (from pgcli)
Downloading https://files.pythonhosted.org/packages/a5/95/59d0c3979739802b830f5a715e6986613ed2a33c93c823c256fb89fdd299/setproctitle-1.2.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting psycopg2>=2.8 (from pgcli)
Using cached https://files.pythonhosted.org/packages/18/35/4be44fc779e8c8a7aedc4b19bf91dcd476edabd471b4d7c82f216b5ba271/psycopg2-2.8.6-cp38-cp38-win_amd64.whl
Requirement already satisfied: setuptools in c:\users\seanw\viewstore\pgcli\env\lib\site-packages (from humanize>=0.5.1->pgcli) (41.2.0)
Collecting six (from configobj>=5.0.6->pgcli)
Using cached https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl
Collecting wcwidth (from prompt-toolkit<4.0.0,>=3.0.0->pgcli)
Using cached https://files.pythonhosted.org/packages/59/7c/e39aca596badaf1b78e8f547c807b04dae603a433d3e7a7e04d67f2ef3e5/wcwidth-0.2.5-py2.py3-none-any.whl
Collecting terminaltables>=3.0.0 (from cli-helpers[styles]>=1.2.0->pgcli)
Collecting tabulate[widechars]>=0.8.2 (from cli-helpers[styles]>=1.2.0->pgcli)
Using cached https://files.pythonhosted.org/packages/c4/f4/770ae9385990f5a19a91431163d262182d3203662ea2b5739d0fcfc080f1/tabulate-0.8.7-py3-none-any.whl
Building wheels for collected packages: setproctitle
Building wheel for setproctitle (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\seanw\viewstore\pgcli\env\scripts\python.exe' 'c:\users\seanw\viewstore\pgcli\env\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\seanw\AppData\Local\Temp\1\tmpfosm6ozx'
cwd: C:\Users\seanw\AppData\Local\Temp\1\pip-install-tx0rcr4m\setproctitle
Complete output (19 lines):
running bdist_wheel
running build
running build_ext
building 'setproctitle' extension
creating build
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\src
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 -DSPT_VERSION=1.2 -Ic:\users\seanw\viewstore\pgcli\env\include -IC:\Users\seanw\AppData\Local\Programs\Python\Python38\include -IC:\Users\seanw\AppData\Local\Programs\Python\Python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\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" /Tcsrc/setproctitle.c /Fobuild\temp.win-amd64-3.8\Release\src/setproctitle.obj
setproctitle.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 -DSPT_VERSION=1.2 -Ic:\users\seanw\viewstore\pgcli\env\include -IC:\Users\seanw\AppData\Local\Programs\Python\Python38\include -IC:\Users\seanw\AppData\Local\Programs\Python\Python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\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" /Tcsrc/spt_debug.c /Fobuild\temp.win-amd64-3.8\Release\src/spt_debug.obj
spt_debug.c
src/spt_debug.c(28): warning C4996: 'getenv': This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
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 -DSPT_VERSION=1.2 -Ic:\users\seanw\viewstore\pgcli\env\include -IC:\Users\seanw\AppData\Local\Programs\Python\Python38\include -IC:\Users\seanw\AppData\Local\Programs\Python\Python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\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" /Tcsrc/spt_setup.c /Fobuild\temp.win-amd64-3.8\Release\src/spt_setup.obj
spt_setup.c
src/spt_setup.c(23): warning C4273: '__p__environ': inconsistent dll linkage
C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt\stdlib.h(1165): note: see previous definition of '__p__environ'
src/spt_setup.c(454): error C2099: initializer is not a constant
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: Failed building wheel for setproctitle
Running setup.py clean for setproctitle
Failed to build setproctitle
ERROR: Could not build wheels for setproctitle which use PEP 517 and cannot be installed directly
Your environment
-
Please provide your OS and version information. Windows
-
Please provide your CLI version.
3.3.0
- What is the output of
pip freeze
command.
Clean venv with nothing in it
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Error installing apache-airflow: "Could not build wheels for ...
I am on MacOS 10.15.7, Python version 3.8.2, and I keep getting an error: ERROR: Could not build wheels for setproctitle which use...
Read more >dbcli/pgcli - Gitter
Does pgcli work with Python 3 on Windows? Error I see on >pip install pgcli:Failed building wheel for setproctitle. Running setup.py clean for...
Read more >building wheel for pycocotools (pyproject.toml) ... error error
Just reading inside the error: error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": ...
Read more >install pyomo.extras on Windows - Google Groups
-IC:\Python\Python27\PC -c src/setproctitle.c -o build\temp.win32-2.7\Release\sr. c\setproctitle.o. error: command 'gcc' failed: No such file or directory.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @swells setting setproctitle at 1.1.9 (pip install setproctitle==1.1.9) , finally i can install apache-airflow on my venv
The issue was a missing dependency. In the error stack, there was this
setuptools._distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
I installed
Microsoft Visual C++ 14.0
and then I can install the version setproctitle-1.2.2.