Hello everyone, I have a problem with the Kodi on Demand plugin. In some situations it returns the following error:
2021-10-17 19:12:29.901 T:637 ERROR <general>: kod[service.get_ua_list:311]: ######## ERROR #########
2021-10-17 19:12:29.901 T:637 ERROR <general>: kod[service.get_ua_list:311]: Traceback (most recent call last):
File "/home/astr/.kodi/addons/plugin.video.kod/service.py", line 300, in get_ua_list
data = httptools.downloadpage(url, alfa_s=True).data
File "/home/astr/.kodi/addons/plugin.video.kod/core/httptools.py", line 297, in downloadpage
from core import resolverdns
File "/home/astr/.kodi/addons/plugin.video.kod/core/resolverdns.py", line 8, in <module>
DEFAULT_CIPHERS = _ssl._DEFAULT_CIPHERS
AttributeError: module '_ssl' has no attribute '_DEFAULT_CIPHERS'
Do you have any idea how to solve this problem?
Thanks,
George
Kodi19 problem with KoD Plugin
-
- Posts: 3
- youtube meble na wymiar Warszawa
- Joined: Mon Oct 18, 2021 12:28 am
Kodi19 problem with KoD Plugin
- Attachments
-
- kodi.rar
- complete kodi.log file
- (9.06 KiB) Downloaded 166 times
- father.mande
- Posts: 1819
- Joined: Sat Sep 12, 2015 2:55 am
- Location: La Rochelle (France)
Re: Kodi19 problem with KoD Plugin
Hi,
No idea for this specific (Italian) module but as usual :
1. be sure to have myHD (Ubuntu) up to date (use "myHD apt_upgrade_package" command or connect as root in myHD and do an "apt-get update; apt-get -y dist-upgrade" (if update is large, restart myHD at end).
2. be sure that module use the correct version of python and if they use some python module up to date
3. ask to the developer perhaps a ssl software require some version.
4. have a look to syslog (dmesg command in ADM or myHD) to look if some more info is done.
5. last, verify if your DNS (the ADM one) is correct to get the target of the httptools.py, in some case adding in resolv.conf an external DNS like 8.8.8.8 ... can solve some target unavailable ...
When you write : "in some situations" what do you mean exactly in some case it works ? or it's in a specific context? or whatelse ...
Philippe.
No idea for this specific (Italian) module but as usual :
1. be sure to have myHD (Ubuntu) up to date (use "myHD apt_upgrade_package" command or connect as root in myHD and do an "apt-get update; apt-get -y dist-upgrade" (if update is large, restart myHD at end).
2. be sure that module use the correct version of python and if they use some python module up to date
3. ask to the developer perhaps a ssl software require some version.
4. have a look to syslog (dmesg command in ADM or myHD) to look if some more info is done.
5. last, verify if your DNS (the ADM one) is correct to get the target of the httptools.py, in some case adding in resolv.conf an external DNS like 8.8.8.8 ... can solve some target unavailable ...
When you write : "in some situations" what do you mean exactly in some case it works ? or it's in a specific context? or whatelse ...
Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
-
- Posts: 3
- Joined: Mon Oct 18, 2021 12:28 am
Re: Kodi19 problem with KoD Plugin
I found a solution.
I modified the python script /volume1/.@plugins/.myHD/myHD_1804_home/astr/.kodi/addons/plugin.video.kod/core/resolverdns.py
I don't know why (I don't know pithon / ssl / ubuntu), but the _ssl library did not have the _DEFAULT_CIPHERS attribute but it is present in the ssl library
_DEFAULT_CIPHERS= TLS13-AES-256-GCM-SHA384:TLS13-CHACHA20-POLY1305-SHA256:TLS13-AES-128-GCM-SHA256:ECDH+AESGCM:ECDH+CHACHA20:DH+AESGCM:DH+CHACHA20:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+HIGH:DH+HIGH:RSA+AESGCM:RSA+AES:RSA+HIGH:!aNULL:!eNULL:!MD5:!3DES
These are the first 10 modified lines:
before:
# -*- coding: utf-8 -*-
import datetime, sys, ssl
PY3 = False
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
if PY3:
import urllib.parse as urlparse
import _ssl
DEFAULT_CIPHERS = _ssl._DEFAULT_CIPHERS
else:
import urlparse
DEFAULT_CIPHERS = _ssl._DEFAULT_CIPHERS
after:
# -*- coding: utf-8 -*-
import datetime, sys, ssl
PY3 = False
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
if PY3:
import urllib.parse as urlparse
import _ssl
DEFAULT_CIPHERS = ssl._DEFAULT_CIPHERS
else:
import urlparse
DEFAULT_CIPHERS = ssl._DEFAULT_CIPHERS
After this change the plugin KoD works fine.
thank you all
Giorgio
I modified the python script /volume1/.@plugins/.myHD/myHD_1804_home/astr/.kodi/addons/plugin.video.kod/core/resolverdns.py
I don't know why (I don't know pithon / ssl / ubuntu), but the _ssl library did not have the _DEFAULT_CIPHERS attribute but it is present in the ssl library
_DEFAULT_CIPHERS= TLS13-AES-256-GCM-SHA384:TLS13-CHACHA20-POLY1305-SHA256:TLS13-AES-128-GCM-SHA256:ECDH+AESGCM:ECDH+CHACHA20:DH+AESGCM:DH+CHACHA20:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+HIGH:DH+HIGH:RSA+AESGCM:RSA+AES:RSA+HIGH:!aNULL:!eNULL:!MD5:!3DES
These are the first 10 modified lines:
before:
# -*- coding: utf-8 -*-
import datetime, sys, ssl
PY3 = False
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
if PY3:
import urllib.parse as urlparse
import _ssl
DEFAULT_CIPHERS = _ssl._DEFAULT_CIPHERS
else:
import urlparse
DEFAULT_CIPHERS = _ssl._DEFAULT_CIPHERS
after:
# -*- coding: utf-8 -*-
import datetime, sys, ssl
PY3 = False
if sys.version_info[0] >= 3: PY3 = True; unicode = str; unichr = chr; long = int
if PY3:
import urllib.parse as urlparse
import _ssl
DEFAULT_CIPHERS = ssl._DEFAULT_CIPHERS
else:
import urlparse
DEFAULT_CIPHERS = ssl._DEFAULT_CIPHERS
After this change the plugin KoD works fine.
thank you all
Giorgio