Description of problem: I took client without satellite or proxy, registered it and installed rhnpush to this clean system. When I tried to run rhnpush I received following error: # rhnpush --help Unable to load module rhnpush No module named Crypto.Hash Version-Release number of selected component (if applicable): rhnpush-5.5.81-9.el5sat How reproducible: always on RHEL5 Steps to Reproduce: 1. install rhnpush from rhn-tools-rhel-x86_64-server-5 2. run rhnpush Actual results: installed rhnpush doesn't work Expected results: we need to installed package python-hashlib Problem is in file /usr/share/rhn/rhnpush_libs/checksum.py
After I installed rhnpush-5.5.81-9.el5sat on RHEL5, I'm getting: # rhnpush Unable to load module rhnpush No module named Crypto.Hash
Taking...
Created attachment 1127544 [details] patch for spec file of rhnpush package
There is no problem in Spacewalk package of rhnpush. rhnpush depends on spacewalk-backend-libs, which depends on python-hashlib ('epel' repo). For Satellite there are no problems for RHEL 6 and 7, since installed package 'python-libs' contains module hashlib (/usr/lib64/python2.6/hashlib.py) to work with hash functions. In code of 'rhnpush_lib' we're trying to import hashlib first. For Satellite package of rhnpush RHEL 5, I have added a dependensy on python-hashlib (this package is contained in 'Red Hat Network Tools for RHEL' repo), please, see at attached patch.
Verified rhnpush-5.5.89-20.el5sat >> yum install rhnpush -y Installing: rhnpush Installing for dependencies: python-hashlib spacewalk-backend-libs spacewalk-usix