Hello,
I've little problem with wks.
I've an error when i lauch the script with python3.10
Thank you for your helpCode:C:\Users\Cheezou\Downloads\WEB-DL\WKS-KEYS>python l3.py Traceback (most recent call last): File "C:\Users\Cheezou\Downloads\WEB-DL\WKS-KEYS\l3.py", line 9, in <module> from pywidevine.L3.cdm import cdm, deviceconfig ModuleNotFoundError: No module named 'pywidevine.L3'
Support our site by donate $5 directly to us Thanks!!!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
Try StreamFab Downloader and download streaming video from Netflix, Amazon!
+ Reply to Thread
Results 1 to 14 of 14
-
-
Above is the nub of your issue.
Python is looking for more code - a module in a directory structure consisting of pywidevine/L3/cdm from the current directory.
Some versions of wks-keys do not adopt that structure of L3 appearing in the path. here are two solutions one IMM better than the other
1. Use WKS-KEYS from here https://github.com/weapon121/WKS-KEY/releases/tag/WKS-KEY and try again
2. Adapt the path of the import statement to match your present wks-keys structure possible pywidevine/cdm/ etc so written for python pywidewine.cdm -
-
Code:
PS C:\Users\Cheezou\Downloads\Compressed\WKS-KEYS> dir Directory: C:\Users\Cheezou\Downloads\Compressed\WKS-KEYS Mode LastWriteTime Length Name ---- ------------- ------ ---- d---- 21/06/2023 15:06 __pycache__ d---- 10/11/2021 19:40 pywidevine -a--- 10/11/2021 19:48 0 headers.py -a--- 10/11/2021 19:49 1022 l1.py -a--- 10/11/2021 19:49 1022 l3.py PS C:\Users\Cheezou\Downloads\Compressed\WKS-KEYS>
-
What does compressed mean in this context? What comes after L3?
My path is WKS-KEYS/pywidevine/L3/cdm
inside which is:
[Attachment 71886 - Click to enlarge]
It is important you have __init__.py as an empty file. (Don't worry about not having __pycache__) -
Got it! Your are missing a double underscore init double underscore.py or __init__.py after pywideviine, i.e. inside the folder where L3 is.
__init__.py tells python that there may be modules of code inside the folder or the next level folder down.
So make sure that in each folder to the python module __init__.py exists. -
We've all had an OMG moment after getting keys returned- great isn't it?
Last edited by A_n_g_e_l_a; 21st Jun 2023 at 09:26.
-
Error on canalplus.fr :'( it's work disney plus but my canal no
Code:License URL: https://secure-gen-hapi.canal-plus.com/conso/view/640a6150-103f-11ee;640a6150-103f-11ee-b1e8-fbb9acae02a5;-b1e8-fbb9acae02a5/licence?drmConfig=mkpl::true Traceback (most recent call last): File "C:\Users\Cheezou\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 467, in _make_request self._validate_conn(conn) File "C:\Users\Cheezou\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 1092, in _validate_conn conn.connect() File "C:\Users\Cheezou\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connection.py", line 635, in connect sock_and_verified = _ssl_wrap_socket_and_match_hostname( File "C:\Users\Cheezou\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connection.py", line 776, in _ssl_wrap_socket_and_match_hostname ssl_sock = ssl_wrap_socket( File "C:\Users\Cheezou\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\ssl_.py", line 466, in ssl_wrap_socket ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname) File "C:\Users\Cheezou\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\ssl_.py", line 510, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock, server_hostname=server_hostname) File "C:\Users\Cheezou\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 512, in wrap_socket return self.sslsocket_class._create( File "C:\Users\Cheezou\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1070, in _create self.do_handshake() File "C:\Users\Cheezou\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1341, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:997) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\Cheezou\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 790, in urlopen response = self._make_request( File "C:\Users\Cheezou\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 491, in _make_request raise new_e urllib3.exceptions.SSLError: [SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:997) The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\Cheezou\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 486, in send resp = conn.urlopen( File "C:\Users\Cheezou\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 844, in urlopen retries = retries.increment( File "C:\Users\Cheezou\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\retry.py", line 515, in increment raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='secure-gen-hapi.canal-plus.com', port=443): Max retries exceeded with url: /conso/view/640a6150-103f-11ee;640a6150-103f-11ee-b1e8-fbb9acae02a5;-b1e8-fbb9acae02a5/licence?drmConfig=mkpl::true (Caused by SSLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:997)'))) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\Cheezou\Downloads\Compressed\WKS-KEYS\l3.py", line 25, in <module> correct, keys = WV_Function(pssh, lic_url) File "C:\Users\Cheezou\Downloads\Compressed\WKS-KEYS\l3.py", line 19, in WV_Function widevine_license = requests.post(url=lic_url, data=wvdecrypt.get_challenge(), headers=headers.headers) File "C:\Users\Cheezou\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\api.py", line 115, in post return request("post", url, data=data, json=json, **kwargs) File "C:\Users\Cheezou\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\api.py", line 59, in request return session.request(method=method, url=url, **kwargs) File "C:\Users\Cheezou\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 589, in request resp = self.send(prep, **send_kwargs) File "C:\Users\Cheezou\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 703, in send r = adapter.send(request, **kwargs) File "C:\Users\Cheezou\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 517, in send raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='secure-gen-hapi.canal-plus.com', port=443): Max retries exceeded with url: /conso/view/640a6150-103f-11ee;640a6150-103f-11ee-b1e8-fbb9acae02a5;-b1e8-fbb9acae02a5/licence?drmConfig=mkpl::true (Caused by SSLError(SSLError(1, '[SSL: DH_KEY_TOO_SMALL] dh key too small (_ssl.c:997)')))
-
-
Can anyone help me out. Im using wks key from https://github.com/weapon121/WKS-KEY/releases/tag/WKS-KEY still facing no module named pywidevine.l3 issue.
Similar Threads
-
delete
By Loryanam2 in forum Video Streaming DownloadingReplies: 0Last Post: 22nd Feb 2023, 12:54 -
WKS-KEYS help
By Gruchemuche in forum Video Streaming DownloadingReplies: 1Last Post: 2nd Oct 2022, 08:55 -
Need help with WKS-KEYS
By lxlit in forum Video Streaming DownloadingReplies: 6Last Post: 16th Sep 2022, 10:01 -
need help with wks-keys
By ahmedani in forum Video Streaming DownloadingReplies: 1Last Post: 20th Jul 2022, 03:15 -
Wks-keys
By Fjullekulle in forum Video Streaming DownloadingReplies: 10Last Post: 12th Jul 2022, 04:01