moreginger / xbmc-plugin.video.ted.talks

GNU General Public License v2.0
18 stars 20 forks source link

Cannot load newest talk #8

Closed jbisson closed 12 years ago

jbisson commented 12 years ago

I can load themes but when I click newest talks, after 10-20seconds, getting a script error, here's the log,

full log dump can be found here: http://www.2shared.com/file/oiH5bGfa/xbmc.html

Found in version: 2.3.0 win x64 7

20:58:12 T:832 NOTICE: -->Python Interpreter Initialized<-- 20:58:12 T:832 DEBUG: XBPyThread::Process - The source file to load is C:\Users\jonathan\AppData\Roaming\XBMC\addons\moreginger-xbmc-plugin.video.ted.talks-4b0a5a9\default.py 20:58:12 T:832 DEBUG: XBPyThread::Process - Setting the Python path to C:\Users\jonathan\AppData\Roaming\XBMC\addons\moreginger-xbmc-plugin.video.ted.talks-4b0a5a9;C:\Users\jonathan\AppData\Roaming\XBMC\addons\script.module.xbmcswift\lib;C:\Users\jonathan\AppData\Roaming\XBMC\addons\script.module.simplejson\lib;C:\Users\jonathan\AppData\Roaming\XBMC\addons\script.module.beautifulsoup\lib;C:\Program Files\XBMC\addons\script.module.pil\lib;C:\Users\jonathan\AppData\Roaming\XBMC\addons\script.common.plugin.cache\lib;C:\Users\jonathan\AppData\Roaming\XBMC\addons\script.module.simple.downloader\lib;C:\Users\jonathan\AppData\Roaming\XBMC\addons\script.module.parsedom\lib;C:\Users\jonathan\AppData\Roaming\XBMC\addons\script.web.viewer\lib;C:\Users\jonathan\AppData\Roaming\XBMC\addons\script.module.elementtree\lib;C:\Program Files\XBMC\addons\script.module.pysqlite\lib;C:\Program Files\XBMC\system\python\DLLs;C:\Program Files\XBMC\system\python\Lib;C:\Program Files\XBMC\python26.zip;C:\Program Files\XBMC\system\python\lib\plat-win;C:\Program Files\XBMC\system\python\lib\lib-tk;C:\Program Files\XBMC;C:\Program Files\XBMC\system\python;C:\Program Files\XBMC\system\python\lib\site-packages; 20:58:12 T:832 DEBUG: XBPyThread::Process - Entering source directory C:\Users\jonathan\AppData\Roaming\XBMC\addons\moreginger-xbmc-plugin.video.ted.talks-4b0a5a9 20:58:12 T:832 DEBUG: Instantiating addon using automatically obtained id of "plugin.video.ted.talks" dependent on version 1.0 of the xbmc.python api 20:58:12 T:832 NOTICE: [PLUGIN] 'TED Talks: version 2.3.0' initialized! 20:58:12 T:4116 DEBUG: ------ Window Init (DialogBusy.xml) ------ 20:58:12 T:832 ERROR: C:\Program Files\XBMC\system\python\Lib\multiprocessing\process.py:25: DeprecationWarning: os.getcwd() currently lies to you so please use addon.getAddonInfo('path') to find the script's root directory and DO NOT make relative path accesses based on the results of 'os.getcwd.' ORIGINAL_DIR = os.path.abspath(os.getcwd()) 20:58:13 T:832 ERROR: C:\Program Files\XBMC\system\python\Lib\tempfile.py:162: DeprecationWarning: os.getcwd() currently lies to you so please use addon.getAddonInfo('path') to find the script's root directory and DO NOT make relative path accesses based on the results of 'os.getcwd.' dirlist.append(_os.getcwd()) 20:58:13 T:3004 INFO: Loading skin file: DialogProgress.xml 20:58:13 T:3004 DEBUG: DialogProgress::StartModal called 20:58:13 T:3004 DEBUG: ------ Window Init (DialogProgress.xml) ------ 20:58:29 T:4116 DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib.dll) 20:58:29 T:4116 INFO: XCURL::DllLibCurlGlobal::CheckIdle - Closing session to http://images.ted.com (easy=00B14B60, multi=005D79E0) 20:58:42 T:956 DEBUG: Thread Jobworker 956 terminating (autodelete) 20:58:42 T:5240 DEBUG: Thread Jobworker 5240 terminating (autodelete) 20:58:43 T:832 INFO: -->Python script returned the following error<-- 20:58:43 T:832 ERROR: Error Type: <class 'multiprocessing.TimeoutError'> 20:58:43 T:832 ERROR: Error Contents: 20:58:43 T:832 ERROR: Traceback (most recent call last): File "C:\Users\jonathan\AppData\Roaming\XBMC\addons\moreginger-xbmc-plugin.video.ted.talks-4b0a5a9\default.py", line 15, in ted_talks.Main(logger = plugin.log, args_map = args_map).run() File "C:\Users\jonathan\AppData\Roaming\XBMC\addons\moreginger-xbmc-plugin.video.ted.talks-4b0a5a9\resources\lib\ted_talks.py", line 228, in run ui.newTalksRss() File "C:\Users\jonathan\AppData\Roaming\XBMC\addons\moreginger-xbmc-plugin.video.ted.talks-4b0a5a9\resources\lib\ted_talks.py", line 108, in newTalksRss for talk in newTalks.get_new_talks(): File "C:\Users\jonathan\AppData\Roaming\XBMC\addons\moreginger-xbmc-plugin.video.ted.talks-4b0a5a9\resources\lib\model\rss_scraper.py", line 86, in get_new_talks rss = documentFetcher(None) # Is this evil? We have to pass something into the lambda. File "C:\Users\jonathan\AppData\Roaming\XBMC\addons\moreginger-xbmc-plugin.video.ted.talks-4b0a5a9\resources\lib\model\rss_scraper.py", line 79, in document_fetchers.append(lambda x: result.get(30)) File "C:\Program Files\XBMC\system\python\Lib\multiprocessing\pool.py", line 418, in get raise TimeoutError TimeoutError 20:58:43 T:832 INFO: -->End of Python script error report<-- 20:58:43 T:4116 DEBUG: ------ Window Init (DialogKaiToast.xml) ------ 20:58:43 T:832 INFO: Python script stopped

moreginger commented 12 years ago

Thanks man.

multiprocessing really doesn't want to work on Windows does it? I've replicated it myself now, and I think the only option for now is to disable it - it doesn't affect performance greatly anyway. Disabled in 5d019d34b2b0f906cec3101a3e9a7943756d18e9 (master only for now).

If something happens on http://trac.xbmc.org/ticket/12679 then I'll try and put it back in.

moreginger commented 12 years ago

abuck: Could you let me know if the latest code from the master branch is working for you? I don't want to request another pull of broken code :)

jbisson commented 12 years ago

latest code fixed this issue as well as the dupplicate one :) thanks buddy, everything works out now !