Bug 657051
| Summary: | spacewalk-reports, ImportError: cannot import name rhnSQL | ||
|---|---|---|---|
| Product: | [Community] Spacewalk | Reporter: | Petr Sklenar <psklenar> |
| Component: | Server | Assignee: | Michael Mráka <mmraka> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Red Hat Satellite QA List <satqe-list> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 1.2 | CC: | JDavis4102 |
| Target Milestone: | --- | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | spacewalk-reports-1.3.1-1 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-02-08 08:42:07 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 653453 | ||
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. |
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: