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)

fatalsaint 2010-10-07 23:00

Re: [application] pyRadio (Pandora)
 
Quote:

Originally Posted by AgogData (Post 835545)
the error is due to licence thing because of my country im not from usa
i guess ur pandora works great cause thats the only error but do u have any tips for my problem ?

If you have a working HTTP PROXY in the states you can try setting the http_proxy environment variable before running the app.

Code:

export http_proxy = 'myproxy:port'
/opt/pyRadio/pyRadio.py

I assume is how that would work. If you do manage to get it working I'd like to know and I can build it into the app.

AgogData 2010-10-07 23:24

Re: [application] pyRadio (Pandora)
 
sorry i didn't get that line 'export http_proxy = 'myproxy:port' ' it didn't work @ xterm, could u explain more ?

N.B. : don't mind the smily face its cuz of : p (p for proxy)

fatalsaint 2010-10-07 23:42

Re: [application] pyRadio (Pandora)
 
You need to have access to a US proxy.. they usually come in the form of an IP address and Port.

Type that in with the IP address and port in place of "myproxy" and "port" and then run pyRadio. "myproxy" and "port" aren't actually anything.. they are place fillers as an example of what to type.

AgogData 2010-10-08 00:06

Re: [application] pyRadio (Pandora)
 
ok found a proxy and a port and thats wat happened @ xterm

~ $ export http_proxy = '68.109.178.52 :27977'
-sh: export: : bad variable name

fatalsaint 2010-10-08 00:17

Re: [application] pyRadio (Pandora)
 
remove all spaces except after "export".

Code:

export http_proxy='68.109.178.52:27977'
That was my fault.

AgogData 2010-10-08 00:24

Re: [application] pyRadio (Pandora)
 
$ exporthttp_proxy='68.109.178.52 :27977'
~ $ /opt/pyRadio/pyRadio.py
Radio Started.
Auto rotation on
('found new MAFW renderer %s', 'Mafw-Gst-Renderer')
using MAFW Gst-Renderer
MAFW PROPERTY RECEIVED 4739104 volume 5483520 <ctypes.LP__GError object at 0x44cc4ad0>
volume 28
Error: com.savagebeast.radio.api.protocol.xmlrpc.RadioXml RpcException: Access not allowed due to licensing restrictions for your country (41.234.55.50)
Code: 12

i guess it didn't fall for it x(

fatalsaint 2010-10-08 00:29

Re: [application] pyRadio (Pandora)
 
You still seem to have a space after the 52 and no space after export..

It was just a thought because the python docs seem to suggest that python might obey those environment variables.

AgogData 2010-10-08 00:36

Re: [application] pyRadio (Pandora)
 
~ $ export http_proxy='68.109.178.52:27977'
~ $ /opt/pyRadio/pyRadio.py
Radio Started.
Auto rotation on
('found new MAFW renderer %s', 'Mafw-Gst-Renderer')
using MAFW Gst-Renderer
MAFW PROPERTY RECEIVED 4739104 volume 5556976 <ctypes.LP__GError object at 0x44cc4ad0>
volume 28
~ $


i fixed the space-no space
it asked me for the user/pass 3 times before crashing without the licence thing

fatalsaint 2010-10-08 00:36

Re: [application] pyRadio (Pandora)
 
Oh, Also:

If I could get everyone that can use and test pyRadio to go vote for it in the testing repository it would be appreciated.

Since the API changes every few months I'd like to get the majority of people some Pandora for a while before it dies again and I need to update it. If I keep messing around too long it'll never make it past that testing phase :D. Plus, people are already commenting on pyPianobar in the extras that it's broke and I really don't want to maintain those apps anymore. So would like to get them a replacement.

Thanks!

mfortner 2010-10-08 00:54

Re: [application] pyRadio (Pandora)
 
Is this latest version for Maemo 5 only? I'm not seeing it with diablo.


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

vBulletin® Version 3.8.8