Rating doesn't work with Banshee
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| Panflute |
Undecided
|
Unassigned |
Bug Description
I have a bug: Panflute doesn't change the rating of a song in Banshee, thow shows the correct one set in Banshee.
To prove:
http://
What information would you need, to tell, what's wrong?
Paul Kuliniewicz (kuliniew) wrote : | #1 |
Ilya (ilya-flyamer) wrote : | #2 |
No, I am afraid, this doesn't help, because when I do as you adviced, only the rating in Panflute changes back.
Paul Kuliniewicz (kuliniew) wrote : | #3 |
That means it *is* working, since Panflute stops caching the rating once the song changes. If Panflute shows the new rating after the song changes, that means the player has recorded it. It sounds like it's the other program isn't updating its own display.
Ilya (ilya-flyamer) wrote : | #4 |
No-no, vice versa, Panflute shows the previous rating, before I had tried to change it.
Jack (jackhynes) wrote : | #5 |
This has only happened since the most recent update, possibly with the inclusion of the rating removal ability.
My panflute now will show all songs as 5-star rated, independent of what song is played. It won't update the rating in Banshee, neither will playing a rated song be reflected in panflute.
Greg Pitta (gregpitta19) wrote : | #6 |
I can confirm this bug on Ubuntu 11.04 32bit with Banshee 1.9.0
If the song already has a rating Panflute applet does load and display it correctly.
If I switch from a song that has a rating to one that does not, Panflute correctly displays no stars.
But If a song does not have a rating and I set it trough Panflute it's not sent to banshee. Thus banshee does not update the rating of the song.
If Banshee switches to another song, also with no rating, Panfluete stills shows the rating I gave to the previous song, but does not send it to banshee either.
hope the description helps, if there is anything else I can do to help please ask...
Paul Kuliniewicz (kuliniew) wrote : | #7 |
I still can't reproduce, using Panflute 0.7.0 and Banshee 1.9.0 or 1.9.1. Whenever I set a rating in the applet, whether the song is already rated, has never been rated, or used to have a rating but had it deleted, the rating always updates immediately and shows up in Banshee. I verified this by having Banshee show the Rating column in its track display; as soon as I rated the song through the applet, Banshee showed the new rating.
If you're still having trouble, look for the log files under ~/.local/
Greg Pitta (gregpitta19) wrote : | #8 |
Ok, those are the output of the log files:
daemon.log
ERROR [pyinotify] add_watch: cannot watch /home/wood/.moc (WD=-1)
applet.log
WARNING [panflute.
File "/usr/lib/
retval = candidate_
File "/usr/lib/
self.
File "/usr/lib/
self.
TypeError: Expected a string of length 1, or an int in the range 0-255
Paul Kuliniewicz (kuliniew) wrote : | #9 |
Somehow the rating widget seems to be producing a rating far outside the allowed range, and the call to Banshee to set the rating never gets made. Unfortunately, even running the applet or daemon in debug mode won't reveal what bogus value is getting used.
I do notice you seem to be using Python 2.7 instead of Python 2.6; I wonder if this might have something to do with it.
Paul Kuliniewicz (kuliniew) wrote : | #10 |
I just tried reproducing this bug on a fresh Ubuntu Natty install, using the Banshee packages in Natty and the Panflute packages in the PPA, and still couldn't reproduce this bug. Could you try uninstalling and reinstalling Panflute and see if that has any effect?
Greg Pitta (gregpitta19) wrote : | #11 |
You mentioned python 2.7, it came installed by default in Natty, and I cannot remove it without removing half of Ubuntu, including Banshee. Curiously python 2.6 is also installed. Tried to install python-all but did not solve the problem.
I have Natty with proposed and backports updates up to today. Completely removed Banshee and Panflute, also ran apt-get autoremove, just in case.
Restarted the machine and installed Banshee1.9.0 and Panflute 0.7.0 Natty package again, and the bug persists....
I have no other PPAs and aside banshee, flash and some codecs have not installed anything else on default Natty.
related to the Panflute installation in the Software-
2010-12-21 09:15:18,418 - softwarecenter.
but the installation concludes successfully anyways....
I'm attaching the apt auto-generated list of installed packages, perhaps it helps...
Bruno Duyé (brunetton-gmail) wrote : | #12 |
Same problem (Python 2.6 / Debian panflute-applet package 0.7.0-1 0)
Noticed dbus error (using dbus-monitor) :
method call sender=:1.210 -> dest=:1.211 serial=164 path=/Player; interface=
string "rating"
variant int64 5
error sender=:1.211 -> dest=:1.210 error_name=
string "Traceback (most recent call last):
File "/usr/lib/
retval = candidate_
File "/usr/lib/
self.
File "/usr/lib/
self.
TypeError: Expected a string of length 1, or an int in the range 0-255
"
Dbus problem ?
All other dbus messages works perfectely (play / pause, back / next song, title / artist infos ...)
Bruno Duyé (brunetton-gmail) wrote : | #13 |
After some search, it seems that it's not a Dbus problem; as Dbus Banshee seems to be correctly called (proof of concept : the above code works correctly) :
import dbus
bus = dbus.SessionBus()
proxy = bus.get_object ("org.bansheepr
engine_
engine_
Francisco Castillo (panchokoster) wrote : | #14 |
same thing in debian wheezy, panflute 0.7, phyton2.6
WARNING [panflute.
File "/usr/lib/
retval = candidate_
File "/usr/lib/
self.
File "/usr/lib/
self.
TypeError: Expected a string of length 1, or an int in the range 0-255
Can you verify that the rating hasn't actually been updated in Banshee itself? A lot of players' user interfaces don't expect the rating to get changed by some other program, so they don't watch for changes. Try changing the song and going back, and see if that "fixes" the problem.