Hi exobuzz
My issue with Modland plugin not working on kodi 15.2 android installation was solved following your indication:
exobuzz Wrote:looks like a problem in python on your android set up. Please use the
forum though - I do not offer email support and it would be a bad idea
since no-one else could benefit from my answers.
Also you don't need to manually install it from github, it is included
in the main Kodi repository.
To work around it you could edit default.py and change the line that says
__user_agent__ = 'XBMC/' + __xbmc_version__ + ' (' + platform.platform()
+ ') Modland/' + __version__
to
__user_agent__ = 'XBMC/' + __xbmc_version__ + ' ( Android ) Modland/' +
__version__
which avoids the python platform.platform() call that is throwing an error.
The issue was plugin doesn' start.
Same problem in 2 different kodi 15.2 android installations and plugin from main Kodi repository
Code:
00:55:01 T:1107184056 DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/audio/)
00:55:01 T:1107184056 DEBUG: ParentPath = []
00:55:01 T:2009373416 NOTICE: Thread BackgroundLoader start, auto delete: false
00:55:01 T:2009373416 DEBUG: Saving fileitems [addons://sources/audio]
00:55:01 T:2009373416 DEBUG: -- items: 7, sort method: 0, ascending: false
00:55:01 T:2009373416 DEBUG: Thread BackgroundLoader 2009373416 terminating
00:55:01 T:1107184056 DEBUG: RetrieveMusicInfo() took 50 msec
00:55:01 T:2048660648 NOTICE: Thread BackgroundLoader start, auto delete: false
00:55:01 T:1107184056 DEBUG: Unfocus WindowID: 10501, ControlID: 50
00:55:01 T:2048660648 DEBUG: Thread BackgroundLoader 2048660648 terminating
00:55:02 T:2008921256 NOTICE: Thread Timer start, auto delete: false
00:55:02 T:2008921256 DEBUG: Thread Timer 2008921256 terminating
00:55:03 T:1107184056 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.audio.modland/)
00:55:03 T:1107184056 DEBUG: ParentPath = [addons://sources/audio]
00:55:03 T:1821512056 DEBUG: bool XFILE::CPluginDirectory::StartScript(const string&, bool) - calling plugin Modland('plugin://plugin.audio.modland/','1','')
00:55:03 T:1821512056 DEBUG: bool XFILE::CPluginDirectory::WaitOnScriptResult(const string&, int, const string&, bool) - waiting on the Modland (id=9) plugin...
00:55:03 T:2008921256 NOTICE: Thread LanguageInvoker start, auto delete: false
00:55:03 T:2008921256 INFO: initializing python engine.
00:55:03 T:2008921256 DEBUG: CPythonInvoker(9, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.audio.modland/default.py): start processing
00:55:03 T:2008921256 NOTICE: -->Python Interpreter Initialized<--
00:55:03 T:2008921256 DEBUG: CPythonInvoker(9, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.audio.modland/default.py): the source file to load is "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.audio.modland/default.py"
00:55:03 T:2008921256 DEBUG: CPythonInvoker(9, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.audio.modland/default.py): setting the Python path to /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.audio.modland:/:/data/app/org.xbmc.kodi-2/base.apk/assets/python2.6/lib/python26.zip:/data/app/org.xbmc.kodi-2/base.apk/assets/python2.6/lib/python2.6:/data/app/org.xbmc.kodi-2/base.apk/assets/python2.6/lib/python2.6/plat-linux3:/data/app/org.xbmc.kodi-2/base.apk/assets/python2.6/lib/python2.6/lib-tk:/data/app/org.xbmc.kodi-2/base.apk/assets/python2.6/lib/python2.6/lib-old:/data/app/org.xbmc.kodi-2/base.apk/assets/python2.6/lib/python2.6/lib-dynload
00:55:03 T:2008921256 DEBUG: CPythonInvoker(9, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.audio.modland/default.py): entering source directory /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.audio.modland
00:55:03 T:2008921256 DEBUG: CPythonInvoker(9, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.audio.modland/default.py): instantiating addon using automatically obtained id of "plugin.audio.modland" dependent on version 2.1.0 of the xbmc.python api
00:55:03 T:2008921256 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IOError'>
Error Contents: [Errno 21] Is a directory: '/'
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.audio.modland/default.py", line 14, in <module>
__user_agent__ = 'XBMC/' + __xbmc_version__ + ' (' + platform.platform() + ') Modland/' + __version__
File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-17/lib/python2.6/platform.py", line 1513, in platform
File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-17/lib/python2.6/platform.py", line 147, in libc_ver
IOError: [Errno 21] Is a directory: '/'
-->End of Python script error report<--
00:55:03 T:2008921256 INFO: Python script stopped
00:55:03 T:2008921256 DEBUG: Thread LanguageInvoker 2008921256 terminating
00:55:03 T:1821512056 DEBUG: bool XFILE::CPluginDirectory::WaitOnScriptResult(const string&, int, const string&, bool) - plugin exited prematurely - terminating
00:55:03 T:1107184056 ERROR: static bool XFILE::CDirectory::GetDirectory(const CURL&, CFileItemList&, const XFILE::CDirectory::CHints&, bool) - Error getting plugin://plugin.audio.modland/
00:55:03 T:1107184056 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.modland/) failed
00:55:03 T:1107184056 DEBUG: CGUIMediaWindow::GetDirectory (addons://sources/audio)
00:55:03 T:1107184056 DEBUG: ParentPath = []
00:55:03 T:2010693280 NOTICE: Thread BackgroundLoader start, auto delete: false
00:55:03 T:2010693280 DEBUG: Loading items: 6, directory: addons://sources/audio sort method: 0, ascending: false
00:55:03 T:2010693280 DEBUG: Saving fileitems [addons://sources/audio]
00:55:03 T:2010693280 DEBUG: -- items: 7, sort method: 0, ascending: false
00:55:03 T:2010693280 DEBUG: Thread BackgroundLoader 2010693280 terminating
00:55:03 T:1107184056 DEBUG: RetrieveMusicInfo() took 30 msec
00:55:03 T:2008377576 NOTICE: Thread BackgroundLoader start, auto delete: false
00:55:03 T:1107184056 DEBUG: Unfocus WindowID: 10501, ControlID: 50
00:55:03 T:1107184056 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
00:55:03 T:2008377576 DEBUG: Thread BackgroundLoader 2008377576 terminating
00:55:04 T:1107184056 INFO: void XCURL::DllLibCurlGlobal::CheckIdle() - Closing session to http://www.cutandpasta.it (easy=0x793231d8, multi=0x0)
00:55:05 T:2048587608 NOTICE: Thread Timer start, auto delete: false
00:55:05 T:2048587608 DEBUG: Thread Timer 2048587608 terminating
Thanks for all!!!