Description of problem: spacewalk-reports cannot start - it needs to import rhnSQL Version-Release number of selected component (if applicable): sw.nightly, oracle-xe, rhel56 # rpm -q spacewalk-backend spacewalk-reports spacewalk-backend-1.3.11-1.el5 spacewalk-reports-1.2.3-1.el5 # rpm -q python python-2.4.3-27.el5 How reproducible: always Steps to Reproduce: # spacewalk-report Traceback (most recent call last): File "/usr/bin/spacewalk-report", line 44, in ? from server import rhnSQL ImportError: cannot import name rhnSQL # spacewalk-report --help Traceback (most recent call last): File "/usr/bin/spacewalk-report", line 44, in ? from server import rhnSQL ImportError: cannot import name rhnSQL Actual results: ImportError: cannot import name rhnSQL Expected results: works as expected Additional info:
Fixed in spacewalk nightly commit 78028666e4cefa22dc9d03effb0b52b3dbfd0eb2 fixed namespace of imported modules
Version 1.2 is also having this same problem. Anyway that this fix can be back-ported to 1.2? Thank you for your time and have a great day! # rpm -q spacewalk-backend spacewalk-reports spacewalk-backend-1.2.75-1.el5 spacewalk-reports-1.2.3-1.el5 # spacewalk-report Traceback (most recent call last): File "/usr/bin/spacewalk-report", line 44, in ? from server import rhnSQL ImportError: cannot import name rhnSQL # spacewalk-report --help Traceback (most recent call last): File "/usr/bin/spacewalk-report", line 44, in ? from server import rhnSQL ImportError: cannot import name rhnSQL
(In reply to comment #2) > Version 1.2 is also having this same problem. Anyway that this fix can be > back-ported to 1.2? Thank you for your time and have a great day! We are not planning spacewalk-report backport at the moment. This bugfix is the only change / difference between spacewalk-reports-1.2.3-1.el5 and spacewalk-reports-1.3.1-1 from nightly so you can safely use nightly version. Regards, Michael
Thank you for the quick response. I will use the nightly build of spacewalk-reports. Thank you for your time and have a great day!
Moving ON_QA ...
This bug has been fixed in Spacewalk 1.3.