jbeluch / xbmc-opencourseware

XBMC addon to watch open courseware from different websites.
GNU General Public License v3.0
2 stars 2 forks source link

XBMC Frodo Support #1

Open eranb opened 11 years ago

eranb commented 11 years ago

I installed the plugin from the master branch on XBMC Frodo rc2 @ ATV2 and it failed to load - got the "Script Failed!" message from XBMC.

Thanks a lot

XBMC.log

01:02:09 T:1070218648   DEBUG: XBMCPureController: Button press remoteAction = 1
01:02:09 T:102244352   DEBUG: CWinEventsIOS: Button press keyID = 6
01:02:09 T:102244352   DEBUG: CAnnouncementManager - Announcement: OnScreensaverDeactivated from xbmc
01:02:09 T:102244352   DEBUG: GOT ANNOUNCEMENT, type: 4, from xbmc, message OnScreensaverDeactivated
01:02:10 T:1070218648   DEBUG: XBMCPureController: Button press remoteAction = 1
01:02:10 T:102244352   DEBUG: CWinEventsIOS: Button press keyID = 6
01:02:10 T:102244352   DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/video/)
01:02:10 T:102244352   DEBUG:   ParentPath = []
01:02:10 T:102244352   DEBUG: ------ Window Deinit () ------
01:02:11 T:1070218648   DEBUG: XBMCPureController: Button press remoteAction = 5
01:02:12 T:102244352   DEBUG: CWinEventsIOS: Button press keyID = 5
01:02:12 T:102244352   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.opencourseware/)
01:02:12 T:102244352   DEBUG:   ParentPath = [addons://sources/video/]
01:02:12 T:804687872   DEBUG: StartScript - calling plugin Open Courseware('plugin://plugin.video.opencourseware/','0','')
01:02:12 T:804687872    INFO: initializing python engine.
01:02:12 T:804687872   DEBUG: new python thread created. id=31
01:02:12 T:804687872   DEBUG: WaitOnScriptResult - waiting on the Open Courseware plugin...
01:02:12 T:805220352   DEBUG: Python thread: start processing
01:02:12 T:805220352  NOTICE: -->Python Interpreter Initialized<--
01:02:12 T:805220352   DEBUG: Process - The source file to load is /var/mobile/Library/Preferences/XBMC/addons/xbmc-opencourseware-master/addon.py
01:02:12 T:805220352   DEBUG: Process - Setting the Python path to /var/mobile/Library/Preferences/XBMC/addons/xbmc-opencourseware-master:/private/var/stash/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.simplejson/lib:/var/mobile/Library/Preferences/XBMC/addons/weather.wunderground/resources/lib/wunderground:/var/mobile/Library/Preferences/XBMC/addons/script.module.beautifulsoup/lib:/private/var/stash/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pil/lib:/var/mobile/Library/Preferences/XBMC/addons/script.common.plugin.cache/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.simple.downloader/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.parsedom/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.xbmcswift2/lib:/private/var/stash/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pysqlite/lib:/var/stash/Applications/XBMC.frappliance/Frameworks:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python26.zip:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-darwin:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-mac:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-mac/lib-scriptpackages:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-tk:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-old:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-dynload:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/site-packages:
01:02:12 T:805220352   DEBUG: Process - Entering source directory /var/mobile/Library/Preferences/XBMC/addons/xbmc-opencourseware-master
01:02:12 T:805220352   DEBUG: Instantiating addon using automatically obtained id of "plugin.video.opencourseware" dependent on version 1.0 of the xbmc.python api
01:02:12 T:102244352   DEBUG: ------ Window Init (DialogBusy.xml) ------
01:02:12 T:805220352  NOTICE: URL:plugin://plugin.video.opencourseware/?name=MIT&mode=11#%28dp0%0AS%27info%27%0Ap1%0A%28dp2%0AS%27plot%27%0Ap3%0AS%27Free+lecture+notes%2C+exams%2C+and+videos+from+MIT.%27%0Ap4%0AsS%27title%27%0Ap5%0AS%27MIT%27%0Ap6%0Ass.
01:02:12 T:805220352  NOTICE: URL:plugin://plugin.video.opencourseware/?name=Yale&mode=20#%28dp0%0AS%27info%27%0Ap1%0A%28dp2%0AS%27plot%27%0Ap3%0AS%27Open+Yale+Courses+provides+free+and+open+access+to+a+selection+of+introductory+courses+taught+by+distinguished+teachers+and+scholars+at+Yale+University.+The+aim+of+the+project+is+to+expand+access+to+educational+materials+for+all+who+wish+to+learn.%27%0Ap4%0AsS%27title%27%0Ap5%0AS%27Yale%27%0Ap6%0Ass.
01:02:12 T:805220352  NOTICE: URL:plugin://plugin.video.opencourseware/?name=MIT+World&mode=30#%28dp0%0AS%27info%27%0Ap1%0A%28dp2%0AS%27plot%27%0Ap3%0AS%22MIT+World+is+a+free+and+open+site+that+provides+on+demand+video+of+significant+public+events+at+MIT.+MIT+World%27s+video+index+contains+more+than+700+videos.%22%0Ap4%0AsS%27title%27%0Ap5%0AS%27MIT+World%27%0Ap6%0Ass.
01:02:12 T:804687872   DEBUG: WaitOnScriptResult- plugin returned successfully
01:02:12 T:805220352    INFO: Scriptresult: Success
01:02:12 T:805220352    INFO: Python script stopped
01:02:12 T:102244352   DEBUG: waiting for python thread 31 to stop
01:02:12 T:102244352   DEBUG: python thread 31 destructed
01:02:12 T:102244352   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
01:02:17 T:1070218648   DEBUG: XBMCPureController: Button press remoteAction = 5
01:02:17 T:102244352   DEBUG: CWinEventsIOS: Button press keyID = 5
01:02:17 T:102244352   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.opencourseware/?mode=11%23(dp0%0aS%27info%27%0ap1%0a(dp2%0aS%27plot%27%0ap3%0aS%27Free%20lecture%20notes%2c%20exams%2c%20and%20videos%20from%20MIT.%27%0ap4%0asS%27title%27%0ap5%0aS%27MIT%27%0ap6%0ass.&name=MIT)
01:02:17 T:102244352   DEBUG:   ParentPath = [plugin://plugin.video.opencourseware/]
01:02:17 T:804687872   DEBUG: StartScript - calling plugin Open Courseware('plugin://plugin.video.opencourseware/','0','?mode=11%23(dp0%0aS%27info%27%0ap1%0a(dp2%0aS%27plot%27%0ap3%0aS%27Free%20lecture%20notes%2c%20exams%2c%20and%20videos%20from%20MIT.%27%0ap4%0asS%27title%27%0ap5%0aS%27MIT%27%0ap6%0ass.&name=MIT')
01:02:17 T:804687872    INFO: initializing python engine.
01:02:17 T:804687872   DEBUG: new python thread created. id=32
01:02:17 T:804687872   DEBUG: WaitOnScriptResult - waiting on the Open Courseware plugin...
01:02:17 T:805220352   DEBUG: Python thread: start processing
01:02:17 T:805220352  NOTICE: -->Python Interpreter Initialized<--
01:02:17 T:805220352   DEBUG: Process - The source file to load is /var/mobile/Library/Preferences/XBMC/addons/xbmc-opencourseware-master/addon.py
01:02:17 T:805220352   DEBUG: Process - Setting the Python path to /var/mobile/Library/Preferences/XBMC/addons/xbmc-opencourseware-master:/private/var/stash/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.simplejson/lib:/var/mobile/Library/Preferences/XBMC/addons/weather.wunderground/resources/lib/wunderground:/var/mobile/Library/Preferences/XBMC/addons/script.module.beautifulsoup/lib:/private/var/stash/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pil/lib:/var/mobile/Library/Preferences/XBMC/addons/script.common.plugin.cache/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.simple.downloader/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.parsedom/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.xbmcswift2/lib:/private/var/stash/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pysqlite/lib:/var/stash/Applications/XBMC.frappliance/Frameworks:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python26.zip:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-darwin:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-mac:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-mac/lib-scriptpackages:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-tk:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-old:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-dynload:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/site-packages:
01:02:17 T:805220352   DEBUG: Process - Entering source directory /var/mobile/Library/Preferences/XBMC/addons/xbmc-opencourseware-master
01:02:17 T:805220352   DEBUG: Instantiating addon using automatically obtained id of "plugin.video.opencourseware" dependent on version 1.0 of the xbmc.python api
01:02:18 T:102244352   DEBUG: ------ Window Init (DialogBusy.xml) ------
01:02:18 T:102244352   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
01:02:18 T:805220352    INFO: Python script stopped
01:02:18 T:804687872   DEBUG:  WaitOnScriptResult - plugin exited prematurely - terminating
01:02:18 T:102244352   ERROR: GetDirectory - Error getting plugin://plugin.video.opencourseware/?mode=11%23(dp0%0aS%27info%27%0ap1%0a(dp2%0aS%27plot%27%0ap3%0aS%27Free%20lecture%20notes%2c%20exams%2c%20and%20videos%20from%20MIT.%27%0ap4%0asS%27title%27%0ap5%0aS%27MIT%27%0ap6%0ass.&name=MIT
01:02:18 T:102244352   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.opencourseware/?mode=11%23(dp0%0aS%27info%27%0ap1%0a(dp2%0aS%27plot%27%0ap3%0aS%27Free%20lecture%20notes%2c%20exams%2c%20and%20videos%20from%20MIT.%27%0ap4%0asS%27title%27%0ap5%0aS%27MIT%27%0ap6%0ass.&name=MIT) failed
01:02:18 T:102244352   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.opencourseware/)
01:02:18 T:102244352   DEBUG:   ParentPath = [addons://sources/video/]
01:02:18 T:804687872   DEBUG: StartScript - calling plugin Open Courseware('plugin://plugin.video.opencourseware/','0','')
01:02:18 T:804687872    INFO: initializing python engine.
01:02:18 T:804687872   DEBUG: new python thread created. id=33
01:02:18 T:804687872   DEBUG: WaitOnScriptResult - waiting on the Open Courseware plugin...
01:02:18 T:805220352   DEBUG: Python thread: start processing
01:02:18 T:805220352  NOTICE: -->Python Interpreter Initialized<--
01:02:18 T:805220352   DEBUG: Process - The source file to load is /var/mobile/Library/Preferences/XBMC/addons/xbmc-opencourseware-master/addon.py
01:02:18 T:805220352   DEBUG: Process - Setting the Python path to /var/mobile/Library/Preferences/XBMC/addons/xbmc-opencourseware-master:/private/var/stash/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.simplejson/lib:/var/mobile/Library/Preferences/XBMC/addons/weather.wunderground/resources/lib/wunderground:/var/mobile/Library/Preferences/XBMC/addons/script.module.beautifulsoup/lib:/private/var/stash/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pil/lib:/var/mobile/Library/Preferences/XBMC/addons/script.common.plugin.cache/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.simple.downloader/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.parsedom/lib:/var/mobile/Library/Preferences/XBMC/addons/script.module.xbmcswift2/lib:/private/var/stash/Applications/XBMC.frappliance/XBMCData/XBMCHome/addons/script.module.pysqlite/lib:/var/stash/Applications/XBMC.frappliance/Frameworks:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python26.zip:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-darwin:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-mac:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/plat-mac/lib-scriptpackages:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-tk:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-old:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/lib-dynload:/var/stash/Applications/XBMC.frappliance/Frameworks/lib/python2.6/site-packages:
01:02:18 T:805220352   DEBUG: Process - Entering source directory /var/mobile/Library/Preferences/XBMC/addons/xbmc-opencourseware-master
01:02:18 T:805220352   DEBUG: Instantiating addon using automatically obtained id of "plugin.video.opencourseware" dependent on version 1.0 of the xbmc.python api
01:02:19 T:102244352   DEBUG: ------ Window Init (DialogBusy.xml) ------
01:02:19 T:102244352   DEBUG: waiting for python thread 32 to stop
01:02:19 T:102244352   DEBUG: python thread 32 destructed
01:02:19 T:805220352  NOTICE: URL:plugin://plugin.video.opencourseware/?name=MIT&mode=11#%28dp0%0AS%27info%27%0Ap1%0A%28dp2%0AS%27plot%27%0Ap3%0AS%27Free+lecture+notes%2C+exams%2C+and+videos+from+MIT.%27%0Ap4%0AsS%27title%27%0Ap5%0AS%27MIT%27%0Ap6%0Ass.
01:02:19 T:805220352  NOTICE: URL:plugin://plugin.video.opencourseware/?name=Yale&mode=20#%28dp0%0AS%27info%27%0Ap1%0A%28dp2%0AS%27plot%27%0Ap3%0AS%27Open+Yale+Courses+provides+free+and+open+access+to+a+selection+of+introductory+courses+taught+by+distinguished+teachers+and+scholars+at+Yale+University.+The+aim+of+the+project+is+to+expand+access+to+educational+materials+for+all+who+wish+to+learn.%27%0Ap4%0AsS%27title%27%0Ap5%0AS%27Yale%27%0Ap6%0Ass.
01:02:19 T:805220352  NOTICE: URL:plugin://plugin.video.opencourseware/?name=MIT+World&mode=30#%28dp0%0AS%27info%27%0Ap1%0A%28dp2%0AS%27plot%27%0Ap3%0AS%22MIT+World+is+a+free+and+open+site+that+provides+on+demand+video+of+significant+public+events+at+MIT.+MIT+World%27s+video+index+contains+more+than+700+videos.%22%0Ap4%0AsS%27title%27%0Ap5%0AS%27MIT+World%27%0Ap6%0Ass.
01:02:19 T:804687872   DEBUG: WaitOnScriptResult- plugin returned successfully
01:02:19 T:102244352   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
01:02:19 T:805220352    INFO: Scriptresult: Success
01:02:19 T:805220352    INFO: Python script stopped
01:02:19 T:102244352   DEBUG: waiting for python thread 33 to stop
01:02:19 T:102244352   DEBUG: python thread 33 destructed
strk commented 9 years ago

I have frodo too, and am interested in this plugin :) Did you solve the problem lately @eranb ?

strk commented 9 years ago

My log from XBMC 12.2:

18:29:39 T:2765093744  NOTICE: -->Python Interpreter Initialized<--
18:29:39 T:2765093744   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.AssertionError'>
                                            Error Contents: Specified mode 11#(dp0
                                            S'info'
                                            p1
                                            (dp2
                                            S'plot'
                                            p3
                                            S'Free lecture notes, exams, and videos from MIT.'
                                            p4
                                            sS'title'
                                            p5
                                            S'MIT'
                                            p6
                                            ss. not found in self.modes
                                            Traceback (most recent call last):
                                              File "/home/pepperlight/.xbmc/addons/xbmc-opencourseware-master/addon.py", line 68, in <module>
                                                app.run()
                                              File "/home/pepperlight/.xbmc/addons/xbmc-opencourseware-master/resources/lib/xbmcvideoplugin.py", line 174, in run
                                                assert mode in self.modes.keys(), 'Specified mode %s not found in self.modes' % mode
                                            AssertionError: Specified mode 11#(dp0
                                            S'info'
                                            p1
                                            (dp2
                                            S'plot'
                                            p3
                                            S'Free lecture notes, exams, and videos from MIT.'
                                            p4
                                            sS'title'
                                            p5
                                            S'MIT'
                                            p6
                                            ss. not found in self.modes
                                            -->End of Python script error report<--
18:29:39 T:3078174512   ERROR: GetDirectory - Error getting plugin://plugin.video.opencourseware/?mode=11%23(dp0%0aS%27info%27%0ap1%0a(dp2%0aS%27plot%27%0ap3%0aS%27Free%20lecture%20notes%2c%20exams%2c%20and%20videos%20from%20MIT.%27%0ap4%0asS%27title%27%0ap5%0aS%27MIT%27%0ap6%0ass.&name=MIT
18:29:39 T:3078174512   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.opencourseware/?mode=11%23(dp0%0aS%27info%27%0ap1%0a(dp2%0aS%27plot%27%0ap3%0aS%27Free%20lecture%20notes%2c%20exams%2c%20and%20videos%20from%20MIT.%27%0ap4%0asS%27title%27%0ap5%0aS%27MIT%27%0ap6%0ass.&name=MIT) failed
strk commented 9 years ago

Python 2.7.6 here

strk commented 9 years ago

Actually, the same error I reported happens with kodi (14.0), same python version