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:25

Re: [application] pyRadio (Pandora)
 
After successful installation of python-pyside, pyradio's installation looked like this:

/home/user/MyDocs/debs # dpkg -i pyradio_4.3_all.deb
file /var/lib/dpkg/tmp.ci/digsigsums cannot be opened
No digsigsums file
Selecting previously deselected package pyradio.
(Reading database ... 42566 files and directories currently installed.)
Unpacking pyradio (from pyradio_4.3_all.deb) ...
Package pyradio: File '/var/lib/dpkg/info/pyradio.prerm' not in digsigsums -- warning
Package pyradio: File '/var/lib/dpkg/info/pyradio.postinst' not in digsigsums -- warning
Package pyradio: File '/opt/pyRadio/pyRadio.py' not in digsigsums -- warning
No digsigsums file
dpkg: dependency problems prevent configuration of pyradio:
pyradio depends on pyside-qt4-core; however:
Package pyside-qt4-core is not installed.
pyradio depends on pyside-qt4-gui; however:
Package pyside-qt4-gui is not installed.
pyradio depends on pyside-qt4-webkit; however:
Package pyside-qt4-webkit is not installed.
dpkg: error processing pyradio (--install):
dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils ...
Processing triggers for hicolor-icon-theme ...
Errors were encountered while processing:
pyradio
aegis-installing pyradio (from '')



My updated python installation suite on the N9 now looks like this:

/home/user/MyDocs/debs # dpkg -l|grep pyside
ii libpyside1.0 1.0.7-1maemo2+0m6 Python bindings for Qt 4 (base files)
ii python-pyside 1.0.7-1maemo2+0m6 Python bindings for Qt4 (big metapackage)
ii python-pyside.phonon 1.0.7-1maemo2+0m6 Qt 4 Phonon module - Python bindings
ii python-pyside.qtcore 1.0.7-1maemo2+0m6 Qt 4 core module - Python bindings
ii python-pyside.qtdeclarative 1.0.7-1maemo2+0m6 Qt 4 Declarative module - Python bindings
ii python-pyside.qtgui 1.0.7-1maemo2+0m6 Qt 4 GUI module - Python bindings
ii python-pyside.qtnetwork 1.0.7-1maemo2+0m6 Qt 4 network module - Python bindings
ii python-pyside.qtopengl 1.0.7-1maemo2+0m6 Qt 4 OpenGL module - Python bindings
ii python-pyside.qtscript 1.0.7-1maemo2+0m6 Qt 4 script module - Python bindings
ii python-pyside.qtsql 1.0.7-1maemo2+0m6 Qt 4 SQL module - Python bindings
ii python-pyside.qtsvg 1.0.7-1maemo2+0m6 Qt 4 SVG module - Python bindings
ii python-pyside.qtwebkit 1.0.7-1maemo2+0m6 Qt 4 WebKit module - Python bindings
ii python-pyside.qtxml 1.0.7-1maemo2+0m6 Qt 4 XML module - Python bindings
/home/user/MyDocs/debs #

Trying to execute pyradio from the command line at this point results in this:

/home/user/MyDocs/debs # /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"
?
Traceback (most recent call last):
File "/opt/pyRadio/pyRadio.py", line 694, in <module>
panda = Panda()
File "/opt/pyRadio/pyRadio.py", line 108, in __init__
self.player = RadioPlayer()
File "/opt/pyRadio/radioplayer.py", line 26, in __init__
from libpiano.OSSOBackend import OSSOBackend
File "/opt/pyRadio/libpiano/OSSOBackend.py", line 1, in <module>
from AbstractBackend import AbstractBackend
File "/opt/pyRadio/libpiano/AbstractBackend.py", line 4, in <module>
import gobject
ImportError: No module named gobject

fatalsaint 2011-11-16 22:27

Re: [application] pyRadio (Pandora)
 
pyRadio will probably still error IF you use the deb because the package names are different.

However, if you grab the source file, here and untar it you can cd into the opt/pyRadio/ directory and try to run pyRadio directly with ./pyRadio.py

If that works, I will make a pseudo-deb package for you to try and install using the python-pyside.qt4 style namings.

fatalsaint 2011-11-16 22:27

Re: [application] pyRadio (Pandora)
 
Ok, scratch my previous post you are ahead of me:

do this:

apt-cache search gobject

And show me the results.

ETA: If there is a ton, you'll want to install the one for python:
apt-cache search gobject | grep python

cddiede 2011-11-16 22:29

Re: [application] pyRadio (Pandora)
 
~ # apt-cache search gobject
python-gi - Python GObject Introspection modules
libgirepository1.0-0 - Library for handling GObject introspection data (runtime library)
python-gobject - Python bindings for the GObject library
libgssdp-1.0-1 - GObject-based library for SSDP
libsofia-sip-ua-glib3 - Sofia-SIP library glib/gobject interfaces runtime
libgupnp-1.0-2 - GObject-based library for UPnP

fatalsaint 2011-11-16 22:31

Re: [application] pyRadio (Pandora)
 
Ok, I edited my post above if you didn't see it..

apt-get install python-gobject

and then run pyRadio again please.

cddiede 2011-11-16 22:34

Re: [application] pyRadio (Pandora)
 
Just did this:

apt-get install python-gi python-gobject

Then re-installed the pyradio.deb file and ran pyradio from the command line.

And the program starts!!!

I'm prompted to enter my username, then password.
The UI elements are a bit tough to hit on the capacitive high resolution screen, but I think I got it.

Trying to see if I can connect to a stream now...

fatalsaint 2011-11-16 22:36

Re: [application] pyRadio (Pandora)
 
I actually think I can modify the main deb to work for both N900 and the N9 because the N900 has the same python-pyside.qt* package names as well.

cddiede 2011-11-16 22:37

Re: [application] pyRadio (Pandora)
 
I'm having trouble getting it to connect to pandora, but no error messages.

upon closer inspection, www.pandora.com, is just grinding when I point my desktop Firefox to it right now so there may be an unrelated network issue...

cddiede 2011-11-16 22:39

Re: [application] pyRadio (Pandora)
 
Screenshot:

http://besh.com/~chad/pyradio.png

fatalsaint 2011-11-16 22:43

Re: [application] pyRadio (Pandora)
 
Quote:

Originally Posted by cddiede (Post 1124683)

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.


All times are GMT. The time now is 18:55.

vBulletin® Version 3.8.8