Bug 1197300 - python-docker-py requires not satisfied
Summary: python-docker-py requires not satisfied
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-docker-py
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Tomecek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-28 06:15 UTC by Airlangga Cahya Utama
Modified: 2015-03-26 22:02 UTC (History)
5 users (show)

Fixed In Version: python-docker-py-0.7.1-3.fc21
Clone Of:
Environment:
Last Closed: 2015-03-26 22:02:16 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Airlangga Cahya Utama 2015-02-28 06:15:01 UTC
Description of problem:
Fig is broken, cannot run at all.

Version-Release number of selected component (if applicable):
0.7.1-1.fc21.x86_64

How reproducible:
run fig -f <somefile.yaml> up

Steps to Reproduce:
1. Run fig

Actual results:
[airlangga@chaika doctrack]$ fig -f fig-dev.yml 
Traceback (most recent call last):
  File "/usr/bin/fig", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2713, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 571, in resolve
    raise VersionConflict(dist,req) # XXX put more info here
pkg_resources.VersionConflict: (requests 2.5.0 (/usr/lib/python2.7/site-packages), Requirement.parse('requests>=2.2.1,<2.5.0'))

Expected results:
[airlangga@chaika doctrack]$ fig -f fig-dev.yml  up
Creating doctrack_dbdev_1...
Creating doctrack_webdev_1...
Attaching to doctrack_dbdev_1, doctrack_webdev_1
....
....

Additional info:
Downgrading python-docker-py to version 0.5.3-2.fc21 solve the problem.

Comment 1 Matej Stuchlik 2015-03-02 09:01:48 UTC
This looks like a bug in python-docker-py, which has the following in it's setup.py:

    'requests >= 2.2.1, < 2.5.0',

F22 contains python-requests 2.5.0 as of now. [0]

[0] https://apps.fedoraproject.org/packages/python-requests

Comment 2 Fedora Admin XMLRPC Client 2015-03-12 14:46:41 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Tomas Tomecek 2015-03-13 06:56:47 UTC
Matej, it's not a bug. Upstream tried to workaround an issue in urllib3:

https://github.com/docker/docker-py/issues/406


Is this still an issue? I can see there is python-requests==2.3.0 available in f21:

$ rpm -q python-requests
python-requests-2.3.0-3.fc21.noarch

$ koji latest-build f21 python-requests
Build                                     Tag                   Built by
----------------------------------------  --------------------  ----------------
python-requests-2.3.0-3.fc21              f21                   spot


That should definitely satisfy the condition:

    'requests >= 2.2.1, < 2.5.0',

Comment 4 Airlangga Cahya Utama 2015-03-13 07:11:17 UTC
I read from https://apps.fedoraproject.org/packages/python-requests latest build is version 2.5.0-3.fc21 and not 2.3.0.

Using rpm confirm 2.5.0 is installed on my f21.

[airlangga@chaika ~]$ rpm -q python-requests
python-requests-2.5.0-3.fc21.noarch

For now I locked down python-docker-py version to 0.5.3-2 to make fig work.

Comment 5 Tomas Tomecek 2015-03-13 12:48:02 UTC
You are right!

$ koji latest-build f21-updates python-requests
Build                                     Tag                   Built by
----------------------------------------  --------------------  ----------------
python-requests-2.5.0-3.fc21              f21-updates           ralph


Will patch docker-py. The original issue is related to boot2docker, which we don't use (I hope) in Fedora anyway.

Comment 6 Fedora Update System 2015-03-13 13:05:15 UTC
python-docker-py-0.7.1-3.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/python-docker-py-0.7.1-3.fc21

Comment 7 Fedora Update System 2015-03-14 09:13:42 UTC
Package python-docker-py-0.7.1-3.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-docker-py-0.7.1-3.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-3844/python-docker-py-0.7.1-3.fc21
then log in and leave karma (feedback).

Comment 8 Airlangga Cahya Utama 2015-03-15 11:24:50 UTC
Looks good. No problem so far with fig.
Thanks! Karma sent!

Comment 9 Fedora Update System 2015-03-26 22:02:16 UTC
python-docker-py-0.7.1-3.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


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