Kodi Community Forum
[OBSOLETE] Pandora Radio (Script) Music Addon - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=148)
+---- Thread: [OBSOLETE] Pandora Radio (Script) Music Addon (/showthread.php?tid=70471)



- dallasnights - 2011-07-01

anyone have a fix yet, really don't want to downgrade from 10.09

Thanks all


- mrfatboy - 2011-07-02

Fantastic Plugin! This made me dump Boxee and switch to XBMC. Congrats to the devs.

I saw this asked in the early part of the thread but I wanted to get an update.

Will this plugin (script) be modded to be able to be kept running while viewing your pictures in the future?


- dallasnights - 2011-07-02

Here is my log, ATV 2, XBMC 10.09, hope some can fix so I can use it again, thanks

12:46:22 T:150441984 M: 92069888 DEBUG: ExecuteXBMCAction : Translating RunScript("script.xbmc.pandora")
12:46:22 T:150441984 M: 92069888 DEBUG: ExecuteXBMCAction : To RunScript("script.xbmc.pandora")
12:46:22 T:150441984 M: 92061696 INFO: initializing python engine.
12:46:22 T:150441984 M: 92061696 DEBUG: PYTHONHOME -> /Applications/XBMC.frappliance/Frameworks/
12:46:22 T:150441984 M: 92061696 DEBUG: PYTHONPATH -> /Applications/XBMC.frappliance/Frameworks/
12:46:23 T:150441984 M: 92004352 DEBUG: new python thread created. id=5
12:46:23 T:150441984 M: 92004352 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive
12:46:23 T:212439040 M: 92000256 DEBUG: Previous line repeats 1 times.
12:46:23 T:212439040 M: 92000256 DEBUG: Thread XBPyThread start, auto delete: 0
12:46:23 T:212439040 M: 92000256 DEBUG: Python thread: start processing
12:46:23 T:150441984 M: 92000256 DEBUG: ------ Window Deinit (DialogFavourites.xml) ------
12:46:23 T:150441984 M:101920768 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive
12:46:23 T:212439040 M:101920768 DEBUG: Previous line repeats 7 times.
12:46:23 T:212439040 M:101920768 NOTICE: -->Python Interpreter Initialized<--
12:46:23 T:212439040 M:101920768 DEBUG: Process - The source file to load is /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/default.py
12:46:23 T:212439040 M:101920768 DEBUG: Process - Setting the Python path to /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora:/var/mobile/Library/Preferences/XBMC/addons/script.module.beautifulsoup/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.mechanize/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.cryptopy/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.simplejson/lib:/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pil/lib:/var/mobile/Library/Preferences/XBMC/addons/script.web.viewer/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.elementtree/lib:/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pysqlite/lib:/Applications/XBMC.frappliance/Frameworks:/Applications/XBMC.frappliance/Frameworks/lib/python26.zip:/Applications/XBMC.frappliance/Frameworks/lib/python2.6:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-darwin:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-mac:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-mac/lib-scriptpackages:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-tk:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-old:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-dynload:/Applications/XBMC.frappliance/Frameworks/lib/python2.6/site-packages:
12:46:23 T:212439040 M:101920768 DEBUG: Process - Entering source directory /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora
12:46:23 T:212439040 M:101920768 DEBUG: Instantiating addon using automatically obtained id of "script.xbmc.pandora" dependent on version 1.0 of the xbmc.python api
12:46:23 T:150441984 M:101920768 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive
12:46:23 T:212439040 M:101920768 DEBUG: Previous line repeats 1 times.
12:46:23 T:212439040 M:101920768 INFO: Loading skin file: DialogProgress.xml
12:46:23 T:150441984 M:101924864 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive
12:46:23 T:212439040 M:101928960 DEBUG: DialogProgress::StartModal called
12:46:23 T:212439040 M:101928960 DEBUG: ------ Window Init (DialogProgress.xml) ------
12:46:23 T:150441984 M:101928960 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive
12:46:25 T:212439040 M:100659200 DEBUG: Previous line repeats 53 times.
12:46:25 T:212439040 M:100659200 ERROR: /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/libpandora/pianoparser.py:6: DeprecationWarning: os.getcwd() currently lies to you so please use addon.getAddonInfo('path') to find the script's root directory and DO NOT make relative path accesses based on the results of 'os.getcwd.'
f = open( os.path.join( os.getcwd(), fname ), 'r' )
12:46:25 T:150441984 M:100716544 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive
12:46:27 T:212439040 M:100761600 DEBUG: Previous line repeats 48 times.
12:46:27 T:212439040 M:100761600 DEBUG: DialogProgress::StartModal called (already running)!
12:46:27 T:212439040 M:100761600 DEBUG: ------ Window Init (DialogProgress.xml) ------
12:46:27 T:150441984 M:100761600 DEBUG: Error: Requested setting (pvrmanager.enabled) was not found. It must be case-sensitive
12:46:30 T:212439040 M:100667392 DEBUG: Previous line repeats 79 times.
12:46:30 T:212439040 M:100667392 ERROR: /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/pandaplayer.py:7: DeprecationWarning: object.__init__() takes no parameters
xbmc.Player.__init__( self, xbmc.PLAYER_CORE_MPLAYER )
12:46:30 T:212439040 M:100646912 INFO: Loading skin includes from /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/resources/skins/Android/NTSC/includes.xml
12:46:30 T:212439040 M:100646912 INFO: Error loading includes.xml file (/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/resources/skins/Android/NTSC/includes.xml): Failed to open file (row=0, col=0)
12:46:30 T:212439040 M:100646912 INFO: -->Python script returned the following error<--
12:46:30 T:212439040 M:100646912 ERROR: Error Type: <type 'exceptions.TypeError'>
12:46:30 T:212439040 M:100646912 ERROR: Error Contents: XML File for Window is missing
12:46:30 T:212439040 M:100638720 ERROR: Traceback (most recent call last):
File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/default.py", line 214, in <module>
panda = Panda()
File "/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/default.py", line 68, in __init__
skin, "NTSC", panda = self )
TypeError: XML File for Window is missing
12:46:30 T:212439040 M:100638720 INFO: -->End of Python script error report<--


- squirrelsnuts - 2011-07-04

Awesome! I got this working on my Ubunutu machine. Love it so far. Nod
I am really interested in interacting remotely with xbmc, so I downloaded xbmc commander for the iphone 4. Pandora shows up on the Music Add-ons, but touching the icon does nothing on the iphone, and xbmc sometimes gives a generic couldn't play message.

I did notice the xbmc.log file has this:

Code:
16:54:05 T:3077883776 M:612909056   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
16:54:05 T:3077883776 M:612909056   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
16:54:05 T:3077883776 M:612909056   DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
16:54:05 T:3077883776 M:612020224  NOTICE: DVDPlayer: Opening: script://script.xbmc.pandora
16:54:05 T:3077883776 M:612020224 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
16:54:05 T:2924358512 M:612020224   DEBUG: thread start, auto delete: 0
16:54:05 T:2924358512 M:612020224  NOTICE: Creating InputStream
16:54:05 T:2924358512 M:612020224 WARNING: CreateLoader - Unsupported protocol(script) in script://script.xbmc.pandora/
16:54:05 T:2924358512 M:612020224   ERROR: CDVDPlayer::OpenInputStream - error opening [script://script.xbmc.pandora]
16:54:05 T:2924358512 M:612020224  NOTICE: CDVDPlayer::OnExit()
16:54:05 T:2924358512 M:612020224  NOTICE: CDVDPlayer::OnExit() deleting input stream
16:54:05 T:2924358512 M:612020224   DEBUG: Thread 2924358512 terminating
16:54:05 T:3077883776 M:612020224   DEBUG: CAnnouncementManager - Announcement: PlaybackStopped from xbmc
16:54:05 T:3077883776 M:612020224   ERROR: Playlist Player: skipping unplayable item: 0, path [script://script.xbmc.pandora]
16:54:05 T:3077883776 M:612020224   DEBUG: Playlist Player: no more playable items... aborting playback
16:5


I'd be happy to help, but I'm not sure where to start, any ideas?


My Log - svinyard - 2011-07-07

Tried this out. Here is the log output of the failed error.

15:40:21 T:140 M:228057088 NOTICE: -->Python Interpreter Initialized<--
15:40:21 T:140 M:226459648 NOTICE: {'limit': '4'}
15:41:25 T:4008 M:218947584 ERROR: Window Translator: Can't find window scriptsdebuginfo
15:41:25 T:4008 M:218931200 ERROR: Window Translator: Can't find window pluginsettings
15:41:25 T:4008 M:218931200 ERROR: Error evaluating boolean expression Window.IsActive(MovieInformation) | Window.IsActive(MusicInformation) | Window.IsActive(SongInformation) | Window.IsActive(FileBrowser) | Window.IsActive(ScriptsDebugInfo) | Window.IsActive(PluginSettings) | Window.IsActive(ContentSettings) | Window.IsActive(SelectDialog) | Window.IsActive(FileStackingDialog) | Window.IsActive(MediaSource) | Window.IsActive(PictureInfo) | Window.IsActive(PlayerControls) | Window.IsActive(VirtualKeyboard) | Window.IsActive(NumericInput) | Window.IsActive(ProfileSettings) | Window.IsActive(LockSettings) | Window.IsActive(SmartPlaylistEditor) | Window.IsActive(SmartPlaylistRule) | Window.IsActive(script-Apple_Movie_Trailers-settings.xml) | Window.IsActive(script-Apple_Movie_Trailers-chooser.xml) | Window.IsActive(script-Apple_Movie_Trailers-search.xml) | Window.IsActive(script-Apple_Movie_Trailers-showtimes.xml) | Window.IsActive(script-XBMC_Lyrics-settings.xml)
15:41:29 T:4008 M:216481792 WARNING: XFILE::CMusicDatabaseDirectory::GetLabel - Unknown nodetype requested 0
15:41:32 T:628 M:214970368 NOTICE: -->Python Interpreter Initialized<--
15:41:33 T:2988 M:212774912 ERROR: WebServer: Failed to open C:\Program Files\XBMC\addons\webinterface.default\http:\\http://www.pandora.com\radio\xmlrpc\v30
15:41:33 T:628 M:212779008 ERROR: Error Type: urllib2.URLError
15:41:33 T:628 M:212779008 ERROR: Error Contents: <urlopen error (10053, 'Software caused connection abort')>
15:41:33 T:628 M:212709376 ERROR: Traceback (most recent call last):
File "C:\Program Files\XBMC\addons\script.xbmc.pandora\default.py", line 214, in ?
panda = Panda()
File "C:\Program Files\XBMC\addons\script.xbmc.pandora\default.py", line 47, in __init__
self.pandora.sync()
File "C:\Program Files\XBMC\addons\script.xbmc.pandora\libpandora\pandora.py", line 35, in sync
u = urlopen( reqUrl, enc )
File "special://xbmc/system/python/Lib\urllib2.py", line 130, in urlopen
return _opener.open(url, data)
File "special://xbmc/system/python/Lib\urllib2.py", line 358, in open
response = self._open(req, data)
File "special://xbmc/system/python/Lib\urllib2.py", line 376, in _open
'_open', req)
File "special://xbmc/system/python/Lib\urllib2.py", line 337, in _call_chain
result = func(*args)
File "special://xbmc/system/python/Lib\urllib2.py", line 1021, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "special://xbmc/system/python/Lib\urllib2.py", line 996, in do_open
raise URLError(err)
URLError: <urlopen error (10053, 'Software caused connection abort')>
15:41:35 T:1852 M:212717568 NOTICE: -->Python Interpreter Initialized<--
15:41:36 T:2988 M:211456000 ERROR: WebServer: Failed to open C:\Program Files\XBMC\addons\webinterface.default\http:\\http://www.pandora.com\radio\xmlrpc\v30
15:41:36 T:1852 M:211464192 ERROR: Error Type: urllib2.URLError
15:41:36 T:1852 M:211464192 ERROR: Error Contents: <urlopen error (10053, 'Software caused connection abort')>
15:41:36 T:1852 M:211353600 ERROR: Traceback (most recent call last):
File "C:\Program Files\XBMC\addons\script.xbmc.pandora\default.py", line 214, in ?
panda = Panda()
File "C:\Program Files\XBMC\addons\script.xbmc.pandora\default.py", line 47, in __init__
self.pandora.sync()
File "C:\Program Files\XBMC\addons\script.xbmc.pandora\libpandora\pandora.py", line 35, in sync
u = urlopen( reqUrl, enc )
File "special://xbmc/system/python/Lib\urllib2.py", line 130, in urlopen
return _opener.open(url, data)
File "special://xbmc/system/python/Lib\urllib2.py", line 358, in open
response = self._open(req, data)
File "special://xbmc/system/python/Lib\urllib2.py", line 376, in _open
'_open', req)
File "special://xbmc/system/python/Lib\urllib2.py", line 337, in _call_chain
result = func(*args)
File "special://xbmc/system/python/Lib\urllib2.py", line 1021, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "special://xbmc/system/python/Lib\urllib2.py", line 996, in do_open
raise URLError(err)
URLError: <urlopen error (10053, 'Software caused connection abort')>


Help please - unresolvable script error - john.doe - 2011-07-08

ATV2, JB w/ Pwnagetool, latest ios version (4.2 I think)

So I was running the latest stable build, and tried installing and running Pandora v1.0, V1.1.1, and then V1.1.2, then I updated ATV2 to latest nightly build and tried again w/ V1.1.2. Now I'm giving up and seeing if anyone else has any ideas. More info:

XBMC:
darwin 11.0.0
xbmc pre-11.0 Git: 20110706-c4f6527
Using Confluence (default) skin

LOG: http://pastebin.com/tjm5sVPp

THANKS SO MUCH IN ADVANCE.


- htpc guy - 2011-07-09

john.doe Wrote:ATV2, JB w/ Pwnagetool, latest ios version (4.2 I think)

So I was running the latest stable build, and tried installing and running Pandora v1.0, V1.1.1, and then V1.1.2, then I updated ATV2 to latest nightly build and tried again w/ V1.1.2. Now I'm giving up and seeing if anyone else has any ideas. More info:

XBMC:
darwin 11.0.0
xbmc pre-11.0 Git: 20110706-c4f6527
Using Confluence (default) skin

LOG: http://pastebin.com/tjm5sVPp

THANKS SO MUCH IN ADVANCE.

I would say its a good bet that this doesn't work on nightly builds.No


- john.doe - 2011-07-09

htpc guy Wrote:I would say its a good bet that this doesn't work on nightly builds.No

Well, maybe - but I had the same problem with the stable build. I just tried the nightly build as a hail-mary fix for the problem, and like I said, I tried Pandora addon versions 1.0 through 1.1.2, with no luck.

I only tried 1.1.2 with the nightly though. I suppose I could start trying the older Pandora addon builds with the nightly and see if I get anywhere but that sounds like an approach with a low probability of success.


- htpc guy - 2011-07-09

I think your other issue is iOS. AFAIK, most of the issues people tend to have come from those running iOS.

Has anyone been able to make it work on iOS?

I've run this on both Windows and Linux without problems.


- grypho - 2011-07-09

I have been able to make it work only under 10-7.


- Quicksilver2002 - 2011-07-09

Hey guys, I'm new to XBMC and looking forward to getting Pandora to work. I have read through the steps listed and the posts, but am still having issues. All files were downloaded from the sites today. I'm also running XBMC 10.1 on Windows 7 x64.

When I first clicked on the Pandora Add-On i went into settings and entered my username (email address) and password. When I try to connect I'm getting an "Check username/password error. I have re entered this info many times and still no luck.After reading the posts, I saw that some were fixing this issues by editing the default.py file. I tried this and I'm still getting the same error. I did turn on debug and captured a log. Can someone please look at this and tell me what I'm doing wrong?! Thanks!

http://pastebin.com/3BhvpkpK

P.S. still have my email address and password listed in both the settings and the default.py file. If I need to chnage this file back to default please let me know.


- uschxc - 2011-07-09

I had to update the PROTOCOL_VERSION varialbe in libpandora/pandora.py to 31 for this to work. I just started using the plugin today, july 9th, so pandora might have recently updated as I don't see any updates here pertaining to PROTOCOL_VERSION 31, but that fixed the login failure issue for me.

i'm on the latest repository provided build of xbmc on ubuntu


PROTOCOL_VERSION Update - jdwolf - 2011-07-09

uschxc Wrote:I had to update the PROTOCOL_VERSION varialbe in libpandora/pandora.py to 31 for this to work. I just started using the plugin today, july 9th, so pandora might have recently updated as I don't see any updates here pertaining to PROTOCOL_VERSION 31, but that fixed the login failure issue for me.

i'm on the latest repository provided build of xbmc on ubuntu

Thanks, uschxc! They did indeed update the protocol version overnight. You fix works perfect. Appreciate it. I'm sure it will help others with the auth issues until a new version is put out.

Presh!

-- Wolfer


- grypho - 2011-07-09

WOW will try this out as soon as I arrive home. If this works, i'll be veeeerry happy. please confirm.


- bac522 - 2011-07-09

uschxc Wrote:update the PROTOCOL_VERSION varialbe in libpandora/pandora.py to 31 for this to work.

Cool...worked for me as well!