Bug 1372867 - fedora-burn-yubikey fails with python package error
Summary: fedora-burn-yubikey fails with python package error
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: fedora-packager
Version: 24
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Dennis Gilmore
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-03 01:56 UTC by Corey Daley
Modified: 2016-10-28 17:49 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-28 17:49:50 UTC
Type: Bug


Attachments (Terms of Use)

Description Corey Daley 2016-09-03 01:56:39 UTC
Description of problem:
fedora-burn-yubikey fails with python package error:
 fedora-burn-yubikey -u cdaley -S 2
Traceback (most recent call last):
  File "/usr/sbin/fedora-burn-yubikey", line 13, in <module>
    from fedora.client import AccountSystem, AuthError
  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 42, in <module>
    from requests.packages.urllib3.util import Retry
ImportError: cannot import name Retry

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. sudo dnf install fedora-packager
2.sudo fedora-burn-yubikey -u <username> -S 2
3.

Actual results:
 fedora-burn-yubikey -u cdaley -S 2
Traceback (most recent call last):
  File "/usr/sbin/fedora-burn-yubikey", line 13, in <module>
    from fedora.client import AccountSystem, AuthError
  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 42, in <module>
    from requests.packages.urllib3.util import Retry
ImportError: cannot import name Retry

Expected results:
It should succeed and allow the user to finish registering their yubikey with fedora account system

Additional info:
Looks like line #42 of /usr/lib/python2.7/site-packages/fedora/client/openidbaseclient.py need to be changed from
from requests.packages.urllib3.util import Retry
to 
from urllib3.util import Retry


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