Bug 37913 - rhn_register uses snack functions that dont exist in 6.2
rhn_register uses snack functions that dont exist in 6.2
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: rhn_register (Show other bugs)
6.2
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Adrian Likins
Jay Turner
:
: 37931 40932 42131 44457 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-04-26 17:04 EDT by Adrian Likins
Modified: 2015-01-07 18:45 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-09-02 17:36:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Adrian Likins 2001-04-26 17:04:59 EDT
in the 1.3.2 version of rhn_register, tui.py makes use of
a construct like:

>>> foo = snack.Checkbox("boooo")
>>> foo.setValue("*")

around lines 420-440 or so...

snack.Checkbox.setValue however, doesnt exist in the snack
thats included with 6.2.

so it throws a tracbeack like:

[root@www /root]# rhn_register
Traceback (innermost last):
  File "/usr/sbin/rhn_register", line 119, in ?
    main()
  File "/usr/sbin/rhn_register", line 100, in main
    tui.main()
  File "/usr/share/rhn/register/tui.py", line 1033, in main
    tui.run()
  File "/usr/share/rhn/register/tui.py", line 982, in run
    win = self.windows[index](self.screen, self)
  File "/usr/share/rhn/register/tui.py", line 422, in __init__
    self.emailContactButton.setValue("*")
AttributeError: setValue
Comment 1 Bill Nottingham 2001-04-26 21:20:16 EDT
*** Bug 37931 has been marked as a duplicate of this bug. ***
Comment 2 David M. Cook 2001-05-24 14:54:09 EDT
*** Bug 42131 has been marked as a duplicate of this bug. ***
Comment 3 Need Real Name 2001-05-24 19:42:48 EDT
upgrading to newt-0.50.22-2.i386.rpm from RedHat 7.1 gets me to the next screen, after pressing next again it fails with:

Traceback (innermost last):
  File "/usr/sbin/rhn_register", line 119, in ?
    main()
  File "/usr/sbin/rhn_register", line 100, in main
    tui.main()
  File "/usr/share/rhn/register/tui.py", line 1033, in main
    tui.run()
  File "/usr/share/rhn/register/tui.py", line 982, in run
    win = self.windows[index](self.screen, self)
  File "/usr/share/rhn/register/tui.py", line 590, in __init__
    self.versionLabel2 = snack.Label(rhnreg.getVersion())
  File "/usr/share/rhn/register/rhnreg.py", line 121, in getVersion
    index = db.findbyprovides("redhat-release")[0]
IndexError: list index out of range
Comment 4 Adrian Likins 2001-07-06 00:04:06 EDT
The last error is caused by some rpm db transition issues. the correct fix
is to run:

		rpm --rebuilddb

And it should work fine
Comment 5 Adrian Likins 2001-07-06 00:05:17 EDT
*** Bug 44457 has been marked as a duplicate of this bug. ***
Comment 6 Adrian Likins 2001-07-06 00:07:29 EDT
*** Bug 40932 has been marked as a duplicate of this bug. ***

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