RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1249651 - docker-py gets broken by old python-requests version
Summary: docker-py gets broken by old python-requests version
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Lokesh Mandvekar
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard:
Depends On: 1245521 1245523
Blocks: 1246120
TreeView+ depends on / blocked
 
Reported: 2015-08-03 13:40 UTC by Bohuslav "Slavek" Kabrda
Modified: 2019-03-06 02:28 UTC (History)
10 users (show)

Fixed In Version: docker-1.7.1-109.el7_1
Doc Type: Bug Fix
Doc Text:
Clone Of: 1245521
Environment:
Last Closed: 2016-01-07 21:44:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Bohuslav "Slavek" Kabrda 2015-08-03 13:40:21 UTC
+++ This bug was initially created as a clone of Bug #1245521 +++

When I try to use a Python application that depends on python-docker-py (or python3-docker-py) and uses setuptools entry point for its binary, I get this error (using atomic-reactor [1]):

Traceback (most recent call last):
  File "/usr/bin/atomic-reactor2", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3084, in <module>
    @_call_aside
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3070, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3097, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 653, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 666, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 839, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'websocket-client>=0.32.0' distribution was not found and is required by docker-py

So the problem is that Fedora's python-websocket-client is too old. I'll open another bug for python-websocket-client to update, but I think there's also a problem in python-docker-py that should be solved.
Either python-docker-py should use proper python-websocket-client version in specfile, like "Requires: python-websocket-client >= 0.32.0" or "/usr/lib/python2.7/site-packages/docker_py-1.3.0-py2.7.egg-info/requires.txt" should be patched to not require that specific version (assuming the package can work with older versions).

[1] https://github.com/projectatomic/atomic-reactor

--- Additional comment from Tomas Tomecek on 2015-07-28 00:46:05 EDT ---

http://pkgs.fedoraproject.org/cgit/python-docker-py.git/commit/?id=2785970ef768da322a6259a8623a92ff20c1961a

http://koji.fedoraproject.org/koji/buildinfo?buildID=672764
http://koji.fedoraproject.org/koji/buildinfo?buildID=672763


does f22 also require a fix?

--- Additional comment from Bohuslav "Slavek" Kabrda on 2015-07-28 05:25:05 EDT ---

F22 is fine, no fix needed there. Thanks!

--- Additional comment from Tomas Tomecek on 2015-07-28 05:42:06 EDT ---

Closing then. Feel free to reopen in case more issues.



Note: the original Fedora bug was for incompatible python-websocket-client version, this one is for incompatible python-requests version. I provided the RHEL 7 backtrace and explanation at bug 1192534 comment 13.


Note You need to log in before you can comment on or make changes to this bug.