Preferences not saved

Bug #695386 reported by Alin Andrei
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TagPlayer
Fix Released
High
filipe

Bug Description

After I enter my Last.fm username and password and the path to my music, after clicking the "OK" button, nothing happens. I'm using the latest TagPlayer 0.1-public2ubuntu1 installed from the .deb you provided (Ubuntu 10.10 32bit).

Here's the terminal output:

andrei@andrei-work:~$ tagplayer
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
0
TL > 0 tags in total with result False
WTL > 0 tags in total 0 eligible with result False
-----------
1
TL > 0 tags in total with result False
WTL > 0 tags in total 0 eligible with result False
-----------
2
TL > 0 tags in total with result False
WTL > 0 tags in total 0 eligible with result False
-----------
3
TL > 0 tags in total with result False
WTL > 0 tags in total 0 eligible with result False
-----------
4
TL > 0 tags in total with result False
WTL > 0 tags in total 0 eligible with result False
-----------
5
TL > 0 tags in total with result False
WTL > 0 tags in total 0 eligible with result False
-----------
6
TL > 0 tags in total with result True
WTL > 0 tags in total 0 eligible with result True
-----------
Traceback (most recent call last):
  File "/usr/bin/tagplayer", line 233, in preferences
    self.__init_player()
  File "/usr/bin/tagplayer", line 211, in __init_player
    self.player = player.Player(self.preferences['lfm_user'], self.preferences['lfm_pass'])
  File "/usr/lib/pymodules/python2.6/tagplayer/daemon/player.py", line 36, in __init__
    self.__prepare_lastfm(lfm_username, lfm_password)
  File "/usr/lib/pymodules/python2.6/tagplayer/daemon/player.py", line 50, in __prepare_lastfm
    network = pylast.get_lastfm_network(api_key = LastFM.api_key, api_secret = LastFM.api_secret, username = lfm_user, password_hash = lfm_pass)
  File "/usr/lib/pymodules/python2.6/tagplayer/daemon/pylast.py", line 602, in get_lastfm_network
    "user": "user/%(name)s",
  File "/usr/lib/pymodules/python2.6/tagplayer/daemon/pylast.py", line 294, in __init__
    self.session_key = sk_gen.get_session_key(self.username, self.password_hash)
  File "/usr/lib/pymodules/python2.6/tagplayer/daemon/pylast.py", line 907, in get_session_key
    doc = request.execute()
  File "/usr/lib/pymodules/python2.6/tagplayer/daemon/pylast.py", line 810, in execute
    response = self._download_response()
  File "/usr/lib/pymodules/python2.6/tagplayer/daemon/pylast.py", line 801, in _download_response
    self._check_response_for_errors(response_text)
  File "/usr/lib/pymodules/python2.6/tagplayer/daemon/pylast.py", line 824, in _check_response_for_errors
    raise WSError(self.network, status, details)
tagplayer.daemon.pylast.WSError: Invalid authentication token. Please check username/password supplied
Error: Resource not found. gstplaybin2.c(3475): setup_next_source (): /GstPlayBin2:player

description: updated
filipe (hikibi)
Changed in tagplayer:
assignee: nobody → filipe (hikibi)
Revision history for this message
filipe (hikibi) wrote :

It seems from the terminal output that it is an error from invalid authentication to last.fm. Are you sure you set up the right credentials?
Still, this is breaking the app and it definitely shouldn't. Invalid credentials should just make the player act as if no credentials exist. I'll work on it and get back to you.

Revision history for this message
Alin Andrei (nilarimogard) wrote :

Now after entering the username and password and selecting my music folder, nothing happens, but I can click the "OK" button and now the dialog does close. It seems it doesn't accept my custom music location or something like that.

Here's the terminal output:

andrei@andrei-work:~$ tagplayer
** Message: pygobject_register_sinkfunc is deprecated (GstObject)
Removing stale, deceptive pid file.
Apache CouchDB has started, time to relax.
Browse your desktop CouchDB at file:///home/andrei/.local/share/desktop-couch/couchdb.html
0
TL > 0 tags in total with result False
WTL > 0 tags in total 0 eligible with result False
-----------
1
TL > 0 tags in total with result False
WTL > 0 tags in total 0 eligible with result True
-----------
Error: Resource not found. gstplaybin2.c(3475): setup_next_source (): /GstPlayBin2:player
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/pymodules/python2.6/tagplayer/daemon/taglib.py", line 117, in __build
    self.__write_log("Starting to map "+str(time.time()-t0))
  File "/usr/lib/pymodules/python2.6/tagplayer/daemon/taglib.py", line 37, in __write_log
    self.__log_fd.write("["+str(self.__log)+"] "+str(x)+"\n")
ValueError: I/O operation on closed file

Error: Resource not found. gstplaybin2.c(3475): setup_next_source (): /GstPlayBin2:player

Revision history for this message
filipe (hikibi) wrote :

The latest build (0.2.01) should now work with changing library path as well as incorrect last.fm without crashing or hanging.
The new deb installer is here : http://launchpad.net/tagplayer/trunk/0.2.01/+download/tagplayer_0.2.01ubuntu1_all.deb
The PPA is here: https://launchpad.net/~hikibi/+archive/tagplayer

Changed in tagplayer:
status: New → Fix Released
importance: Undecided → High
Revision history for this message
Alin Andrei (nilarimogard) wrote :

Yes it works, thank you!

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.