Description of problem: can't import fedora.client.bodhi in EPEL7 maching with python2 Version-Release number of selected component (if applicable): python-fedora-0.6.2-1.el7 python-requests-1.1.0-8.el7 python-urllib3-1.5-8.el7.noarch How reproducible: always Steps to Reproduce: 1.python 2.import fedora.client.bodhi Actual results: # python Python 2.7.5 (default, Feb 11 2014, 07:46:25) [GCC 4.8.2 20140120 (Red Hat 4.8.2-13)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import fedora.client.bodhi Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/site-packages/fedora/client/__init__.py", line 132, in <module> from fedora.client.openidbaseclient import OpenIdBaseClient File "/usr/lib/python2.7/site-packages/fedora/client/openidbaseclient.py", line 53, in <module> from requests.packages.urllib3.util import Retry ImportError: No module named packages.urllib3.util Expected results: no import error Additional info: from urllib3.util import Retry would fail too
There should be a more modern version of python-requests in the rhel 7 repos. Does upgrading to that help?
Centos 7 repositories http://ftp.linux.cz/pub/linux/centos/7/os/x86_64/Packages/ http://ftp.linux.cz/pub/linux/centos/7.1.1503/os/x86_64/Packages/ have python-requests-1.1.0-8.el7.noarch.rpm Fedora EPEL7 and EPEL7-testing http://ftp.linux.cz/pub/linux/fedora/epel/7/x86_64/p/ http://ftp.linux.cz/pub/linux/fedora/epel/testing/7/x86_64/p/ does not have any python-requests package I can see that python-requests-2.6.0-1.el7_1 should be available in RHEL7, so it seems that only centos is broken. Anyway, if python-fedora requires some minimal version, it should specify it in spec file. With python-requests 2.6.0 import works
Thanks, and sorry for the trouble. Retiring epel packages when they get absorbed into rhel can be tricky with respect to the timing of everything. I've set the minimum version required to 2.6.0 and will ship an epel7 testing update soon.
python-fedora-0.6.2-4.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-da3627f932
python-fedora-0.6.2-4.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'yum --enablerepo=epel-testing update python-fedora' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-da3627f932
IMO you should put Requires: python-urllib3 directly into python-fedora.spec (even on Fedoras), because openidbaseclient.py calls urllib3. The fact you requires python-request which should request urllib3, which need too, should not be excuse.
python-fedora-0.6.2-4.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.