Bug 1427249 - rhn_register fails to start on Python < 2.5. tui.py extends BaseException, causes NameError
Summary: rhn_register fails to start on Python < 2.5. tui.py extends BaseException, ca...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Clients
Version: 2.6
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jiří Dostál
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space27
TreeView+ depends on / blocked
 
Reported: 2017-02-27 17:02 UTC by Laurence Rochfort
Modified: 2017-09-27 19:31 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-09-27 19:31:52 UTC
Embargoed:


Attachments (Terms of Use)

Description Laurence Rochfort 2017-02-27 17:02:14 UTC
Description of problem:


Version-Release number of selected component (if applicable): 2.6.8


How reproducible: Run rhn_register using Python with version less than 2.5


Steps to Reproduce:
1. Run rhn_register

Actual results:
rhn_register does not start:

Traceback (most recent call last):
  File "/usr/sbin/rhn_register", line 29, in ?
    from up2date_client import tui
  File "/usr/share/rhn/up2date_client/tui.py", line 110, in ?
    class WindowSkipException(BaseException):
NameError: name 'BaseException' is not defined


Expected results:
rhn_register starts successfully.

Additional info:
Whilst this is only a problem on Python prior to 2.5, the Python docs state that BaseException should not be directly inherited by user-defined Classes anyway.

https://docs.python.org/2/library/exceptions.html#exceptions.BaseException

Comment 1 Jiří Dostál 2017-03-03 09:34:33 UTC
spacewalk 705e9c58e3a17fb9ae567f26809056ec1731279c

Comment 2 Eric Herget 2017-09-27 19:31:52 UTC
Spacewalk 2.7 has been released.

https://github.com/spacewalkproject/spacewalk/wiki/ReleaseNotes27


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