2018-02-13, 10:32
I adapt my addon for compatibility with 2/3 python using "future" lib. At the Windows addon works correct, but on Android (KODI 17.6) addon throw an exception:
Is there any way to fix this problem?
Here is full log with enabled debugging: https://filebin.net/5d1zdt7ua1o0plgj/kodi.log
Code:
20:01:12.431 T:548121456640 NOTICE: Starting Kodi (17.6 Git:20171119-ced5097). Platform: Android ARM 64-bit
20:01:12.431 T:548121456640 NOTICE: Using Release Kodi x64 build
20:01:12.431 T:548121456640 NOTICE: Kodi compiled Nov 19 2017 by GCC 4.9.0 for Android ARM 64-bit API level 21 (API level 21)
20:01:12.432 T:548121456640 NOTICE: Running on Meizu m2 with Android 5.1.0 API level 22, kernel: Linux ARM 64-bit version 3.10.65+
20:01:12.432 T:548121456640 NOTICE: Host CPU: AArch64 Processor rev 3 (aarch64), 4 cores available
20:01:12.435 T:548121456640 NOTICE: Local hostname: localhost
20:01:12.436 T:548121456640 NOTICE: -----------------------------------------------------------------------
20:01:16.107 T:547574775808 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: (20, 'Not a directory', '/data/app/org.xbmc.kodi-1/base.apk/assets/python2.7/lib/python2.7/lib2to3/Grammar.txt')
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/weather.gismeteo/default.py", line 14, in <module>
from resources.lib.utilities import *
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/weather.gismeteo/resources/lib/utilities.py", line 7, in <module>
from .simpleweather import Weather
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/weather.gismeteo/resources/lib/simpleweather.py", line 6, in <module>
from past.types import basestring
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.future/libs/past/__init__.py", line 88, in <module>
from past.translation import install_hooks as autotranslate
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.future/libs/past/translation/__init__.py", line 42, in <module>
from lib2to3.refactor import RefactoringTool
File "/home/jenkins/workspace/Android-ARM64/tools/depends/xbmc-depends/aarch64-linux-android-android-21/lib/python2.7/lib2to3/refactor.py", line 27, in <module>
File "/home/jenkins/workspace/Android-ARM64/tools/depends/xbmc-depends/aarch64-linux-android-android-21/lib/python2.7/lib2to3/fixer_util.py", line 9, in <module>
File "/home/jenkins/workspace/Android-ARM64/tools/depends/xbmc-depends/aarch64-linux-android-android-21/lib/python2.7/lib2to3/pygram.py", line 32, in <module>
File "/home/jenkins/workspace/Android-ARM64/tools/depends/xbmc-depends/aarch64-linux-android-android-21/lib/python2.7/lib2to3/pgen2/driver.py", line 121, in load_grammar
File "/home/jenkins/workspace/Android-ARM64/tools/depends/xbmc-depends/aarch64-linux-android-android-21/lib/python2.7/lib2to3/pgen2/pgen.py", line 385, in generate_grammar
File "/home/jenkins/workspace/Android-ARM64/tools/depends/xbmc-depends/aarch64-linux-android-android-21/lib/python2.7/lib2to3/pgen2/pgen.py", line 15, in __init__
IOError: (20, 'Not a directory', '/data/app/org.xbmc.kodi-1/base.apk/assets/python2.7/lib/python2.7/lib2to3/Grammar.txt')
-->End of Python script error report<--
Here is full log with enabled debugging: https://filebin.net/5d1zdt7ua1o0plgj/kodi.log