2011-05-13, 14:32
Unfortunately, the update brakes functionality for me. On starting up an error about addon.py shows up. This is shown in the log, but it's unclear to me what's wrong. I'm running XBMC on snow leopard on a macbook pro.
Edit: I just found out that snow leopard has a 2.6.1 python in /usr/bin/ and that I have version 2.7 in /Library/Frameworks/Python.framework/Versions/2.7/bin/python
It seems XBMC is shipped with its own python version, 2.4. And that version doesn't support the 'with ... as' syntax used. (it's supported since version 2.5, as stated in this thread: http://stackoverflow.com/questions/26850...hon-newbie)
Code:
14:27:41 T:2953850880 M:288849920 NOTICE: -->Python Interpreter Initialized<--
14:27:41 T:2953850880 M:288849920 ERROR: Error Type: exceptions.SyntaxError
14:27:41 T:2953850880 M:288849920 ERROR: Error Contents: ('invalid syntax', ('/Users/hildebrandsoethoudt/Library/Application Support/XBMC/addons/plugin.image.iphoto/addon.py', 77, 13, " with open(filename, 'rb') as f:\n"))
14:27:41 T:2953850880 M:288808960 ERROR: File "/Users/hildebrandsoethoudt/Library/Application Support/XBMC/addons/plugin.image.iphoto/addon.py", line 77
with open(filename, 'rb') as f:
^
SyntaxError: invalid syntax
14:27:42 T:2691777856 M:288108544 ERROR: GetDirectory - Error getting plugin://plugin.image.iphoto/
14:27:42 T:2691777856 M:288108544 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.image.iphoto/) failed
Edit: I just found out that snow leopard has a 2.6.1 python in /usr/bin/ and that I have version 2.7 in /Library/Frameworks/Python.framework/Versions/2.7/bin/python
It seems XBMC is shipped with its own python version, 2.4. And that version doesn't support the 'with ... as' syntax used. (it's supported since version 2.5, as stated in this thread: http://stackoverflow.com/questions/26850...hon-newbie)