Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
v21 Lots of Kodi errors in the logs
#1
I am a paying subscriber on OpenSubtitles.org.

Lately, I have been getting errors whenever I try to download subtitles.

https://imgur.com/a/lv1h17T

Image

I went to view the log file, and I saw that there were several errors and hundreds of debug messages.

https://paste.kodi.tv/daqivediqa.kodi

How do I fix these errors? The descriptions do not give me enough information to know what to do.

Here is a short snip of just one error:
Code:
2024-10-06 13:53:50.373 T:11920 debug <general>: ------ Window Deinit (DialogNotification.xml) ------ 2024-10-06 13:53:51.636 T:12908 debug <general>: ### [__main__] - Download Using HTTP 2024-10-06 13:53:51.652 T:12908 error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <class 'AttributeError'> Error Contents: module 'urllib' has no attribute 'request' Traceback (most recent call last): File "C:\Users\Anyone\AppData\Roaming\Kodi\addons\service.subtitles.opensubtitles\service.py", line 183, in <module> subs = Download(params["ID"], params["link"],params["format"]) File "C:\Users\Anyone\AppData\Roaming\Kodi\addons\service.subtitles.opensubtitles\service.py", line 93, in Download f = urllib.request.urlopen(url) AttributeError: module 'urllib' has no attribute 'request' -->End of Python script error report<-- 2024-10-06 13:53:51.652 T:12908 debug <general>: CPythonInvoker::onExecutionDone(14, C:\Users\Anyone\AppData\Roaming\Kodi\addons\service.subtitles.opensubtitles\service.py)
Reply
#2
Seems like service.subtitles.opensubtitles has a bug.  service.py should be importing
python:
import urllib.request

scott s.
.
Reply
#3
(2024-10-07, 00:51)scott967 Wrote: Seems like service.subtitles.opensubtitles has a bug.  service.py should be importing
python:
import urllib.request

scott s.
.

So, nothing I can do to fix it. Correct?
Reply
#4
(2024-10-07, 12:01)jp2code Wrote:
(2024-10-07, 00:51)scott967 Wrote: Seems like service.subtitles.opensubtitles has a bug.  service.py should be importing
python:
import urllib.request

scott s.
.

So, nothing I can do to fix it. Correct?

A quick fix might be to add the line Scott recommends:

python:
import urllib.request

near the top of the: 

Kodi\addons\service.subtitles.opensubtitles\service.py

file where the other import statements exist. However, if this basic of an item is missing, there are likely other issues with the addon.


Thanks,

Jeff
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , CBC Sports, Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply
#5
Confirmed, Kodi tells me my name or password is empty or not valid. While the browser log in and download works as if I was not registered, issue seems to be service.subtitles.opensubtitles has a bug or the registration policy has changed.

Keeping in mind OpenSubtitles.org vs. OpenSubtitles.com
Reply
#6
Took a closer look at service.subtitles.opensubtitles.  See some other errors, but as the opensubtitles.org api is considered deprecated, don't see any point in going further as that api could be disabled at any time (maybe that is what users are experiencing).  From what I see only the api.opensubtitles.com/api/v1 REST api is supported any longer.  So recommend service.subtitles.opensubtitles-com addon.  Supposedly without login you can get 5 subs/IP/day.

scott s.
.
Reply
#7
Hi

we are checking the forum, and also take care of tickets. The pull request was accepted, so probably is good idea to update repo and reinstall the plugin.

https://github.com/xbmc/repo-scripts/pull/2660

Let us know if it helps
Reply

Logout Mark Read Team Forum Stats Members Help
Lots of Kodi errors in the logs0