wrong parameter type with dbus

Bug #448010 reported by frank
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lrcShow-X
Invalid
Medium
Unassigned

Bug Description

ERROR:dbus.connection:Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/dbus/connection.py", line 214, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "/home/frank/python script/lrcShow-X/trunk/lrcShow-X/players/audacious.py", line 60, in statusChanged
    self.callback(self.toStatus(arg))
  File "/home/frank/python script/lrcShow-X/trunk/lrcShow-X/players/audacious.py", line 54, in toStatus
    status = status[0]
TypeError: 'dbus.Int32' object is unsubscriptable

with audacious, every time when use application's media player control.

Revision history for this message
OutLikeAShoe (outlikeashoe) wrote :

Seems that when you're controlling audacious directly from lrcShow, it sends (rightly) a signal, but with a different type than usual.. just check the type and it's ok..

Revision history for this message
OutLikeAShoe (outlikeashoe) wrote :

Which version of audacious do you have?

Revision history for this message
frank (xujia19) wrote :

Hi Shoe, the current svn version 176, I just fix a bug that load wrong translation when there is no native language translation, I commit base on 175

Revision history for this message
frank (xujia19) wrote :

you mean audacious.
audacious-plugins-2.1-r1
audacious-2.1

Revision history for this message
OutLikeAShoe (outlikeashoe) wrote :

Confirmed, but it's an audacious issue, it returns random numbers instead of:
0 -> playing
1 -> paused
2 -> stopped

As you can see here: http://jira.atheme.org/browse/AUD-55 (audacious' bug tracker)

Revision history for this message
OutLikeAShoe (outlikeashoe) wrote :

Confirmed for Audacious 2.1

Changed in lrcshow-x:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
frank (xujia19) wrote :

Fixed by audacious-2.2 beta

Changed in lrcshow-x:
status: Confirmed → Invalid
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.