[atv1] problem with paths
#1
several plugins are dropping, because the path is not supported by atv. see the error:

01:31:40 T:53388288 M: 43401216 INFO: -->Python script returned the following error<--
01:31:40 T:53388288 M: 43401216 ERROR: Error Type: exceptions.NameError
01:31:40 T:53388288 M: 43401216 ERROR: Error Contents: name 'os' is not defined
01:31:40 T:53388288 M: 43401216 ERROR: Traceback (most recent call last):
File "/Users/frontrow/Library/Application Support/XBMC/addons/plugin.video.serialu.net/default.py", line 34, in ?
sys.path.append(os.path.join(Addon.getAddonInfo('p ath'), r'resources', r'lib'))
NameError: name 'os' is not defined
01:31:40 T:53388288 M: 43401216 INFO: -->End of Python script error report<--
01:31:40 T:2684407808 M: 43286528 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
01:31:40 T:2684407808 M: 43286528 DEBUG: Alloc resources: 0.05ms (0.03 ms skin load)
01:31:40 T:53388288 M: 43327488 INFO: Python script stopped
01:31:40 T:53388288 M: 43327488 DEBUG: Thread 53388288 terminating
01:31:40 T:53087232 M: 43343872 DEBUG: WaitOnScriptResult - plugin exited prematurely - terminating
01:31:40 T:2684407808 M: 43286528 ERROR: GetDirectory - Error getting plugin://plugin.video.serialu.net/
01:31:40 T:2684407808 M: 43302912 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.serialu.net/) failed


for this to work the path should be like:

"/Users/frontrow/Library/Application\ Support/XBMC/addons/plugin.video.serialu.net/default.py"

note the \ in Application Support folder...

how to fix it?..
Reply
#2
in default.py you need

Code:
import os
Reply
#3
i'll give it a try in the evening. thanks!
Reply
#4
grey Wrote:i'll give it a try in the evening. thanks!

just in case it works, please come back and tell everyone that there is nothing wrong with atv1 paths Smile
Reply
#5
deal)
Reply

Logout Mark Read Team Forum Stats Members Help
[atv1] problem with paths0