Quodlibet should not depend on HAL

Bug #505771 reported by André Barmasse on 2010-01-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QuodLibet
Unknown
Unknown
quodlibet (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: quodlibet

As there is a HAL deprecation in the next Ubuntu release (Lucid Lynx) it would be wise to remove quodlibet's dependency on HAL, too. When I remove the packages hal and hal-info from lucid lynx alpha 1, quodlibet does not start up anymore. On the bash console, the program at least gives the following messages and then exits quietly.

------------

Initializing audio backend (gstbe)
Initializing main library (~/.quodlibet/songs)
Unterstützte Formate: mod, mp3, mp4, mpc, spc, trueaudio, wav, wavpack, wma, xiph
Traceback (most recent call last):
  File "/usr/bin/quodlibet", line 285, in <module>
    main()
  File "/usr/bin/quodlibet", line 59, in main
    window = widgets.init(player, library)
  File "/usr/lib/pymodules/python2.6/quodlibet/widgets.py", line 75, in init
    Kind.init(library)
  File "/usr/lib/pymodules/python2.6/quodlibet/browsers/media.py", line 148, in init
    for udi in devices.discover():
  File "/usr/lib/pymodules/python2.6/quodlibet/devices/__init__.py", line 120, in discover
    return _hal.FindDeviceByCapability('portable_audio_player')
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 68, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 620, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1 matched rules; type="method_call", sender=":1.65" (uid=1000 pid=4931 comm="python) interface="org.freedesktop.Hal.Manager" member="FindDeviceByCapability" error name="(unset)" requested_reply=0 destination=":1.17" (uid=0 pid=2500 comm="/usr/sbin/hald))

André Barmasse (barmassus) wrote :

After the latest update of Ubuntu Lucid Lynx Alpha 2 Quodlibet is working again - without hal and hal-info installed. Therefore, this bug report can be closed. I am only posting my bash console output because of the hal warning on line 4, in case someone should have problems with attached media players:

W: Couldn't connect to HAL, disabling Media Devices browser.

----------

Initializing audio backend (gstbe)
Initializing main library (~/.quodlibet/songs)
Unterstützte Formate: mod, mp3, mp4, mpc, spc, trueaudio, wav, wavpack, wma, xiph
W: Couldn't connect to HAL, disabling Media Devices browser.
/usr/lib/pymodules/python2.6/quodlibet/__init__.py:125: DeprecationWarning: enabling legacy plugin API
  "enabling legacy plugin API", DeprecationWarning)
/usr/lib/pymodules/python2.6/quodlibet/qltk/x.py:115: DeprecationWarning: Use the new widget gtk.Tooltip
  tips = gtk.Tooltips()
/usr/lib/pymodules/python2.6/quodlibet/qltk/x.py:118: DeprecationWarning: Use the new widget gtk.Tooltip
  tips.enable()
/usr/lib/pymodules/python2.6/quodlibet/qltk/quodlibetwindow.py:513: DeprecationWarning: Use the new widget gtk.Tooltip
  _("Check for changes in your library"))
/usr/lib/pymodules/python2.6/quodlibet/qltk/quodlibetwindow.py:516: DeprecationWarning: Use the new widget gtk.Tooltip
  _("Reload all songs in your library (this can take a long time)"))
/usr/lib/pymodules/python2.6/quodlibet/qltk/quodlibetwindow.py:519: DeprecationWarning: Use the new widget gtk.Tooltip
  _("The 40 songs you've played most (more than 40 may "
/usr/lib/pymodules/python2.6/quodlibet/qltk/quodlibetwindow.py:523: DeprecationWarning: Use the new widget gtk.Tooltip
  _("The 40 songs you've played least (more than 40 may "
/usr/lib/pymodules/python2.6/quodlibet/qltk/queue.py:82: DeprecationWarning: Use the new widget gtk.Tooltip
  tips.set_tip(b, _("Remove all songs from the queue"))
/usr/lib/pymodules/python2.6/quodlibet/qltk/quodlibetwindow.py:219: DeprecationWarning: Use the new widget gtk.Tooltip
  tips.set_tip(repeat, _("Restart the playlist when finished"))
Error grabbing key 173, 0x9aa0000
Error grabbing key 171, 0x9aa0000
Error grabbing key 172, 0x9aa0000
Error grabbing key 209, 0x9aa0000
Error grabbing key 174, 0x9aa0000

Tobias Wolf (towolf) wrote :

Already fixed upstream. Release version 2.2 has device support via udev.

Changed in quodlibet (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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