Bug 657051 - spacewalk-reports, ImportError: cannot import name rhnSQL
Summary: spacewalk-reports, ImportError: cannot import name rhnSQL
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 1.2
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space13
TreeView+ depends on / blocked
 
Reported: 2010-11-24 19:11 UTC by Petr Sklenar
Modified: 2011-02-08 08:42 UTC (History)
1 user (show)

Fixed In Version: spacewalk-reports-1.3.1-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-08 08:42:07 UTC
Embargoed:


Attachments (Terms of Use)

Description Petr Sklenar 2010-11-24 19:11:47 UTC
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:

Comment 1 Michael Mráka 2010-11-25 08:28:13 UTC
Fixed in spacewalk nightly
commit 78028666e4cefa22dc9d03effb0b52b3dbfd0eb2
    fixed namespace of imported modules

Comment 2 JDavis4102 2011-01-10 00:54:37 UTC
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

Comment 3 Michael Mráka 2011-01-10 08:13:50 UTC
(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

Comment 4 JDavis4102 2011-01-10 16:12:32 UTC
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!

Comment 5 Tomas Lestach 2011-02-03 12:21:42 UTC
Moving ON_QA ...

Comment 6 Tomas Lestach 2011-02-08 08:42:07 UTC
This bug has been fixed in Spacewalk 1.3.


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