Opened 9 years ago

Closed 9 years ago

#5313 closed defect (fixed)

Fresh install requires "requests>=2.6.0"

Reported by: Jim Campbell Owned by:
Priority: blocker Milestone: 0.8.0
Component: programming Keywords: requests
Cc: paroneayea Parent Tickets:

Description

When doing a fresh install on Debian Jessie, I encountered this error at the

./bootstrap.sh && ./configure && make

step:

Using /srv/mediagoblin.thedocsbook.org/mediagoblin/lib/python2.7/site-packages/PyLD-0.6.7-py2.7.egg
Searching for requests==2.4.3
Reading https://pypi.python.org/simple/requests/
Best match: requests 2.4.3
Downloading https://pypi.python.org/packages/source/r/requests/requests-2.4.3.tar.gz#md5=02214b3a179e445545de4b7a98d3dd17
Processing requests-2.4.3.tar.gz
Writing /tmp/easy_install-tEaZEN/requests-2.4.3/setup.cfg
Running requests-2.4.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-tEaZEN/requests-2.4.3/egg-dist-tmp-eGjwmZ
Traceback (most recent call last):
  File "setup.py", line 154, in <module>
    "Topic :: Internet :: WWW/HTTP :: Dynamic Content"
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/command/develop.py", line 32, in run
    self.install_for_development()
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/command/develop.py", line 132, in install_for_development
    self.process_distribution(None, self.dist, not self.no_deps)
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 733, in process_distribution
    self.easy_install(dist.as_requirement())
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 636, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 666, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 856, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1078, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1063, in run_setup
    run_setup(setup_script, args)
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 68, in run_setup
    DirectorySandbox(setup_dir).run(runner)
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 114, in run
    return func()
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 67, in runner
    _execfile(setup_script, ns)
  File "/srv/mediagoblin.thedocsbook.org/mediagoblin/local/lib/python2.7/site-packages/setuptools/sandbox.py", line 43, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-tEaZEN/requests-2.4.3/setup.py", line 6, in <module>
    # the Free Software Foundation, either version 3 of the License, or
  File "/tmp/easy_install-tEaZEN/requests-2.4.3/requests/__init__.py", line 53, in <module>
  File "/tmp/easy_install-tEaZEN/requests-2.4.3/requests/packages/urllib3/contrib/pyopenssl.py", line 73, in <module>
AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv3'

All mentions of requirements for 'requests' should state a minimum version number of 2.6.0 (e.g., in setup.py). There may be other instances of 'requests' that require an update, as well, so people who are more familiar with the source code should check for them.

Entering

 ./bin/easy_install --upgrade requests

and re-issuing the original command installed reqeusts 2.6.0 and allowed the process to continue as needed.

Change History (1)

comment:1 by Jim Campbell, 9 years ago

Resolution: fixed
Status: newclosed

Updated requirement for 'requests' to >=2.6.0. Issue fixed with commit 3252f738368db9345db65f056800597c34a15d62.

Cheers.

Note: See TracTickets for help on using tickets.