• 1
  • 33
  • 34
  • 35(current)
  • 36
  • 37
  • 135
[OBSOLETE] Pandora Radio (Script) Music Addon
Sad 
My log file below:



DEBUG: Instantiating addon using automatically obtained id of "script.xbmc.pandora" dependent on version 1.0 of the xbmc.python api
11:03:31 T:169013248 M:101216256 INFO: Loading skin file: DialogProgress.xml
11:03:31 T:169013248 M:101216256 DEBUG: DialogProgress::StartModal called
11:03:31 T:169013248 M:101216256 DEBUG: ------ Window Init (DialogProgress.xml) ------
11:03:32 T:142962688 M:100552704 INFO: CheckIdle - Closing session to http://skins.smartplus.cz (easy=0x8123000, multi=0x0)
11:03:34 T:169013248 M:101113856 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' )
11:03:34 T:169013248 M:101101568 ERROR: /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/default.py:21: 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.'
scriptPath = os.getcwd().replace(';','')
11:03:35 T:169013248 M:101048320 DEBUG: DialogProgress::StartModal called (already running)!
11:03:35 T:169013248 M:101048320 DEBUG: ------ Window Init (DialogProgress.xml) ------
11:03:36 T:169013248 M:100950016 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 )
11:03:36 T:169013248 M:100929536 INFO: Loading skin includes from /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/resources/skins/Android/NTSC/includes.xml
11:03:36 T:169013248 M:100929536 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)
11:03:36 T:169013248 M:100929536 INFO: -->Python script returned the following error<--
11:03:36 T:169013248 M:100929536 ERROR: Error Type: <type 'exceptions.TypeError'>
11:03:36 T:169013248 M:100929536 ERROR: Error Contents: XML File for Window is missing
11:03:36 T:169013248 M:100929536 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
11:03:36 T:169013248 M:100929536 INFO: -->End of Python script error report<--
11:03:36 T:142962688 M:100929536 INFO: Loading skin file: DialogKaiToast.xml
11:03:36 T:142962688 M:100929536 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
11:03:36 T:169013248 M:100478976 INFO: Python script stopped
11:03:36 T:169013248 M:100478976 DEBUG: Thread Python Thread 169013248 terminating
11:03:36 T:142962688 M:100487168 DEBUG: waiting for python thread 4 to stop
11:03:36 T:142962688 M:100503552 DEBUG: python thread 4 destructed
11:03:36 T:142962688 M:100478976 DEBUG: ------ Window Deinit (DialogProgress.xml) ------
11:03:41 T:142962688 M:101105664 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
11:03:46 T:142962688 M:101597184 INFO: Python, unloading python shared library because no scripts are running anymore
11:03:52 T:162619392 M:101302272 DEBUG: Thread Jobworker 162619392 terminating (autodelete)
11:03:58 T:156942336 M:101310464 DEBUG: Thread Jobworker 156942336 terminating (autodelete)
11:03:59 T:163684352 M:101318656 DEBUG: Thread Jobworker 163684352 terminating (autodelete)
11:04:02 T:142962688 M:101474304 DEBUG: SECTION:UnloadDll(libcurl.4.dylib)
11:04:02 T:142962688 M:101474304 DEBUG: Unloading: libcurl.4.dylib
Reply
spbogie Wrote:Someone with issues on an ATV2, please try making the following change to default.py
Code:
@@ -18,7 +18,7 @@ from pandaplayer import PandaPlayer
__title__ = "Pandora"
__settings__ = xbmcaddon.Addon(id='script.xbmc.pandora')

-scriptPath = os.getcwd().replace(';','')
+scriptPath = __settings__.getAddonInfo('path')

def GetGuiSetting( type, name ):
        resp = xbmc.executehttpapi( "GetGuiSetting( %d, %s )" %( type, name ) )

I'll try and get everything merged back in this week. I've been working on designing a complete re-write which should be much cleaner (this version was really more of a proof of concept hack that just took off and got to popular for me to fix)

Your efforts are much appreciated! Thank you for working on this...
Reply
Ok, sorry, perhaps my post wasn't quite clear. The code snippet I posted is the diff between the old and new file. You should take the line
Code:
scriptPath = os.getcwd().replace(';','')
and change it to
Code:
scriptPath = __settings__.getAddonInfo('path')

No guarantees, but I think this is where the skin not found error is coming from.
Reply
Tried what you just wrote changed the one line of code and
No luck on ATV2 take a look here at my Debug, thanks and I look forward to you all finding a solution, appreciate the hard work!

19:27:00 T:191930368 M: 57778176 DEBUG: ExecuteXBMCAction : Translating RunScript("script.xbmc.pandora")
19:27:00 T:191930368 M: 57778176 DEBUG: ExecuteXBMCAction : To RunScript("script.xbmc.pandora")
19:27:00 T:191930368 M: 57778176 INFO: initializing python engine.
19:27:00 T:191930368 M: 57769984 DEBUG: PYTHONHOME -> /Applications/XBMC.frappliance/Frameworks/
19:27:00 T:191930368 M: 57769984 DEBUG: PYTHONPATH -> /Applications/XBMC.frappliance/Frameworks/
19:27:01 T:191930368 M: 57606144 DEBUG: new python thread created. id=2
19:27:01 T:191930368 M: 57602048 DEBUG: ------ Window Deinit (DialogFavourites.xml) ------
19:27:01 T:250089472 M: 57597952 DEBUG: Thread XBPyThread start, auto delete: 0
19:27:01 T:250089472 M: 57597952 DEBUG: Python thread: start processing
19:27:01 T:250089472 M: 58707968 NOTICE: -->Python Interpreter Initialized<--
19:27:01 T:250089472 M: 58707968 DEBUG: Process - The source file to load is /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/default.py
19:27:01 T:250089472 M: 58691584 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:
19:27:01 T:250089472 M: 58691584 DEBUG: Process - Entering source directory /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora
19:27:01 T:250089472 M: 58691584 DEBUG: Instantiating addon using automatically obtained id of "script.xbmc.pandora" dependent on version 1.0 of the xbmc.python api
19:27:01 T:250089472 M: 58691584 INFO: Loading skin file: DialogProgress.xml
19:27:01 T:250089472 M: 58691584 DEBUG: DialogProgress::StartModal called
19:27:01 T:250089472 M: 58691584 DEBUG: ------ Window Init (DialogProgress.xml) ------
19:27:04 T:250089472 M: 57782272 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' )
19:27:05 T:250089472 M: 57765888 DEBUG: DialogProgress::StartModal called (already running)!
19:27:05 T:250089472 M: 57765888 DEBUG: ------ Window Init (DialogProgress.xml) ------
19:27:05 T:250089472 M: 57765888 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 )
19:27:05 T:250089472 M: 57741312 INFO: Loading skin includes from /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/resources/skins/Android/NTSC/includes.xml
19:27:05 T:250089472 M: 57741312 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)
19:27:05 T:250089472 M: 57741312 INFO: -->Python script returned the following error<--
19:27:05 T:250089472 M: 57741312 ERROR: Error Type: <type 'exceptions.TypeError'>
19:27:05 T:250089472 M: 57741312 ERROR: Error Contents: XML File for Window is missing
19:27:05 T:250089472 M: 57733120 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
19:27:05 T:250089472 M: 57733120 INFO: -->End of Python script error report<--
19:27:05 T:191930368 M: 57733120 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
19:27:06 T:250089472 M: 57339904 INFO: Python script stopped
19:27:06 T:250089472 M: 57339904 DEBUG: Thread Python Thread 250089472 terminating
19:27:06 T:191930368 M: 57339904 DEBUG: waiting for python thread 2 to stop
19:27:06 T:191930368 M: 57352192 DEBUG: python thread 2 destructed
19:27:06 T:191930368 M: 57352192 DEBUG: ------ Window Deinit (DialogProgress.xml) ------
Reply
Tried your fixes but still nothing. Here's my error log...

20:29:42 T:114081792 M:106901504 DEBUG: Process - Entering source directory /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora
20:29:42 T:114081792 M:106901504 DEBUG: Instantiating addon using automatically obtained id of "script.xbmc.pandora" dependent on version 1.0 of the xbmc.python api
20:29:42 T:114081792 M:106901504 INFO: Loading skin file: DialogProgress.xml
20:29:42 T:114081792 M:106901504 DEBUG: DialogProgress::StartModal called
20:29:42 T:114081792 M:106901504 DEBUG: ------ Window Init (DialogProgress.xml) ------
20:29:45 T:114081792 M:105787392 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' )
20:29:46 T:114081792 M:105689088 DEBUG: DialogProgress::StartModal called (already running)!
20:29:46 T:114081792 M:105689088 DEBUG: ------ Window Init (DialogProgress.xml) ------
20:29:47 T:114081792 M:105574400 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 )
20:29:47 T:114081792 M:105537536 INFO: Loading skin includes from /var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/resources/skins/Default/NTSC/includes.xml
20:29:47 T:114081792 M:105537536 INFO: Error loading includes.xml file (/var/mobile/Library/Preferences/XBMC/addons/script.xbmc.pandora/resources/skins/Default/NTSC/includes.xml): Failed to open file (row=0, col=0)
20:29:47 T:114081792 M:105537536 INFO: -->Python script returned the following error<--
20:29:47 T:114081792 M:105537536 ERROR: Error Type: <type 'exceptions.TypeError'>
20:29:47 T:114081792 M:105537536 ERROR: Error Contents: XML File for Window is missing
20:29:47 T:114081792 M:105529344 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
20:29:47 T:114081792 M:105529344 INFO: -->End of Python script error report<--
Reply
Working great for me, thanks for the addon! Has there been any progress on getting song ratings working?
Reply
speaker, can you zip up your whole file and share with us and does it work on ATV2 with the newest xbmc 10.09?

