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 - Failed to build setproctitle #1225

Closed
3 tasks done
swells opened this issue Dec 1, 2020 · 6 comments
Closed
3 tasks done

Windows - Failed to build setproctitle #1225

swells opened this issue Dec 1, 2020 · 6 comments

Comments

@swells
Copy link

swells commented Dec 1, 2020

Description

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

@StefanoGITA
Copy link

Thanks @swells setting setproctitle at 1.1.9 (pip install setproctitle==1.1.9) , finally i can install apache-airflow on my venv

@isragaytan
Copy link

Thanks for share this!.

@ERYoung11
Copy link
Contributor

ERYoung11 commented Mar 2, 2021

Are you still seeing this error? I do not experience this issue on Windows though I do note that I download setproctitle-1.2.2.

It looks like your issue was addressed by setproctitle in a pull request to address Issue 89 after December 11th as of version 1.2.2

Should this issue be closed?

@Aman9795
Copy link

Thanks @swells setting setproctitle at 1.1.9 (pip install setproctitle==1.1.9) , finally i can install apache-airflow on my venv

Still not working

@NinjaDev06
Copy link

Are you still seeing this error? I do not experience this issue on Windows though I do note that I download setproctitle-1.2.2.

It looks like your issue was addressed by setproctitle in a pull request to address Issue 89 after December 11th as of version 1.2.2

Should this issue be closed?

I tried version 1.1.9 and 1.2.2 and both of them are not working.

@NinjaDev06
Copy link

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.

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

7 participants