gpt4 book ai didi

Python 脚本错误 - Kodi/XBMC 向导

转载 作者:行者123 更新时间:2023-12-01 04:36:14 30 4
gpt4 key购买 nike

长话短说,我有一个开发人员让我成为一名向导,即使我付了钱给他,他也没有在没有回复的情况下离开,并坚持使用一个半工作的Python向导。

该向导在 Kodi 内部运行,下载并解压 zip 文件。但有时我会遇到脚本错误。

错误如下所示:

    ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'urllib.ContentTooShortError'>
Error Contents: retrieval incomplete: got only 138374907 out of 763947095 bytes
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.ymwizard/default.py", line 161, in <module>
wizard(name,url,description)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.ymwizard/default.py", line 49, in wizard
downloader.download(url, lib, dp)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.ymwizard/downloader.py", line 9, in download
urllib.urlretrieve(url,dest,lambda nb, bs, fs, url=url: _pbhook(nb,bs,fs,url,dp))
File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-14/lib/python2.6/urllib.py", line 93, in urlretrieve
File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-14/lib/python2.6/urllib.py", line 283, in retrieve
ContentTooShortError: retrieval incomplete: got only 138374907 out of 763947095 bytes
-->End of Python script error report<--

最佳答案

这是 urllib 错误,文件未完全下载,您的请求应该在 try: except: block 中

关于Python 脚本错误 - Kodi/XBMC 向导,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31647466/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com