Thanks
Reply
Problem solved here. Just downgraded form 10.0-9 to 10.0-7 and now it's magically working!!
Reply
Yes! It's working! Downgrading fixed my problems too. Thanks!!
Reply
ya we should not have to downgrade to make it work, hope its still being worked on thanks all
Reply
Downgrade instructions are as follows;
Quote:ssh to the atv2 then run the following commands...

wget http://mirrors.xbmc.org/apt/atv2/deb/org...os-arm.deb

dpkg -i org.xbmc.xbmc-atv2_10.0-7_iphoneos-arm.deb

rm org.xbmc.xbmc-atv2_10.0-7_iphoneos-arm.deb

NOTE:
the full list of debs can be found here:-
http://mirrors.xbmc.org/apt/atv2/deb/
Reply
I took your latest code running 10.0-9 with IOS 4.3 and getting script error. Log entry is below. Thanks!

Quote:10:38:47 T:114688000 M:123412480 DEBUG: Process - The source file to load is /Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.xbmc.pandora.smorloc/default.py
10:38:47 T:114688000 M:123412480 DEBUG: Process - Setting the Python path to /Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.xbmc.pandora.smorloc:/var/mobile/Library/Preferences/XBMC/addons/script.module.beautifulsoup/lib:/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pil/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:
10:38:47 T:114688000 M:123408384 DEBUG: Process - Entering source directory /Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.xbmc.pandora.smorloc
10:38:47 T:114688000 M:123408384 DEBUG: Instantiating addon using automatically obtained id of "script.xbmc.pandora" dependent on version 1.0 of the xbmc.python api
10:38:47 T:114688000 M:123412480 INFO: Loading skin file: DialogProgress.xml
10:38:47 T:114688000 M:123412480 DEBUG: DialogProgress::StartModal called
10:38:47 T:114688000 M:123412480 DEBUG: ------ Window Init (DialogProgress.xml) ------
10:38:48 T:101134336 M:123269120 DEBUG: SECTION:UnloadDll(libcurl.4.dylib)
10:38:48 T:101134336 M:123269120 DEBUG: Unloading: libcurl.4.dylib
10:38:50 T:114688000 M:123219968 ERROR: /Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.xbmc.pandora.smorloc/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' )
10:38:51 T:114688000 M:123146240 DEBUG: DialogProgress::StartModal called (already running)!
10:38:51 T:114688000 M:123146240 DEBUG: ------ Window Init (DialogProgress.xml) ------
10:38:51 T:114688000 M:123138048 ERROR: /Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.xbmc.pandora.smorloc/pandaplayer.py:7: DeprecationWarning: object.__init__() takes no parameters
xbmc.Player.__init__( self, xbmc.PLAYER_CORE_MPLAYER )
10:38:51 T:114688000 M:123129856 INFO: Loading skin includes from /Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.xbmc.pandora.smorloc/resources/skins/Default/NTSC/includes.xml
10:38:51 T:114688000 M:123129856 INFO: Error loading includes.xml file (/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.xbmc.pandora.smorloc/resources/skins/Default/NTSC/includes.xml): Failed to open file (row=0, col=0)
10:38:51 T:114688000 M:123129856 INFO: -->Python script returned the following error<--
10:38:51 T:114688000 M:123129856 ERROR: Error Type: <type 'exceptions.TypeError'>
10:38:51 T:114688000 M:123129856 ERROR: Error Contents: XML File for Window is missing
10:38:51 T:114688000 M:123121664 ERROR: Traceback (most recent call last):
File "/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.xbmc.pandora.smorloc/default.py", line 214, in <module>
panda = Panda()
File "/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.xbmc.pandora.smorloc/default.py", line 68, in __init__
skin, "NTSC", panda = self )
TypeError: XML File for Window is missing
10:38:51 T:114688000 M:123121664 INFO: -->End of Python
Reply
anyone get this to work on 10.09 atv2 yet sure miss my pandoraSmile
Reply
Hopefully, this get's fixed soon. I really like the look and performance of 10.09 on my ATV2 better and don't want to downgrade.
Reply
Thanks for this! It works great!

For anyone else who might get a little confused like I did trying to install this, make sure you go to pianobar / src / libpiano for the crypt-keys he refers to. Click on "crypt_key_input.h" and "crypt_key_output.h". On easch, in the trop right corner of the text that "slides" into view, RIGHT click "Raw" and "Save Target As" or "Save Link As" (depending on your browser).

Thanks again!
Reply
  • 1
  • 33
  • 34
  • 35(current)
  • 36
  • 37
  • 135

Logout Mark Read Team Forum Stats Members Help
[OBSOLETE] Pandora Radio (Script) Music Addon11