gnome-lirc-properties crashed with ValueError in __init__()

Bug #226745 reported by kecmo on 2008-05-05
34
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-lirc-properties (Ubuntu)
Medium
Unassigned

Bug Description

Binary package hint: gnome-lirc-properties

Crashed upon launch from the System drop-down menu

ProblemType: Crash
Architecture: amd64
Date: Sun May 4 23:41:56 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/gnome-lirc-properties
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: gnome-lirc-properties 0.2.5-0ubuntu1 [modified: var/lib/scrollkeeper/en_GB/scrollkeeper_cl.xml var/lib/scrollkeeper/en_GB/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/C/scrollkeeper_cl.xml var/lib/scrollkeeper/C/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/af/scrollkeeper_cl.xml var/lib/scrollkeeper/af/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/ar/scrollkeeper_cl.xml var/lib/scrollkeeper/ar/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/be/scrollkeeper_cl.xml var/lib/scrollkeeper/be/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/bg/scrollkeeper_cl.xml var/lib/scrollkeeper/bg/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/bn/scrollkeeper_cl.xml var/lib/scrollkeeper/bn/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/bs/scrollkeeper_cl.xml var/lib/scrollkeeper/bs/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/ca/scrollkeeper_cl.xml var/lib/scrollkeeper/ca/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/cs/scrollkeeper_cl.xml var/lib/scrollkeeper/cs/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/da/scrollkeeper_cl.xml var/lib/scrollkeeper/da/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/de/scrollkeeper_cl.xml var/lib/scrollkeeper/de/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/el/scrollkeeper_cl.xml var/lib/scrollkeeper/el/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/en/scrollkeeper_cl.xml var/lib/scrollkeeper/en/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/pt_BR/scrollkeeper_cl.xml var/lib/scrollkeeper/pt_BR/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/eo/scrollkeeper_cl.xml var/lib/scrollkeeper/eo/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/es/scrollkeeper_cl.xml var/lib/scrollkeeper/es/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/et/scrollkeeper_cl.xml var/lib/scrollkeeper/et/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/eu/scrollkeeper_cl.xml var/lib/scrollkeeper/eu/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/fi/scrollkeeper_cl.xml var/lib/scrollkeeper/fi/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/fr/scrollkeeper_cl.xml var/lib/scrollkeeper/fr/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/gl/scrollkeeper_cl.xml var/lib/scrollkeeper/gl/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/he/scrollkeeper_cl.xml var/lib/scrollkeeper/he/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/hr/scrollkeeper_cl.xml var/lib/scrollkeeper/hr/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/hu/scrollkeeper_cl.xml var/lib/scrollkeeper/hu/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/id/scrollkeeper_cl.xml var/lib/scrollkeeper/id/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/is/scrollkeeper_cl.xml var/lib/scrollkeeper/is/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/it/scrollkeeper_cl.xml var/lib/scrollkeeper/it/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/ja/scrollkeeper_cl.xml var/lib/scrollkeeper/ja/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/ka/scrollkeeper_cl.xml var/lib/scrollkeeper/ka/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/kn/scrollkeeper_cl.xml var/lib/scrollkeeper/kn/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/ko/scrollkeeper_cl.xml var/lib/scrollkeeper/ko/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/ku/scrollkeeper_cl.xml var/lib/scrollkeeper/ku/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/lt/scrollkeeper_cl.xml var/lib/scrollkeeper/lt/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/lv/scrollkeeper_cl.xml var/lib/scrollkeeper/lv/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/ms/scrollkeeper_cl.xml var/lib/scrollkeeper/ms/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/nb/scrollkeeper_cl.xml var/lib/scrollkeeper/nb/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/nl/scrollkeeper_cl.xml var/lib/scrollkeeper/nl/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/nn/scrollkeeper_cl.xml var/lib/scrollkeeper/nn/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/oc/scrollkeeper_cl.xml var/lib/scrollkeeper/oc/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/pa/scrollkeeper_cl.xml var/lib/scrollkeeper/pa/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/pl/scrollkeeper_cl.xml var/lib/scrollkeeper/pl/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/pt/scrollkeeper_cl.xml var/lib/scrollkeeper/pt/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/ro/scrollkeeper_cl.xml var/lib/scrollkeeper/ro/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/ru/scrollkeeper_cl.xml var/lib/scrollkeeper/ru/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/si/scrollkeeper_cl.xml var/lib/scrollkeeper/si/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/sk/scrollkeeper_cl.xml var/lib/scrollkeeper/sk/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/sl/scrollkeeper_cl.xml var/lib/scrollkeeper/sl/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/sq/scrollkeeper_cl.xml var/lib/scrollkeeper/sq/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/sr/scrollkeeper_cl.xml var/lib/scrollkeeper/sr/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/zh_CN/scrollkeeper_cl.xml var/lib/scrollkeeper/zh_CN/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/sv/scrollkeeper_cl.xml var/lib/scrollkeeper/sv/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/te/scrollkeeper_cl.xml var/lib/scrollkeeper/te/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/th/scrollkeeper_cl.xml var/lib/scrollkeeper/th/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/tl/scrollkeeper_cl.xml var/lib/scrollkeeper/tl/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/tr/scrollkeeper_cl.xml var/lib/scrollkeeper/tr/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/uk/scrollkeeper_cl.xml var/lib/scrollkeeper/uk/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/ur/scrollkeeper_cl.xml var/lib/scrollkeeper/ur/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/uz/scrollkeeper_cl.xml var/lib/scrollkeeper/uz/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/vi/scrollkeeper_cl.xml var/lib/scrollkeeper/vi/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/zh_TW/scrollkeeper_cl.xml var/lib/scrollkeeper/zh_TW/scrollkeeper_extended_cl.xml var/lib/scrollkeeper/scrollkeeper_docs]
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/gnome-lirc-properties
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/gnome-lirc-properties']
SourcePackage: gnome-lirc-properties
Title: gnome-lirc-properties crashed with ValueError in __init__()
Uname: Linux 2.6.24-16-generic x86_64
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin mythtv plugdev sambashare video

