Skip to content

Instantly share code, notes, and snippets.

@oranheim
Created May 1, 2016 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oranheim/713a483930c3299d6422edf272a48a90 to your computer and use it in GitHub Desktop.
Save oranheim/713a483930c3299d6422edf272a48a90 to your computer and use it in GitHub Desktop.
Shield ATV SPMC v16.3.0 error loading subtitles
11:54:11 T:1394358576 DEBUG: New Service [service.subtitles.podnapisi]
11:54:11 T:1395423536 DEBUG: bool XFILE::CPluginDirectory::StartScript(const string&, bool) - calling plugin Podnapisi.net('plugin://service.subtitles.podnapisi/','1','?action=search&languages=English%2cNorwegian%20Bokm%c3%a5l&preferredlanguage=Norwegian%20Bokm%c3%a5l')
11:54:11 T:1395423536 DEBUG: bool XFILE::CPluginDirectory::WaitOnScriptResult(const string&, int, const string&, bool) - waiting on the Podnapisi.net (id=0) plugin...
11:54:11 T:1394358576 DEBUG: ------ Window Init (DialogSeekBar.xml) ------
11:54:11 T:1442707760 DEBUG: Thread LanguageInvoker start, auto delete: false
11:54:11 T:1442707760 INFO: initializing python engine.
11:54:11 T:1394358576 DEBUG: SECTION:LoadDLL(libImageLib-arm.so)
11:54:11 T:1394358576 DEBUG: Loading: /data/app/com.semperpax.spmc16-2/lib/arm/libImageLib-arm.so
11:54:11 T:1442707760 DEBUG: CPythonInvoker(0, /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.podnapisi/service.py): start processing
11:54:11 T:1394358576 DEBUG: ------ Window Deinit (VideoOSD.xml) ------
11:54:11 T:1442707760 DEBUG: -->Python Interpreter Initialized<--
11:54:11 T:1442707760 DEBUG: CPythonInvoker(0, /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.podnapisi/service.py): the source file to load is "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.podnapisi/service.py"
11:54:11 T:1442707760 DEBUG: CPythonInvoker(0, /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.podnapisi/service.py): setting the Python path to /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.podnapisi:/:/data/app/com.semperpax.spmc16-2/base.apk/assets/python2.6/lib/python26.zip:/data/app/com.semperpax.spmc16-2/base.apk/assets/python2.6/lib/python2.6:/data/app/com.semperpax.spmc16-2/base.apk/assets/python2.6/lib/python2.6/plat-linux3:/data/app/com.semperpax.spmc16-2/base.apk/assets/python2.6/lib/python2.6/lib-tk:/data/app/com.semperpax.spmc16-2/base.apk/assets/python2.6/lib/python2.6/lib-old:/data/app/com.semperpax.spmc16-2/base.apk/assets/python2.6/lib/python2.6/lib-dynload
11:54:11 T:1442707760 DEBUG: CPythonInvoker(0, /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.podnapisi/service.py): entering source directory /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.podnapisi
11:54:11 T:1442707760 DEBUG: CPythonInvoker(0, /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.podnapisi/service.py): instantiating addon using automatically obtained id of "service.subtitles.podnapisi" dependent on version 2.1.0 of the xbmc.python api
11:54:11 T:1442707760 DEBUG: ### [service.subtitles.podnapisi] - action 'search' called
11:54:11 T:1442707760 ERROR: /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.podnapisi/resources/lib/pn_utilities.py:103: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
if lang == x[lang_from] :
11:54:11 T:1442707760 DEBUG: ### [service.subtitles.podnapisi] - Hash Standard file
11:54:11 T:1442707760 DEBUG: CSMBFile::Open - opened smb://192.168.0.163/Movies/Videos/MYMOVIE.mkv, fd=10001
11:54:11 T:1442707760 DEBUG: CSMBFile::Close closing fd 10001
11:54:11 T:1442707760 DEBUG: CSMBFile::Open - opened smb://192.168.0.163/Movies/Videos/MYMOVIE.mkv, fd=10001
11:54:11 T:1442707760 DEBUG: CSMBFile::Close closing fd 10001
11:54:11 T:1442707760 DEBUG: ### [service.subtitles.podnapisi] - xbmc module OShash
11:54:11 T:1442707760 DEBUG: ### [service.subtitles.podnapisi] - Search for [MYMOVIE.mkv] by name
11:54:11 T:1442707760 ERROR: Error loading addon settings to special://profile/addon_data/service.subtitles.podnapisi/settings.xml
11:54:11 T:1442707760 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: sequence item 1: expected string, NoneType found
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.podnapisi/service.py", line 178, in <module>
Search(item)
File "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.podnapisi/service.py", line 44, in Search
subtitles_list = pn_server.SearchSubtitlesWeb(item)
File "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.podnapisi/resources/lib/pn_utilities.py", line 276, in SearchSubtitlesWeb
','.join(item['3let_language']),
TypeError: sequence item 1: expected string, NoneType found
-->End of Python script error report<--
11:54:11 T:1394358576 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
11:54:11 T:1442707760 INFO: Python script stopped
11:54:11 T:1442707760 DEBUG: Thread LanguageInvoker 1442707760 terminating
11:54:11 T:1395423536 DEBUG: bool XFILE::CPluginDirectory::WaitOnScriptResult(const string&, int, const string&, bool) - plugin exited prematurely - terminating
11:54:11 T:1395423536 ERROR: static bool XFILE::CDirectory::GetDirectory(const CURL&, CFileItemList&, const XFILE::CDirectory::CHints&, bool) - Error getting plugin://service.subtitles.podnapisi/?action=search&languages=English%2cNorwegian%20Bokm%c3%a5l&preferredlanguage=Norwegian%20Bokm%c3%a5l
11:54:14 T:1394358576 DEBUG: Keyboard: scancode: 0x14, sym: 0x0112, unicode: 0x0000, modifier: 0x0
11:54:14 T:1394358576 DEBUG: bool CInputManager::OnKey(const CKey&): down (0xf081) pressed, action is Down
11:54:15 T:1394358576 DEBUG: Keyboard: scancode: 0x14, sym: 0x0112, unicode: 0x0000, modifier: 0x0
11:54:15 T:1394358576 DEBUG: bool CInputManager::OnKey(const CKey&): down (0xf081) pressed, action is Down
11:54:16 T:1394358576 DEBUG: Keyboard: scancode: 0x17, sym: 0x000d, unicode: 0x0000, modifier: 0x0
11:54:16 T:1394358576 DEBUG: bool CInputManager::OnKey(const CKey&): return (0xf00d) pressed, action is Select
11:54:16 T:1394358576 DEBUG: New Service [service.subtitles.opensubtitles]
11:54:16 T:1395423536 DEBUG: bool XFILE::CPluginDirectory::StartScript(const string&, bool) - calling plugin OpenSubtitles.org('plugin://service.subtitles.opensubtitles/','2','?action=search&languages=English%2cNorwegian%20Bokm%c3%a5l&preferredlanguage=Norwegian%20Bokm%c3%a5l')
11:54:16 T:1395423536 DEBUG: bool XFILE::CPluginDirectory::WaitOnScriptResult(const string&, int, const string&, bool) - waiting on the OpenSubtitles.org (id=1) plugin...
11:54:16 T:1442707760 DEBUG: Thread LanguageInvoker start, auto delete: false
11:54:16 T:1442707760 INFO: initializing python engine.
11:54:16 T:1442707760 DEBUG: CPythonInvoker(1, /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.opensubtitles/service.py): start processing
11:54:16 T:1442707760 DEBUG: -->Python Interpreter Initialized<--
11:54:16 T:1442707760 DEBUG: CPythonInvoker(1, /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.opensubtitles/service.py): the source file to load is "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.opensubtitles/service.py"
11:54:16 T:1442707760 DEBUG: CPythonInvoker(1, /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.opensubtitles/service.py): setting the Python path to /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.opensubtitles:/:/data/app/com.semperpax.spmc16-2/base.apk/assets/python2.6/lib/python26.zip:/data/app/com.semperpax.spmc16-2/base.apk/assets/python2.6/lib/python2.6:/data/app/com.semperpax.spmc16-2/base.apk/assets/python2.6/lib/python2.6/plat-linux3:/data/app/com.semperpax.spmc16-2/base.apk/assets/python2.6/lib/python2.6/lib-tk:/data/app/com.semperpax.spmc16-2/base.apk/assets/python2.6/lib/python2.6/lib-old:/data/app/com.semperpax.spmc16-2/base.apk/assets/python2.6/lib/python2.6/lib-dynload
11:54:16 T:1442707760 DEBUG: CPythonInvoker(1, /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.opensubtitles/service.py): entering source directory /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.opensubtitles
11:54:16 T:1442707760 DEBUG: CPythonInvoker(1, /storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.opensubtitles/service.py): instantiating addon using automatically obtained id of "service.subtitles.opensubtitles" dependent on version 2.1.0 of the xbmc.python api
11:54:16 T:1442707760 DEBUG: ### [__main__] - action 'search' called
11:54:16 T:1442707760 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeEncodeError'>
Error Contents: 'ascii' codec can't encode character u'\xe5' in position 14: ordinal not in range(128)
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/com.semperpax.spmc16/files/.spmc/addons/service.subtitles.opensubtitles/service.py", line 154, in <module>
lan = xbmc.convertLanguage(lang,xbmc.ISO_639_2)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 14: ordinal not in range(128)
-->End of Python script error report<--
11:54:16 T:1442707760 INFO: Python script stopped
11:54:16 T:1442707760 DEBUG: Thread LanguageInvoker 1442707760 terminating
11:54:16 T:1395423536 DEBUG: bool XFILE::CPluginDirectory::WaitOnScriptResult(const string&, int, const string&, bool) - plugin exited prematurely - terminating
11:54:16 T:1395423536 ERROR: static bool XFILE::CDirectory::GetDirectory(const CURL&, CFileItemList&, const XFILE::CDirectory::CHints&, bool) - Error getting plugin://service.subtitles.opensubtitles/?action=search&languages=English%2cNorwegian%20Bokm%c3%a5l&preferredlanguage=Norwegian%20Bokm%c3%a5l
11:54:21 T:1394358576 DEBUG: Keyboard: scancode: 0x04, sym: 0x0008, unicode: 0x0000, modifier: 0x0
11:54:21 T:1394358576 DEBUG: bool CInputManager::OnKey(const CKey&): backspace (0xf008) pressed, action is Back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment