I'm running into the error "Script failed: addon.py"
Below is the (what I think is) relevant lines from the log file
Code:
22:34:30 T:2942024560 M:538214400 DEBUG: StartScript - calling plugin iPhoto('plugin://plugin.image.iphoto/','0','')
22:34:30 T:2942024560 M:538214400 INFO: initializing python engine.
22:34:30 T:2942024560 M:538214400 DEBUG: Loading: /usr/lib/xbmc/system/python/python24-i486-linux.so
22:34:30 T:2942024560 M:538157056 DEBUG: Python wrapper library linked with internal Python library
22:34:31 T:2942024560 M:538042368 DEBUG: new python thread created. id=2
22:34:31 T:2942024560 M:538042368 DEBUG: WaitOnScriptResult - waiting on the iPhoto plugin...
22:34:31 T:2933631856 M:538042368 DEBUG: thread start, auto delete: 0
22:34:31 T:2933631856 M:538042368 DEBUG: Python thread: start processing
22:34:31 T:2933631856 M:537915392 NOTICE: -->Python Interpreter Initialized<--
22:34:31 T:2933631856 M:537915392 DEBUG: Process - The source file to load is /home/guy/.xbmc/addons/jingai-plugin.image.iphoto-0f739ed/addon.py
22:34:31 T:2933631856 M:537915392 DEBUG: Process - Setting the Python path to /home/guy/.xbmc/addons/jingai-plugin.image.iphoto-0f739ed:/home/guy/.xbmc/addons/script.module.simplejson/lib:/home/guy/.xbmc/addons/script.module.beautifulsoup/lib:/usr/lib/xbmc/addons/script.module.pil/lib:/usr/lib/xbmc/addons/script.module.pysqlite/lib:/usr/lib/xbmc/system/python/python24.zip:/usr/share/xbmc/system/python/lib/python24.zip:/usr/share/xbmc/system/python/lib/python2.4/:/usr/share/xbmc/system/python/lib/python2.4/plat-linux2:/usr/share/xbmc/system/python/lib/python2.4/lib-tk:/usr/share/xbmc/system/python/lib/python2.4/lib-dynload
22:34:31 T:2933631856 M:537915392 DEBUG: Process - Entering source directory /home/guy/.xbmc/addons/jingai-plugin.image.iphoto-0f739ed
22:34:31 T:2933631856 M:537915392 INFO: -->Python script returned the following error<--
22:34:31 T:2933631856 M:537915392 ERROR: Error Type: exceptions.SyntaxError
22:34:31 T:2933631856 M:537915392 ERROR: Error Contents: ('invalid syntax', ('/home/guy/.xbmc/addons/jingai-plugin.image.iphoto-0f739ed/addon.py', 77, 13, " with open(filename, 'rb') as f:\n"))
22:34:31 T:2933631856 M:537915392 ERROR: File "/home/guy/.xbmc/addons/jingai-plugin.image.iphoto-0f739ed/addon.py", line 77
with open(filename, 'rb') as f:
^
SyntaxError: invalid syntax
22:34:31 T:2933631856 M:537915392 INFO: -->End of Python script error report<--
22:34:31 T:2933631856 M:537661440 DEBUG: xbp_dlopen loading python lib /usr/lib/xbmc/system/python/python24.zip/time.so. flags: 2
22:34:31 T:2933631856 M:537661440 DEBUG: Loading: /home/guy/.xbmc/temp/time.so
22:34:31 T:2933631856 M:537661440 DEBUG: RegisterExtensionLib, adding time.so (0x984a3e0)
22:34:31 T:2933631856 M:537661440 DEBUG: xbp_dlsym - load symbol inittime
22:34:31 T:2933631856 M:537534464 DEBUG: xbp_dlopen loading python lib /usr/lib/xbmc/system/python/python24.zip/collections.so. flags: 2
22:34:31 T:2933631856 M:537661440 DEBUG: Loading: /home/guy/.xbmc/temp/collections.so
22:34:31 T:2933631856 M:537661440 DEBUG: RegisterExtensionLib, adding collections.so (0x98cacb0)
22:34:31 T:2933631856 M:537661440 DEBUG: xbp_dlsym - load symbol initcollections
22:34:31 T:2933631856 M:537661440 INFO: Python script stopped
22:34:31 T:2933631856 M:537661440 DEBUG: Thread 2933631856 terminating
22:34:31 T:2942024560 M:537661440 DEBUG: WaitOnScriptResult - plugin exited prematurely - terminating
22:34:31 T:3079419776 M:537661440 ERROR: GetDirectory - Error getting plugin://plugin.image.iphoto/
22:34:31 T:3079419776 M:537661440 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.image.iphoto/) failed
22:34:31 T:3079419776 M:537661440 DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/image/)
22:34:31 T:3079419776 M:537661440 DEBUG: ParentPath = []
I'm running XBMC on Ubuntu 11.04 with the iPhoto library networked from a Mac OS X 10.4 smb share. The share is mounted through Ubuntu, not XBMC.
Which I've done by
Code:
sudo mount -t cifs //netbios/directory/ /media/iPhoto/ -o username=username,password=password,file_mode=0777,dir_mode=0777
I've set up the share on the Mac using SharePoint.
I may not have privileges set right for the share when it's mounted but I can browse. I say this because when navigating the share using Nautilus the child-directories are read-only(only the first level down from parent the rest are rw below that)
I have v1.5.1 of the addon installed on the latest build of XBMC. I didn't enabe the SVN Repo when setting up.
Just to make sure; when setting the path for the AlbumData.xml file I only need to set the directory don't I? not select the actual file? (I can only see directories when navigating the 'set path' dialogue in the addon config.
Thanks in advance for any help anyone can give me with this.