kecmo (conrad-montlouis) wrote :
Murray Cumming (murrayc) wrote :

I believe this was fixed upstream (by me). See bug 218691 which requests an update to the latest upstream version.

I think the fix was in this commit:

2008-04-25 Murray Cumming <email address hidden>

* data/receivers.conf: Add Snapstream Firefly to the list of supported
receivers, as well as the Snapstream_Firefly_R1000 name which appeared
in previous versions of lirc (The change is probably due to Debian or
Ubuntu).
Note that this is in /usr/share/lirc/remotes/atiusb/atilircd.conf.ati*.

* gnome_lirc_properties/backend.py
BackendService.WriteRemoteConfiguration(): When writing Unknown as
the vendor, do not translate it, because strings should not be
translated in configuration files.
* gnome_lirc_properties/lirc.py (Receiver.__init__,
RemotesDatabase.find(): Handle Unknown specially for the vendor name,
because the database stores them as None. This fixes the problem that
the chosen remote control was not shown when the vendor was unknown.
RemotesDatabase.check_hardware_settings(): Cope with a None
selected_remote instead of crashing.
* gnome_lirc_properties/ui/RemoteControlProperties.py
RemoteControlProperties.__restore_hardware_settings(): Print a
clue when the remote control could not be found in our database.

Murray Cumming (murrayc) on 2008-05-14
Changed in gnome-lirc-properties:
status: New → Fix Committed
Changed in gnome-lirc-properties:
importance: Undecided → Medium
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-lirc-properties - 0.2.7-0ubuntu1

---------------
gnome-lirc-properties (0.2.7-0ubuntu1) intrepid; urgency=low

  * New upstream version (LP: #218691)
    - Fix crash with ValueError in __init__() (LP: #226745)
    - Fix crash with error in io() (LP: #224954)
    - Better method for filtering type of IR device (LP: #221177)
  * debian/rules
    - removal of rmdir of the locale dir, since it is not empty anymore.
    - clean up of help/gnome-lirc-properties.pot
  * Bump to Standard-Version 3.8.0
  * debian/copyright:
    - corrected the location of the GPL-2
    - Addition of the copyright of Openismus GmbH

 -- Christophe Sauthier <email address hidden> Mon, 11 Aug 2008 14:42:36 +0200

Changed in gnome-lirc-properties:
status: Fix Committed → Fix Released
Julio Pedreira (julio.pedreira) wrote :

That's the version I have and still crashes EVERY time I start it...

Julio Pedreira (julio.pedreira) wrote :

$ gnome-lirc-properties
/var/lib/python-support/python2.5/gnome_lirc_properties/__init__.py:57: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
  return ui.RemoteControlProperties(gtk.glade.XML(ui_filename)).run()
WARNING:root:/usr/share/lirc/remotes: Remote BESTBUY listed twice in bestbuy/lircd.conf.bestbuy2 and bestbuy/lircd.conf.bestbuy.
WARNING:root:/usr/share/lirc/remotes: Remote PVR2000 listed twice in leadtek/lircd.conf.PVR2000 and leadtek/lircd.conf.PVR2000.
WARNING:root:/usr/share/lirc/remotes: Remote Apple_A1156 listed twice in apple/lircd.conf.macmini and apple/lircd.conf.macmini.
WARNING:root:/usr/share/lirc/remotes: Remote Medion_X10 listed twice in atiusb/lircd.conf.atiusb and atiusb/lircd.conf.atiusb.
WARNING:root:/usr/share/lirc/remotes: Remote Medion_X10 listed twice in atiusb/lircd.conf.atiusb and atiusb/lircd.conf.atiusb.
WARNING:root:/usr/share/lirc/remotes: Remote DVICO_MCE listed twice in dvico/lircd.conf.fusionHDTV and dvico/lircd.conf.fusionHDTV.
WARNING:root:/usr/share/lirc/remotes: Remote SONY listed twice in generic/SONY20.conf and generic/SONY12.conf.
WARNING:root:/usr/share/lirc/remotes: Remote linux-input-layer listed twice in generic/devinput.conf and linux-input-layer-lircd.conf.
WARNING:root:/usr/share/lirc/remotes: Remote NEC listed twice in generic/NEC-short-pulse.conf and generic/NEC-pulse.conf.
WARNING:root:/usr/share/lirc/remotes: Remote NEC listed twice in generic/NEC.conf and generic/NEC-pulse.conf.
Traceback (most recent call last):
  File "/usr/bin/gnome-lirc-properties", line 27, in <module>
    gnome_lirc_properties.run(sys.argv[1:], datadir)
  File "/var/lib/python-support/python2.5/gnome_lirc_properties/__init__.py", line 57, in run
    return ui.RemoteControlProperties(gtk.glade.XML(ui_filename)).run()
  File "/var/lib/python-support/python2.5/gnome_lirc_properties/ui/RemoteControlProperties.py", line 60, in __init__
    self.__restore_hardware_settings()
  File "/var/lib/python-support/python2.5/gnome_lirc_properties/ui/RemoteControlProperties.py", line 251, in __restore_hardware_settings
    settings = lirc.HardwareConfParser(config.LIRC_HARDWARE_CONF)
  File "/var/lib/python-support/python2.5/gnome_lirc_properties/lirc.py", line 1005, in __init__
    key, value = tokens
ValueError: too many values to unpack

Murray Cumming (murrayc) wrote :

This is the lirc.py:1005 line

for line in open(filename, 'r'):

I wonder how we can avoid that error. Maybe we should just put a try/except around it.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers