[openstack-dev] [neutron][tox] Cannot install sphinx package...

Paul Michali (pcm) pcm at cisco.com
Mon Nov 10 15:57:14 UTC 2014


I have two bare metal machines, in a lab, behind a firewall, with a proxy to access HTTPS. With the latest neutron code, I’m trying to run TOX and keep hitting an issue…

Downloading/unpacking requests-mock>=0.4.0 (from -r /opt/stack/neutron/test-requirements.txt (line 13))
  Using download cache from /home/pcm/.pip/cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fpy2.py3%2Fr%2Frequests-mock%2Frequests_mock-0.5.1-py2.py3-none-any.whl
Downloading/unpacking sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3 (from -r /opt/stack/neutron/test-requirements.txt (line 14))
  Real name of requirement sphinx is sphinx
  Could not find any downloads that satisfy the requirement sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3 (from -r /opt/stack/neutron/test-requirements.txt (line 14))
  Some externally hosted files were ignored (use --allow-external sphinx to allow).
Cleaning up...
No distributions at all found for sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3 (from -r /opt/stack/neutron/test-requirements.txt (line 14))
Storing debug log for failure in /home/pcm/.pip/pip.log

ERROR: could not install deps [-r/opt/stack/neutron/requirements.txt, -r/opt/stack/neutron/test-requirements.txt]; v = InvocationError('/opt/stack/neutron/.tox/py27/bin/pip install -U -r/opt/stack/neutron/requirements.txt -r/opt/stack/neutron/test-requirements.txt (see /opt/stack/neutron/.tox/py27/log/py27-1.log)', 1)

Looking at the pip log, I see…

Downloading/unpacking requests-mock>=0.4.0 (from -r /opt/stack/neutron/test-requirements.txt (line 13))
  Getting page https://pypi.python.org/simple/requests-mock/
  URLs to search for versions for requests-mock>=0.4.0 (from -r /opt/stack/neutron/test-requirements.txt (line 13)):
  * https://pypi.python.org/simple/requests-mock/
  Analyzing links from page https://pypi.python.org/simple/requests-mock/
    Found link https://pypi.python.org/packages/2.7/r/requests-mock/requests_mock-0.1.0-py2.py3-none-any.whl#md5=50a06526ebfa7643b65e8dc14f5811d9 (from https://pypi.python
.org/simple/requests-mock/), version: 0.1.0
…
  Using version 0.5.1 (newest of versions: 0.5.1, 0.5.1, 0.5.0, 0.5.0, 0.4.0, 0.4.0)
  Using download cache from /home/pcm/.pip/cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2Fpy2.py3%2Fr%2Frequests-mock%2Frequests_mock-0.5.1-py2.py3-none-any.whl
Downloading/unpacking sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3 (from -r /opt/stack/neutron/test-requirements.txt (line 14))
  Getting page https://pypi.python.org/simple/sphinx/
  Could not fetch URL https://pypi.python.org/simple/sphinx/: connection error: ('Cannot connect to proxy.', error(110, 'Connection timed out'))
  Will skip URL https://pypi.python.org/simple/sphinx/ when looking for download links for sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3 (from -r /opt/stack/neutron/test-requirements.txt (line 14))
  Getting page https://pypi.python.org/simple/
  Real name of requirement sphinx is sphinx
  URLs to search for versions for sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3 (from -r /opt/stack/neutron/test-requirements.txt (line 14)):
  * https://pypi.python.org/simple/sphinx/
  Getting page https://pypi.python.org/simple/sphinx/
  Could not fetch URL https://pypi.python.org/simple/sphinx/: connection error: ('Cannot connect to proxy.', error(110, 'Connection timed out'))
  Will skip URL https://pypi.python.org/simple/sphinx/ when looking for download links for sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3 (from -r /opt/stack/neutron/test-requirements.txt (line 14))
  Could not find any downloads that satisfy the requirement sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3 (from -r /opt/stack/neutron/test-requirements.txt (line 14))
  Some externally hosted files were ignored (use --allow-external sphinx to allow).
Cleaning up...
  Removing temporary dir /opt/stack/neutron/.tox/py27/build...
No distributions at all found for sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3 (from -r /opt/stack/neutron/test-requirements.txt (line 14))
Exception information:
Traceback (most recent call last):
  File "/opt/stack/neutron/.tox/py27/local/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/opt/stack/neutron/.tox/py27/local/lib/python2.7/site-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/opt/stack/neutron/.tox/py27/local/lib/python2.7/site-packages/pip/req.py", line 1177, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "/opt/stack/neutron/.tox/py27/local/lib/python2.7/site-packages/pip/index.py", line 277, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3 (from -r /opt/stack/neutron/test-requirements.txt (line 14))

Some points here…

It gives a timeout accessing the URL, however I can wget from it just fine from the command line.
I see the same problem if I delete .tox/ and ~/.pip/cache/ contents.
If I source the environment, and pip install sphinx, I see it in the cache, and in the environment. However, during the TOX run, it does not access the cache (like it did with other packages), and after the run, the package has been removed from the virtual environment, AFAICT.
I tried just specifying sphinx>=1.1.2 and see the same issue
I tried commenting out sphinx and a TOX run for PEP8 works, but not other TOX runs (which appear to use sphinx).
Anyone have any ideas on how I troubleshoot/resolve this?

Thanks!


PCM (Paul Michali)

MAIL …..…. pcm at cisco.com
IRC ……..… pc_m (irc.freenode.com)
TW ………... @pmichali
GPG Key … 4525ECC253E31A83
Fingerprint .. 307A 96BB 1A4C D2C7 931D 8D2D 4525 ECC2 53E3 1A83




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141110/7f65801b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20141110/7f65801b/attachment.pgp>


More information about the OpenStack-dev mailing list