-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error Type: <type 'exceptions.IOError'> #134
Comments
Got exactly the same problem on my AFTV 1. generation. Last successful run was 09-29-2019. |
Tried the same plugin with a RPi3 / Kodi 18.2 without any issues. So it seems that this has something to do with the hardware or how they treat the python scripts. |
No changes on hardware and software, Android, Kodi 18.4. Got the error since some days, similar to the one as sju10544 has gotten, but small diffs ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
It may be the result of a server side change, not sure... |
May be the *.gz isn't available for download anymore. |
Sorry do disagree but on 2019-10-09 13:49:06.224 T:1937436688 NOTICE: Starting Kodi (18.2 Git:newclock5_18.2-Leia). Platform: Linux ARM 32-bit |
Der Fehler ist konstant, kann helfen, diesen zu korrigieren, habe Erfahrung. (Linux, C, Perl, Android)... |
Gerne ein PR machen. |
PR für irgendetwas zu machen, ist mit vollkommen fremd, sorry :( |
Kannst auch versuchen den Fehler zu lokalisieren und beschreiben wo der Fehler ist oder behoben werden könnte. |
I have exactly the same ERROR like @sju10544 on FIRETV Stick gen. 1 running KODI 17.6. No recent software/plugin changes (v.0.6.2 from 2019-03) What could be the reason for this? I'm able to further debug or test if needed. Thanks a lot. Here is the log:
|
Also hier nochmals mein Logfile, ausführlicher: 2019-10-11 16:49:27.637 T:13070 NOTICE: ----------------------------------------------------------------------- ... Auffällig: |
O.K. And now? |
Ich konnte im Kodi 18.4 (Android) Addon-Fehlermeldungen und ein nicht funktionierendes Datenbankupdate feststellen, nachdem ich das Modul "ijson" auf die aktuelle Version 2.5 geupdatet hatte. Glücklicherweise hatte ich noch ein Backup mit der Version 2.3 dieses Moduls. |
Das Modul ijson kann ich hier unter 18.4 Android als installiert nicht finden. |
Unter KODi wird dieses verwendet, das Repo was du nennst ist veraltet. |
Downgrading to Version 2.3 of |
Can confirm that downgrading script.module.ijson to version 2.3 from 2016 "fixes" the error. |
Confirmed also! Exactly the subdir /script.module.json/lib/ijson/ has to be replaced with the /ijson/ dir from 2.3 git *.tar,gz or *.zip extracted. |
Yep! Change exactly the files who Endur described and it works, but what does it mean to the MediathekView addon itself? |
The of the MediathekView addon should match the changes of ijson 2.5, I suspect, saw there is also a 2.5.1 version. Found the original full 2.3 packaged Kodi plugin here also: But I keep the 2.5 addon.xml file from 01.10.2019. May be this stops a possible auto-update. |
@Endur Version 2.5.1 adds some backward compatibility. Did you check if it solves the problem for the |
@ Will check that soon, today, will report here... |
@eku Tested, but ijson 2.5.1 doesn't solve the issue, I got same error in log as for 2.5.0. Back to 2.3. |
OK - I added the module |
OK - my answer was too late. In this case the only possibility I see to solve the problem is to provide means for updating the database without using |
@tuxpoldo, thank you for your response. I have downloaded script.module.ijson 2.4 from I use now 2.4 and have automated updates disabled as a workaround. |
OK - I will now try to create an alternative update routing that will NOT use |
Skipping ijson is may be best, otherwise you have to follow always their changes... A device able to run Kodi Leia with a lot of plugins may also be able to read the json file into RAM. I will help you with testing, my device here has 2gb RAM only. |
@tuxpoldo |
As I am just a beneficiary of your analyses, I can only say THANKYOU to everybody who has contributed in analyzing this problem and finding a workaround. |
I can only agree. Thank you very much guys for all the work and analyzing the problem. |
i also switched back to script.module.ijson 2.4 from https://kodi.freemirror.org/kodi/addons/leia/script.module.ijson/ |
Released to official Kodi Repo in v0.6.4 |
Hi all,
with Nvidia Shield 2017 (Oreo) and Kodi 18.4 Leia I got the following error after starting Kodi:
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 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.mediathekview/service.py", line 29, in
from resources.lib.service import MediathekViewService
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.mediathekview/resources/lib/service.py", line 17, in
from resources.lib.updater import MediathekViewUpdater
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.mediathekview/resources/lib/updater.py", line 24, in
import ijson
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.ijson/lib/ijson/init.py", line 28, in
backend = _default_backend()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.ijson/lib/ijson/init.py", line 24, in _default_backend
return importlib.import_module('ijson.backends.' + backend)
File "/home/jenkins/workspace/Android-ARM64-Leia/tools/depends/xbmc-depends/aarch64-linux-android-21-release/lib/python2.7/importlib/init.py", line 37, in import_module
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.ijson/lib/ijson/backends/yajl2.py", line 12, in
yajl = backends.find_yajl_ctypes(2)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.ijson/lib/ijson/backends/init.py", line 34, in find_yajl_ctypes
so_name = util.find_library('yajl')
File "/home/jenkins/workspace/Android-ARM64-Leia/tools/depends/xbmc-depends/aarch64-linux-android-21-release/lib/python2.7/ctypes/util.py", line 274, in find_library
File "/home/jenkins/workspace/Android-ARM64-Leia/tools/depends/xbmc-depends/aarch64-linux-android-21-release/lib/python2.7/ctypes/util.py", line 99, in _findLib_gcc
File "/home/jenkins/workspace/Android-ARM64-Leia/tools/depends/xbmc-depends/aarch64-linux-android-21-release/lib/python2.7/tempfile.py", line 463, in NamedTemporaryFile
File "/home/jenkins/workspace/Android-ARM64-Leia/tools/depends/xbmc-depends/aarch64-linux-android-21-release/lib/python2.7/tempfile.py", line 275, in gettempdir
File "/home/jenkins/workspace/Android-ARM64-Leia/tools/depends/xbmc-depends/aarch64-linux-android-21-release/lib/python2.7/tempfile.py", line 217, in _get_default_tempdir
IOError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/']
-->End of Python script error report<--
Mediathekview will not update their database.
Any thoughts?
Regards
Jens
The text was updated successfully, but these errors were encountered: