startupmanager crashes with Python error when starting

Bug #150095 reported by Jerry Chong
44
This bug affects 3 people
Affects Status Importance Assigned to Milestone
startupmanager (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: startupmanager

Starting /usr/bin/startupmanager from System menu or from commandline causes it to terminate with a python exception:

~$ sudo /usr/bin/startupmanager
Traceback (most recent call last):
  File "/usr/bin/startupmanager", line 31, in <module>
    main()
  File "/usr/bin/startupmanager", line 28, in main
    app = startupmanager.main()
AttributeError: 'module' object has no attribute 'main'

On the other hand, manually starting it from Python's interactive commandline works.

:~$ sudo python
[sudo] password for zanglang:
Python 2.5.1 (r251:54863, Oct 5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import startupmanager
>>> startupmanager.main()
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.22-13-generic
Found kernel: /boot/vmlinuz-2.6.22-12-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

ProblemType: Crash
Architecture: i386
Date: Sun Oct 7 17:47:02 2007
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/bin/startupmanager
InterpreterPath: /usr/bin/python2.5
Package: startupmanager 1.0.9-0ubuntu1
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/startupmanager
ProcCwd: /home/zanglang
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/startupmanager']
SourcePackage: startupmanager
Title: startupmanager crashed with AttributeError in main()
Uname: Linux aesir 2.6.22-12-generic #1 SMP Sun Sep 23 18:11:30 GMT 2007 i686 GNU/Linux

Tags: apport-crash
Revision history for this message
Jerry Chong (zanglang) wrote :
Changed in startupmanager:
importance: Undecided → Low
Changed in startupmanager:
status: New → Incomplete
Revision history for this message
Marco Rodrigues (gothicx) wrote :

Hi! Can you check if this bug still happens to you ?

Changed in startupmanager:
status: Incomplete → In Progress
assignee: nobody → gothicx
Revision history for this message
Marco Rodrigues (gothicx) wrote :

It's fixed in version 1.9.7.. if the bug still happens, please re-open the bug. Thanks!

Changed in startupmanager:
assignee: gothicx → nobody
status: In Progress → Fix Committed
Revision history for this message
Jerry Chong (zanglang) wrote :

1.9.8 fixes it, thanks! On the other hand, Gutsy is still stuck with the bug, any chance of a patch for 1.0.9? ;)

Revision history for this message
rudeboyskunk (rudeboyskunk99) wrote :

Mine has been crashing too, and trying to use Python keeps the window from closing, but I cannot do anything with the window. Here is the output from the terminal:

rudeboyskunk@timebomb-ubuntu:~$ sudo startupmanager
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... found: (hd0,1)/home/rudeboyskunk/Templates/mars.xpm.gz

Found kernel: /boot/vmlinuz-2.6.22-14-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

Traceback (most recent call last):
  File "/usr/bin/startupmanager", line 31, in <module>
    main()
  File "/usr/bin/startupmanager", line 28, in main
    app = startupmanager.main()
  File "/usr/lib/python2.5/site-packages/startupmanager/__init__.py", line 4, in main
    SumGui()
  File "/usr/lib/python2.5/site-packages/startupmanager/gtk_frontend.py", line 835, in __init__
    self.update_widgets()
  File "/usr/lib/python2.5/site-packages/startupmanager/gtk_frontend.py", line 672, in update_widgets
    0, False))
  File "/usr/lib/python2.5/site-packages/startupmanager/gtk_frontend.py", line 115, in convert_color
    return color_dict[color]
KeyError: 'blue/re'
rudeboyskunk@timebomb-ubuntu:~$

Revision history for this message
Marco Rodrigues (gothicx) wrote :

This bug is fixed upstream.

Changed in startupmanager:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.