[SRU] AttributeError: 'Requirement' object has no attribute 'project_name'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-pip (Debian) |
Fix Released
|
Unknown
|
|||
python-pip (Ubuntu) |
Fix Released
|
High
|
Felipe Reyes | ||
Xenial |
Fix Released
|
High
|
Felipe Reyes | ||
Yakkety |
Fix Released
|
High
|
Felipe Reyes | ||
Zesty |
Fix Released
|
High
|
Felipe Reyes |
Bug Description
[impact]
pip 8.1.1 (xenial) tries to access properties that were dropped from the Requirement class and when pip's code tries to access Requirement.
Any user trying to install a package that triggers the pkg_resources.
[Test Case]
# wget https:/
# wget https:/
# pip install requests-
# pip install requests-
Expected result:
pip installs requests 2.11.1
Actual result:
pip fails with the following exception
root@pip-
Processing ./requests-
Exception:
Traceback (most recent call last):
File "/usr/lib/
status = self.run(options, args)
File "/usr/lib/
wb.
File "/usr/lib/
self.
File "/usr/lib/
ignore_
File "/usr/lib/
req_
File "/usr/lib/
self.
AttributeError: 'Requirement' object has no attribute 'project_name'
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
[Regression Potential]
* None, this change is already part of 8.1.2, and most of the change is already part of the ubuntu package, there is just one last place where the code is accessing Requirement.
[Other info]
From 8e236dd6a09bd2f
From: Donald Stufft <email address hidden>
Date: Wed, 11 Nov 2015 18:51:46 -0500
Subject: [PATCH] Update to use the Requirement class from packaging
https:/
This SRU fixes autopkgtest, so the building process to get into -proposed doesn't block it.
tags: | added: sts-sru |
Changed in python-pip (Ubuntu Xenial): | |
assignee: | nobody → Felipe Reyes (freyes) |
Changed in python-pip (Ubuntu): | |
status: | New → Invalid |
Changed in python-pip (Ubuntu Xenial): | |
status: | New → In Progress |
importance: | Undecided → High |
Changed in python-pip (Ubuntu): | |
importance: | Undecided → High |
status: | Invalid → Fix Released |
Changed in python-pip (Ubuntu Zesty): | |
importance: | Undecided → High |
tags: | added: sts-sponsor |
Changed in python-pip (Debian): | |
status: | Unknown → Fix Committed |
Changed in python-pip (Debian): | |
status: | Fix Committed → Fix Released |
Changed in python-pip (Ubuntu Xenial): | |
status: | Triaged → In Progress |
Changed in python-pip (Ubuntu Yakkety): | |
status: | Triaged → In Progress |
tags: | removed: sts-sponsor |
tags: |
added: sts-sru-done removed: sts-sru |
Yakkety has pip 8.1.2, so devel series is ok, this just affects Xenial