setup-clienttools failed when using local pip repository

Bug #1393296 reported by Leslie Wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Expired
Low
Unassigned

Bug Description

When I use my own local pip repository, setup-clienttools will failed, and have below error in pip.log.

  Running setup.py install for cryptography
    Running command /home/qiwa/tripleo/tripleo-incubator/openstack-tools/bin/python -c "import setuptools, tokenize;__file__='/home/qiwa/tripleo/tripleo-incubator/openstack-tools/build/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-HVQbZX-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/qiwa/tripleo/tripleo-incubator/openstack-tools/include/site/python2.7
    Download error on https://pypi.python.org/simple/cffi/: [Errno 110] Connection timed out -- Some packages may not be found!
    Couldn't find index page for 'cffi' (maybe misspelled?)
    Download error on https://pypi.python.org/simple/: [Errno 110] Connection timed out -- Some packages may not be found!
    No local packages or download links found for cffi>=0.8
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/build/cryptography/setup.py", line 338, in <module>
        **keywords_with_side_effects(sys.argv)
      File "/usr/lib/python2.7/distutils/core.py", line 112, in setup
        _setup_distribution = dist = klass(attrs)
      File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/setuptools/dist.py", line 263, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/setuptools/dist.py", line 288, in fetch_build_eggs
        replace_conflicting=True,
      File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/pkg_resources.py", line 618, in resolve
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/pkg_resources.py", line 870, in best_match
        return self.obtain(req, installer)
      File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/pkg_resources.py", line 882, in obtain
        return installer(requirement)
      File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/setuptools/dist.py", line 355, in fetch_build_egg
        return cmd.easy_install(req)
      File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 607, in easy_install
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('cffi>=0.8')
    Complete output from command /home/qiwa/tripleo/tripleo-incubator/openstack-tools/bin/python -c "import setuptools, tokenize;__file__='/home/qiwa/tripleo/tripleo-incubator/openstack-tools/build/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-HVQbZX-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/qiwa/tripleo/tripleo-incubator/openstack-tools/include/site/python2.7:
    Download error on https://pypi.python.org/simple/cffi/: [Errno 110] Connection timed out -- Some packages may not be found!

Couldn't find index page for 'cffi' (maybe misspelled?)

Download error on https://pypi.python.org/simple/: [Errno 110] Connection timed out -- Some packages may not be found!

No local packages or download links found for cffi>=0.8

Traceback (most recent call last):

  File "<string>", line 1, in <module>

  File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/build/cryptography/setup.py", line 338, in <module>

    **keywords_with_side_effects(sys.argv)

  File "/usr/lib/python2.7/distutils/core.py", line 112, in setup

    _setup_distribution = dist = klass(attrs)

  File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/setuptools/dist.py", line 263, in __init__

    self.fetch_build_eggs(attrs['setup_requires']) File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/setuptools/dist.py", line 288, in fetch_build_eggs

    replace_conflicting=True,

  File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/pkg_resources.py", line 618, in resolve

    dist = best[req.key] = env.best_match(req, ws, installer)

  File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/pkg_resources.py", line 870, in best_match

    return self.obtain(req, installer)

  File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/pkg_resources.py", line 882, in obtain

    return installer(requirement)

  File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/setuptools/dist.py", line 355, in fetch_build_egg

    return cmd.easy_install(req)

  File "/home/qiwa/tripleo/tripleo-incubator/openstack-tools/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 607, in easy_install

    raise DistutilsError(msg)

distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('cffi>=0.8')

Revision history for this message
Leslie Wang (wqyuwss) wrote :

My workaround is to manually install 2 packages in setup-clienttools

pip install cffi
pip install pycparser

Revision history for this message
Leslie Wang (wqyuwss) wrote :

Please let me know if I need submit the workaround as a fix or not.

Revision history for this message
Ghe Rivero (ghe.rivero) wrote :

This looks like an incomplete pip mirror. Can you describe how you setup it, and the list of cffi packages available in the mirror?

Changed in tripleo:
status: New → Incomplete
importance: Undecided → Low
Revision history for this message
Ghe Rivero (ghe.rivero) wrote :

Also, looking at the logs, there is a network error:

Download error on https://pypi.python.org/simple/cffi/: [Errno 110] Connection timed out -- Some packages may not be found!

so for this case you are not using the local pip repo.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for tripleo because there has been no activity for 60 days.]

Changed in tripleo:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.