Sorry it took so long spbogie, I ran the script with the
bf5fd43 change, and got the following error message:
Code:
PANDORA: Loading key from file "C:\Users\Garrett\AppData\Roaming\XBMC\userdata\addon_data\script.xbmc.pandora\key_in"
PANDORA: Unexpected error:<type 'exceptions.ImportError'>:No module named keys
-->Python script returned the following error<--
Error Type: <type 'exceptions.ImportError'>
Error Contents: No module named keys
Traceback (most recent call last):
File "C:\Users\Garrett\AppData\Roaming\XBMC\addons\script.xbmc.pandora\default.py", line 235, in <module>
panda = Panda()
File "C:\Users\Garrett\AppData\Roaming\XBMC\addons\script.xbmc.pandora\default.py", line 60, in __init__
self.pandora = Pandora( dataDir, fmt )
File "C:\Users\Garrett\AppData\Roaming\XBMC\addons\script.xbmc.pandora\libpandora\pandora.py", line 33, in __init__
if not self.keys.loadKeys():
File "C:\Users\Garrett\AppData\Roaming\XBMC\addons\script.xbmc.pandora\libpandora\keys.py", line 35, in loadKeys
"key_in" ) )
File "C:\Users\Garrett\AppData\Roaming\XBMC\addons\script.xbmc.pandora\libpandora\keys.py", line 99, in _loadKeyFromFile
key = pickle.load( f )
File "C:\Users\Garrett\Documents\XBMC\system\python\Lib\pickle.py", line 1370, in load
return Unpickler(file).load()
File "C:\Users\Garrett\Documents\XBMC\system\python\Lib\pickle.py", line 858, in load
dispatch[key](self)
File "C:\Users\Garrett\Documents\XBMC\system\python\Lib\pickle.py", line 1069, in load_inst
klass = self.find_class(module, name)
File "C:\Users\Garrett\Documents\XBMC\system\python\Lib\pickle.py", line 1124, in find_class
__import__(module)
ImportError: No module named keys
-->End of Python script error report<--
EDIT: This might help a little. I went to Addons -> Pandora -> Settings and did a "Force Re-Fetch Keys" and this flew into my debug log. It looks like the path to the keys file isn't being translated from the special:// protocol correctly?
Code:
PANDORA: Forcing key ReDownload
PANDORA: Loading key from file "special://profile/addon_data/script.xbmc.pandora\key_in"
PANDORA: Downloading key from url "https://raw.github.com/PromyLOPh/pianobar/master/src/libpiano/crypt_key_input.h"
PANDORA: Loading key from file "special://profile/addon_data/script.xbmc.pandora\key_out"
PANDORA: Downloading key from url "https://raw.github.com/PromyLOPh/pianobar/master/src/libpiano/crypt_key_output.h"
PANDORA: Saving keys
PANDORA: dataDir = "special://profile/addon_data/script.xbmc.pandora"
PANDORA: dataDir.isDir? False
-->Python script returned the following error<--
Error Type: <type 'exceptions.IOError'>
Error Contents: (22, "invalid mode ('w') or filename", 'special://profile/addon_data/script.xbmc.pandora\\key_in')
Traceback (most recent call last):
File "C:\Users\Garrett\AppData\Roaming\XBMC\addons\script.xbmc.pandora/refetch.py", line 12, in <module>
keys.forceReFetch()
File "C:\Users\Garrett\AppData\Roaming\XBMC\addons\script.xbmc.pandora\libpandora\keys.py", line 89, in forceReFetch
return self.loadKeys( True );
File "C:\Users\Garrett\AppData\Roaming\XBMC\addons\script.xbmc.pandora\libpandora\keys.py", line 63, in loadKeys
self.saveKeys()
File "C:\Users\Garrett\AppData\Roaming\XBMC\addons\script.xbmc.pandora\libpandora\keys.py", line 72, in saveKeys
f = open( os.path.join( self._dataDir, "key_in" ), "w" )
IOError: (22, "invalid mode ('w') or filename", 'special://profile/addon_data/script.xbmc.pandora\\key_in')
-->End of Python script error report<--