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)

jsharper 2011-09-26 04:08

Re: [application] pyRadio (Pandora)
 
running
Code:

apt-get install python-pyside.qtnetwork
as root resolved this error:
Code:

ImportError: could not import PySide.QtNetwork
but now I get:
Code:

Traceback (most recent call last):
  File "/opt/pyRadio/pyRadio.py", line 694, in <module>
    panda = Panda()
  File "/opt/pyRadio/pyRadio.py", line 104, in __init__
    self.ui.setupUi(self)
  File "/opt/pyRadio/pyRadio_ui.py", line 26, in setupUi
    self.albumArt = QtWebKit.QWebView(self.centralwidget)
TypeError: 'PySide.QtWebKit.QWebView' called with wrong argument types:
  PySide.QtWebKit.QWebView(PySide.QtGui.QWidget)
Supported signatures:
  PySide.QtWebKit.QWebView(PySide.QtGui.QWidget = None)


fatalsaint 2011-09-26 04:27

Re: [application] pyRadio (Pandora)
 
Yours is an interesting one, jsharper. That error does not look right at all.

The only thing I can think is you are running some kind of mixture of pyside/python versions where a call has changed for qwebkit. I've seen similar things with the PyQt4 stuff when the versions in the repositories (Devel vs Extras for example) were different and people wound up with hybrid installations.

I will keep googling but I can't reproduce that problem.. it seems very strange.

fatalsaint 2011-09-26 04:38

Re: [application] pyRadio (Pandora)
 
Quick idea, can you try this too jsharper:
Code:

sudo gainroot
apt-get install python-pyside.qtwebkit


Tensuke 2011-09-26 05:26

Re: [application] pyRadio (Pandora)
 
Just updated today, opened it up and it already logged me in and started playing music-love it! Any chance of adding song bookmarking? Or is that not available on the API?

fatalsaint 2011-09-26 06:06

Re: [application] pyRadio (Pandora)
 
Quote:

Originally Posted by Tensuke (Post 1096421)
Just updated today, opened it up and it already logged me in and started playing music-love it! Any chance of adding song bookmarking? Or is that not available on the API?

Does the Pandora website do it? What's it do?

I will check the pianobar sources (that's where I get all my API information).

fatalsaint 2011-09-26 06:08

Re: [application] pyRadio (Pandora)
 
I've uploaded a 4.1 into the Repo. It adds 2 new dependencies. Those of you with the Webkit and QNetwork issues please try the new one.

Tensuke 2011-09-26 07:02

Re: [application] pyRadio (Pandora)
 
Quote:

Originally Posted by fatalsaint (Post 1096438)
Does the Pandora website do it? What's it do?

I will check the pianobar sources (that's where I get all my API information).

The website used to do it, but they've apparently removed bookmarking from the website with the new version. The current android app still supports it, and on the website you can still view songs you've bookmarked and ones you've liked. I'd just like an easy way to save songs and look at them later, would it be possible to just read the song data and save it to a file?

edit: did a quick search and there appears to be bookmarking track/artist data in piano.c. Also, updated to 4.1 and still smooth!

klinglerware 2011-09-26 16:15

Re: [application] pyRadio (Pandora)
 
Quote:

Originally Posted by fatalsaint (Post 1096439)
I've uploaded a 4.1 into the Repo. It adds 2 new dependencies. Those of you with the Webkit and QNetwork issues please try the new one.

Couldn't update--looks like I have a conflict with pyside-qt4-webkit (<0.4.2-1maemo8)

fatalsaint 2011-09-26 16:36

Re: [application] pyRadio (Pandora)
 
Quote:

Originally Posted by klinglerware (Post 1096781)
Couldn't update--looks like I have a conflict with pyside-qt4-webkit (<0.4.2-1maemo8)

I don't specify a version in mine.. what repo's do you have enabled?

klinglerware 2011-09-26 16:45

Re: [application] pyRadio (Pandora)
 
Quote:

Originally Posted by fatalsaint (Post 1096791)
I don't specify a version in mine.. what repo's do you have enabled?

I have the following enabled:
Nokia Applications
NSSU
Ovi
CSSU
Extras-devel


All times are GMT. The time now is 16:57.

vBulletin® Version 3.8.8