Page MenuHomePhabricator fails if requests 0.8.2 (which doesnt have 'security' extra) is already installed
Closed, ResolvedPublic


When (with setuptools 12.0.5) is used with a pre-existing requests 0.8.2 (default on Ubuntu precise), it fails when checking whether the extra 'security' has been met.

Traceback (most recent call last):
  File "", line 189, in <module>
  File "/usr/lib/python2.7/distutils/", line 152, in setup
  File "/usr/lib/python2.7/distutils/", line 953, in run_commands
  File "/usr/lib/python2.7/distutils/", line 972, in run_command
  File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/nose/", line 144, in run
  File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/setuptools/", line 311, in fetch_build_eggs
  File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/pkg_resources/", line 813, in resolve
    new_requirements = dist.requires(req.extras)[::-1]
  File "/home/travis/virtualenv/python2.7_with_system_site_packages/local/lib/python2.7/site-packages/pkg_resources/", line 2558, in requires
    "%s has no such extra feature %r" % (self, ext)
pkg_resources.UnknownExtra: requests 0.8.2 has no such extra feature 'security'

Event Timeline

jayvdb raised the priority of this task from to High.
jayvdb updated the task description. (Show Details)
jayvdb added a project: Pywikibot.
jayvdb added subscribers: jayvdb, VcamX.

As pointed in T110636:

Running on a stock Ubuntu box which comes with requests v2.4.0 or lower causes

Dvorapa changed the task status from Open to Stalled.May 20 2018, 12:17 PM
Dvorapa added a subscriber: Dvorapa.

This seems to be solved by specifying requests 2.9+ in

Dvorapa assigned this task to Xqt.

Solved in f516310ef86e