[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) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
Pandora script failure again!! - srinib4u - 2011-06-26 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 - sjskent - 2011-06-26 spbogie Wrote:Someone with issues on an ATV2, please try making the following change to default.py Your efforts are much appreciated! Thank you for working on this... - spbogie - 2011-06-26 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(';','') Code: scriptPath = __settings__.getAddonInfo('path') No guarantees, but I think this is where the skin not found error is coming from. - dallasnights - 2011-06-27 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) ------ - jsgrif - 2011-06-27 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<-- - speaker219 - 2011-06-27 Working great for me, thanks for the addon! Has there been any progress on getting song ratings working? - dallasnights - 2011-06-28 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 - grypho - 2011-06-28 Problem solved here. Just downgraded form 10.0-9 to 10.0-7 and now it's magically working!! - jsgrif - 2011-06-29 Yes! It's working! Downgrading fixed my problems too. Thanks!! - dallasnights - 2011-06-29 ya we should not have to downgrade to make it work, hope its still being worked on thanks all - sjskent - 2011-06-29 Downgrade instructions are as follows; Quote:ssh to the atv2 then run the following commands... - sjskent - 2011-06-29 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 - dallasnights - 2011-06-30 anyone get this to work on 10.09 atv2 yet sure miss my pandora - bigbully - 2011-06-30 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. - highflight1985 - 2011-06-30 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! |