Bug 1254585 - traceback with pyOpenSSL.noarch 0.15.1-1.fc22
Summary: traceback with pyOpenSSL.noarch 0.15.1-1.fc22
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: pyOpenSSL
Version: 22
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-18 13:05 UTC by Tomáš Hozza
Modified: 2018-04-11 08:31 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-18 14:05:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hozza 2015-08-18 13:05:37 UTC
Description of problem:
After running 'dnf update' fedpkg ends always with traceback:

$ fedpkg 
Traceback (most recent call last):
  File "/usr/bin/fedpkg", line 13, in <module>
    from fedpkg.__main__ import main
  File "/usr/lib/python2.7/site-packages/fedpkg/__init__.py", line 12, in <module>
    import pyrpkg
  File "/usr/lib/python2.7/site-packages/pyrpkg/__init__.py", line 23, in <module>
    import koji
  File "/usr/lib/python2.7/site-packages/koji/__init__.py", line 47, in <module>
    import ssl.SSLCommon
  File "/usr/lib/python2.7/site-packages/koji/ssl/SSLCommon.py", line 18, in <module>
    from OpenSSL import SSL
  File "/usr/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "/usr/lib/python2.7/site-packages/OpenSSL/SSL.py", line 10, in <module>
    from six import int2byte, indexbytes
ImportError: cannot import name indexbytes


The issue seems to be in rpkg.

Version-Release number of selected component (if applicable):
fedpkg-1.20-1.fc22.noarch
pyOpenSSL-0.15.1-1.fc22.noarch
pyrpkg-1.36-1.fc22.noarch

How reproducible:
always

Steps to Reproduce:
1. update F22
2. run any fedpkg command

Actual results:
traceback

Expected results:
no traceback

Additional info:

Comment 1 Tomáš Hozza 2015-08-18 13:18:29 UTC
Seems to be rather pyOpenSSL issue:

$ python2 -c 'from OpenSSL import rand, crypto, SSL'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import rand, crypto, SSL
  File "/usr/lib/python2.7/site-packages/OpenSSL/SSL.py", line 10, in <module>
    from six import int2byte, indexbytes
ImportError: cannot import name indexbytes

Comment 2 Tomáš Hozza 2015-08-18 14:05:08 UTC
It seems that the reinstall of python-six solved the issue for me... Not sure what was the cause.

Comment 3 Luis Pabón 2015-12-03 21:52:15 UTC
I found the same issue and reinstalling python-six also solved it.  I wonder what is going on?


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