maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   [application] pyRadio (Pandora) (https://talk.maemo.org/showthread.php?t=56036)

cddiede 2011-11-16 22:48

Re: [application] pyRadio (Pandora)
 
Okay, Pandora is working on my desktop again. Verified that the credentials I used originally were incorrect.

Fired up pyradio on the N9 and re-authenticated with the correct name and password over wi-fi and still no streams or channels shown on the client. A station search on the client yields no results.

Here's what the terminal shows when the app is runnning:

~ $ /opt/pyRadio/pyRadio.py
Using the meego graphics system
loaded the Generic plugin
loaded the grue plugin
Loaded the MeeGo sensor plugin
Setting data rate 0 Hz (interval 0 ms) for "meego.orientationsensor"
?
PANDORA: Loading key from file "/opt/pyRadio/libpiano/key_in"
PANDORA: Downloading key from url "https://raw.github.com/PromyLOPh/pianobar/master/src/libpiano/crypt_key_input.h"
Found SGX/MBX driver, enabling FullClearOnEveryFrame
Found v1.4 driver, enabling brokenTexSubImage
hijackWindow() context created for Panda(0x624c48, name = "pyRadio") 1
Found SGX/MBX driver, enabling FullClearOnEveryFrame
Found v1.4 driver, enabling brokenTexSubImage
QGLWindowSurface: Using plain widget as window surface QGLWindowSurface(0x745fb0)
hijackWindow() context created for QInputDialog(0xaef0bb30) 1
Found SGX/MBX driver, enabling FullClearOnEveryFrame
Found v1.4 driver, enabling brokenTexSubImage
QGLWindowSurface: Using plain widget as window surface QGLWindowSurface(0x754a08)
could not autorotate on PANDORA: Loading key from file "/opt/pyRadio/libpiano/key_out"
PANDORA: Downloading key from url "https://raw.github.com/PromyLOPh/pianobar/master/src/libpiano/crypt_key_output.h"
PANDORA: Saving keys
PANDORA: dataDir = "/opt/pyRadio/libpiano/"
PANDORA: dataDir.isDir? True
Traceback (most recent call last):
File "/opt/pyRadio/radioplayer.py", line 40, in run
self.pandora = Pandora( self.format, self.protocol_version )
File "/opt/pyRadio/libpiano/pandora.py", line 45, in __init__
if not self.keys.loadKeys():
File "/opt/pyRadio/libpiano/keys.py", line 67, in loadKeys
self.saveKeys()
File "/opt/pyRadio/libpiano/keys.py", line 76, in saveKeys
f = open( os.path.join( self._dataDir, "key_in" ), "wb" )
IOError: [Errno 13] Permission denied: '/opt/pyRadio/libpiano/key_in'
hijackWindow() context created for QInputDialog(0xaef0bb30) 1
Found SGX/MBX driver, enabling FullClearOnEveryFrame
Found v1.4 driver, enabling brokenTexSubImage
QGLWindowSurface: Using plain widget as window surface QGLWindowSurface(0x754688)
Traceback (most recent call last):
File "/opt/pyRadio/pyRadio.py", line 211, in auth
authenticated = self.player.auth( self.c.user, self.c.password )
File "/opt/pyRadio/radioplayer.py", line 89, in auth
ret = self.pandora.authListener( str(user), str(password) )
AttributeError: 'int' object has no attribute 'authListener'

fatalsaint 2011-11-16 22:48

Re: [application] pyRadio (Pandora)
 
Please try to install this deb:
http://www.linuxniche.com/pyradio_4.4_all.deb

And tell me if there is any errors.

fatalsaint 2011-11-16 22:49

Re: [application] pyRadio (Pandora)
 
Quote:

Originally Posted by cddiede (Post 1124687)
Okay, Pandora is working on my desktop again. Verified that the credentials I used originally were incorrect.

Fired up pyradio on the N9 and re-authenticated with the correct name and password over wi-fi and still no streams or channels shown on the client...

Give me a copy/paste from the terminal when you run it.

cddiede 2011-11-16 22:52

Re: [application] pyRadio (Pandora)
 
This sounds bad:

AttributeError: 'int' object has no attribute 'authListener'


Is that bad?

fatalsaint 2011-11-16 22:53

Re: [application] pyRadio (Pandora)
 
Ok saw your edit - that problem is because the deb isn't installing all the way and running the postinstall script.

Please try to install the deb from above and it might fix it.

cddiede 2011-11-16 23:06

Re: [application] pyRadio (Pandora)
 
Okay, new package installs and I can now authenticate. I see my Pandora stations.

But there's no audio and pressing play/skip does nothing.

Also there is a GUI artifact now showing both the portrait and landscape battery/signal bars at the same time.

Here's what the terminal shows when running:

/opt/pyRadio $ /opt/pyRadio/pyRadio.py
Using the meego graphics system
loaded the Generic plugin
loaded the grue plugin
Loaded the MeeGo sensor plugin
Setting data rate 0 Hz (interval 0 ms) for "meego.orientationsensor"
?
PANDORA: Loading key from file "/opt/pyRadio/libpiano/key_in"
could not autorotate on PANDORA: Loading key from file "/opt/pyRadio/libpiano/key_out"
Found SGX/MBX driver, enabling FullClearOnEveryFrame
Found v1.4 driver, enabling brokenTexSubImage
Radio Started.
hijackWindow() context created for Panda(0x624140, name = "pyRadio") 1
Found SGX/MBX driver, enabling FullClearOnEveryFrame
Found v1.4 driver, enabling brokenTexSubImage
QGLWindowSurface: Using plain widget as window surface QGLWindowSurface(0x3d609370)
hijackWindow() context created for QInputDialog(0xaecfdb10) 1
Found SGX/MBX driver, enabling FullClearOnEveryFrame
Found v1.4 driver, enabling brokenTexSubImage
QGLWindowSurface: Using plain widget as window surface QGLWindowSurface(0x3d6b95a8)
hijackWindow() context created for QInputDialog(0xaecfdb10) 1
Found SGX/MBX driver, enabling FullClearOnEveryFrame
Found v1.4 driver, enabling brokenTexSubImage
QGLWindowSurface: Using plain widget as window surface QGLWindowSurface(0x3d6092c8)
INCOMPATIBLE VERSION DETECTED, BUMPING.
INCOMPATIBLE VERSION DETECTED, BUMPING.
hijackWindow() context created for QComboBoxPrivateContainer(0x67c4b0) 1
Found SGX/MBX driver, enabling FullClearOnEveryFrame
Found v1.4 driver, enabling brokenTexSubImage
QGLWindowSurface: Using plain widget as window surface QGLWindowSurface(0x3d60db40)
Error: com.savagebeast.radio.api.protocol.xmlrpc.RadioXml RpcException: com.savagebeast.radio.api.internal.xmlrpc.handler. HandlerPlaylist.getFragment(java.lang.String, int, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
Code: 0
Traceback (most recent call last):
File "/opt/pyRadio/pyRadio.py", line 276, in playNextSong
self.player.getMoreSongs(self.curStation, self.c.format)
File "/opt/pyRadio/radioplayer.py", line 122, in getMoreSongs
fragment = self.pandora.getFragment( station, format )
File "/opt/pyRadio/libpiano/pandora.py", line 311, in getFragment
url = parsed[i]["audioURL"]
TypeError: string indices must be integers, not str
Traceback (most recent call last):
File "/opt/pyRadio/pyRadio.py", line 166, in doLove
self.song[1]["rating"] = 1
TypeError: 'int' object is unsubscriptable

cddiede 2011-11-16 23:07

Re: [application] pyRadio (Pandora)
 
EDIT:

The play/skip buttons do work and I see album art, but there is no audio...

In fact, pressing the hardware volume keys do not engage the audio volume, but instead just adjust the ringer volume. This is normal N9 behavior when no media application is open.

Audio volume can still be adjusted using the on screen controls.

fatalsaint 2011-11-16 23:28

Re: [application] pyRadio (Pandora)
 
Can you tell me if this gives any output:

cat /proc/component_version

Addison 2011-11-16 23:36

Re: [application] pyRadio (Pandora)
 
Quote:

Originally Posted by fatalsaint (Post 1124684)
It's a wee-bit ugly. Guess I need to try and force colors again.

That should make Addison happy.. I think he wanted it to black on the N810 too.

Yessssh! :D

cddiede 2011-11-16 23:47

Re: [application] pyRadio (Pandora)
 
This is what I see:

/proc # cat /proc/component_version
cat: can't open '/proc/component_version': No such file or directory
/proc # cd /proc
/proc # ls|grep com
/proc # ls|grep ver
driver
version
/proc # cat version
Linux version 2.6.32.39-dfl61-20112910 (bifh7@) (gcc version 4.4.1 ('cs2009q3-hard-67-sb16') ) #1 PREEMPT Fri Aug 19 21:10:50 EEST 2011


All times are GMT. The time now is 13:28.

vBulletin® Version 3.8.8