Bug 1464193

Summary: python-crypto2.6 RPM from EPEL does not install the library properly
Product: [Fedora] Fedora EPEL Reporter: E. Filipov <rhbugzilla>
Component: epel-releaseAssignee: Michael Stahnke <mastahnke>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: el6CC: dennis, djw8605, kevin, mastahnke
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-24 03:37:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description E. Filipov 2017-06-22 15:41:22 UTC
Description of problem:
On a CentOS 6 system, the pycrypto library is still unavailable, even after the corresponding RPM is installed:

# yum install https://dl.fedoraproject.org/pub/epel/6/x86_64/python-crypto2.6-2.6.1-2.el6.x86_64.rpm
# python -c 'import Crypto'                                                                                                                                                              
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named Crypto


Version-Release number of selected component (if applicable): EPEL, CentOS 6, python-crypto2.6-2.6.1-2.el6.x86_64.rpm


How reproducible:
100%

Steps to Reproduce:
1. See description

Actual results:
Traceback

Expected results:
Blank line with no error

Additional info:
After creating a corresponding .pth file, things work fine:
# echo 'pycrypto-2.6.1-py2.6-linux-x86_64.egg' > /usr/lib64/python2.6/site-packages/pycrypto-2.6.1.pth
# python -c 'import Crypto'
#

Comment 1 Kevin Fenzi 2017-06-24 03:37:16 UTC
Yes, this is expected. :) This is a forward compat (ie newer than the base packge) version using these guidelines: 

https://fedoraproject.org/wiki/Packaging:Python_Eggs#Multiple_Versions

So, you should adjust your calling programs sys.path or setup a script wrapper.