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 httplib2 --user FAILED for v0.18.0 and later #171

Open
rileyk90 opened this issue Jul 7, 2020 · 6 comments
Open

pip install httplib2 --user FAILED for v0.18.0 and later #171

rileyk90 opened this issue Jul 7, 2020 · 6 comments
Labels

Comments

@rileyk90
Copy link

rileyk90 commented Jul 7, 2020

[guestshell@guestshell ~]$ pip install httplib2==0.18.0 --user
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting httplib2==0.18.0
  Downloading https://files.pythonhosted.org/packages/a9/24/66d23495c90d39c9d511e9167e5d051fe2c8002b1f68da35410d561051bf/httplib2-0.18.0.tar.gz (257kB)
     |################################| 266kB 2.8MB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 2:
   command: /usr/bin/python /usr/lib/python2.7/site-packages/pip-19.2.1-py2.7.egg/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpKWypMJ
       cwd: /var/volatile/tmp/pip-install-cFfq97/httplib2
  Complete output (1 lines):
  /usr/bin/python: can't open file '/usr/lib/python2.7/site-packages/pip-19.2.1-py2.7.egg/pip/_vendor/pep517/_in_process.py': [Errno 2] No such file or directory
  ----------------------------------------
ERROR: Command errored out with exit status 2: /usr/bin/python /usr/lib/python2.7/site-packages/pip-19.2.1-py2.7.egg/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpKWypMJ Check the logs for full command output.

Earlier versions were successful. pip install logs are attached.
httplib2_install_logs.txt
Please advise.

@temoto
Copy link
Member

temoto commented Jul 7, 2020

It says can't open file pip/_vendor/pep517/_in_process.py
It is error in pip. This is not related to httplib2.

@temoto temoto added the question label Jul 7, 2020
@rileyk90
Copy link
Author

rileyk90 commented Jul 7, 2020

I've used a fresh upgrade of pip v20.1, which was the latest pip version released before httplib2 v0.18.0, as well as pip v19.2.1 and v20.1.1. I've had no troubles with any other python packages installing under these pip versions, including httplib2 v0.17.4, until httplib v0.18.0 was released. This suggests something in httplib0.18.0 and later is incompatible with pip.

@temoto
Copy link
Member

temoto commented Jul 7, 2020

@rileyk90 I'm very sorry, my best guess is httplib2's fault part is shipping pyproject.toml since 0.18.0 which encourages pip to build wheels and our separate py2/3 code is preventing wheel building. Maybe there is some way to tell pip to skip building wheels, I don't know.

Please try pip --no-use-pep517

Related: pypa/pip#6163

By the way, you should seriously consider upgrading to Python3 because I'm going to remove python2 code in future versions soon. On bright side, it will become like a regular new package with good support for all modern tools.

@EricSoroos
Copy link

ERROR: Disabling PEP 517 processing is invalid: project specifies a build backend of setuptools.build_meta in pyproject.toml

I'm having trouble building this on a system that's using Ubuntu 16.04's system python. There's a combination of interrelated incompatibilities, but the root appears to be something in setuptools not playing nice.

It would be nice if security updates were decoupled from build system updates, e.g. 0.17.5 as the security update, then 0.18.0 be the build system update including the security patch.

@temoto
Copy link
Member

temoto commented Jul 14, 2020

@EricSoroos yeah good idea, I'll do 0.17.5 without pyproject.toml

@temoto
Copy link
Member

temoto commented Jul 14, 2020

@rileyk90 @EricSoroos please try to install 0.17.5 from test pypi.

pip install --index-url https://test.pypi.org/simple/ 'httplib2==0.17.5'

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

No branches or pull requests

3 participants