VideoHelp Forum




+ Reply to Thread
Page 2 of 4
FirstFirst 1 2 3 4 LastLast
Results 31 to 60 of 92
  1. It didn't work with venv either.

    I don't know what to do.

    Best regards
    Heiko
    Quote Quote  
  2. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by Data2006 View Post
    from google.protobuf.message import DecodeError
    ModuleNotFoundError: No module named 'google'
    I have a new virtual Windows 11 instance running on my Linux machine and I thought I'd try installing WKS-KEYS and see how difficult it is for Windoze users.

    On first run it complained of no module 'xmltodict' - easily solved.
    On the next run it complained no module named Cryptodome - not so easily solved. (I happen to know what is needed but wanted to see if a new user could sort it)

    There is a module called pipreqs which when installed by pip will produce a requirements.txt for all the python code it sees in the folder and those below.
    I could not get pipreqs to run. Neither by calling it directly or by python -m pipreqs. It works so well on Linux!

    A search found 'pigar' as an alternative to pipreqs and 'pip install pigar' followed by 'python -m pigar generate' gave me a requirements.txt and listed 'pycryptodomex' as one of the dependencies. So I installed that and ran l3.py again. Eventually, when I'd remembered to rename blob and key correctly it all worked.

    There was no mention of any google modules missing. So I had a look through some of the imports in the python scripts in the folders below l3.py and saw 'import google.protobuf'. Now the fact that pigar doesn't list it means it should be something the system has when python is first installed. Clearly you are missing a module that starts with google... Why that should be so is anyone's guess. Out of date python installation perhaps? We are at Python 3.12 now,

    But maybe running pigar generate on your system will show protobuf as a requirement on your system?. And hopefully show other modules missing from your Python too

    Try
    Code:
    pip install protobuf
    plus any others pigar lists and see if you get any joy with that.

    But if you don't find that works, it really means you have a messed up Windows installation; no one here can help with that! Removing Python entirely and starting a re-install would be the way forward.
    Last edited by A_n_g_e_l_a; 22nd Apr 2024 at 05:17.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  3. Thank you. I'll try it tomorrow with the protobuf.

    It's just a mystery to me why WKS-KEYS runs on Linux but not on Windows.

    Python is cross-platform. Or not?

    Best regards
    Heiko
    Quote Quote  
  4. (venv) C:\Users\Heiko>C:\Users\Heiko\Downloads\WKS-KEYS\l3.py
    Traceback (most recent call last):
    File "C:\Users\Heiko\Downloads\WKS-KEYS\l3.py", line 9, in <module>
    from pywidevine.L3.cdm import cdm, deviceconfig
    File "C:\Users\Heiko\Downloads\WKS-KEYS\pywidevine\L3\cdm\cdm.py", line 13, in <module>
    from Cryptodome.Random import get_random_bytes
    ModuleNotFoundError: No module named 'Cryptodome'

    (venv) C:\Users\Heiko>pip install Cryptodome
    ERROR: Could not find a version that satisfies the requirement Cryptodome (from versions: none)
    ERROR: No matching distribution found for Cryptodome

    (venv) C:\Users\Heiko>



    (venv) C:\Users\Heiko>pip install pycryptodome
    Requirement already satisfied: pycryptodome in c:\users\heiko\desktop\wks\venv\lib\site-packages (3.20.0)

    (venv) C:\Users\Heiko>

    Best regards
    Heiko
    Quote Quote  
  5. Member
    Join Date
    Dec 2021
    Location
    england
    Search Comp PM
    pip install pycryptodomex
    Quote Quote  
  6. Thank you. Apparently that was it. The program is running.

    Best regards
    Heiko
    Quote Quote  
  7. Rejoiced too soon. It does not work.

    C:\Users\Heiko>C:\Users\Heiko\Downloads\WKS-KEYS\l3.py

    PSSH: AAAAQ3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAACMIARIQLn I2ocJtQIut0Mo0xEfBKiINYV9waGozMWFkODJndQ==
    License URL: https://api.vod-prd.s.joyn.de/v1/license?token=CiQ5MWJiNzRhMi0wMWU2LTRjOWItODY1NS05MGN...mg5CBC0&keyId=
    license request failed:
    b'{"message":"License acquisition failed"}'

    Best regards
    Heiko
    Quote Quote  
  8. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Then you first spend three weeks studying the stickies (Top of Forum page there are four links that are stuck) to understand the process of getting keys. Then you extract your own CDM as explained in one of the stickies and then you'll be able to get keys for yourself. It is all in the stickies; all you have to do is make sense of what you read.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  9. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by iamghost View Post
    pip install pycryptodomex
    Originally Posted by A_n_g_e_l_a View Post
    ....and listed 'pycryptodomex' as one of the dependencies. So I installed that and ran l3.py again. Eventually, when I'd remembered to rename blob and key correctly it all worked.
    Can't read can he?
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  10. Good morning

    Yes, I'm sorry. I didn't read correctly.

    But what do I do with the last mistake now?

    Best regards
    Heiko
    Quote Quote  
  11. Post your complete script. But first double check that the token param of the license url is complete.

    Every token param I've seen for joyn.de has a hyphen "-" in the last section (sections separated by "."). But that could just be my account, so double check.
    Last edited by Obo; 23rd Apr 2024 at 05:27.
    Quote Quote  
  12. I tested PSSH and license URL under Linux. There they were running.

    So there must be something wrong with the WKS-KEYS?!

    Best regards
    Heiko
    Quote Quote  
  13. l3.py comes later.

    Best regards
    Heiko
    Quote Quote  
  14. The program is now in the attachment (l3.py.txt).

    Best regards
    Heiko
    Image Attached Files
    Quote Quote  
  15. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by Data2006 View Post
    I tested PSSH and license URL under Linux. There they were running.

    So there must be something wrong with the WKS-KEYS?!

    Best regards
    Heiko
    There is nothing wrong with WKS-KEYS.

    You really are making a meal of this. Have you considered the operator might need an upgrade?

    Go to the Decryption section of Decryption-and-the-Temple-of-Doom and test your installation by following instructions there.

    Going on past evidence - you miss things - so treat it as a pilot's check list and tick off each bit as you complete it.

    WKS-KEYS and everything else here needs 100% accuracy if it is to work. Is it beyond you?

    Suggest you also use google-translate into your own language so there can be no misunderstanding.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  16. Good day.

    Unfortunately, Google translation is not good!
    I don't understand the instructions.

    I have re-downloaded the ZIP file WKS-KEYS.zip (https://files.videohelp.com/u/301890/WKS-KEYS.zip).
    I have the following files under C:\Users\Heiko\Desktop\WKS-KEYS\pywidevine\L3\cdm\devices\android_generic:
    C:\Users\Heiko\Desktop\WKS-KEYS\pywidevine\L3\cdm\devices\android_generic>dir
    Datenträger in Laufwerk C: ist Win10
    Volumeseriennummer: 7B3F-B154

    Verzeichnis von C:\Users\Heiko\Desktop\WKS-KEYS\pywidevine\L3\cdm\devices\android_generic

    23.04.2024 16:08 <DIR> .
    23.04.2024 16:08 <DIR> ..
    23.04.2024 16:08 578 config.json
    23.04.2024 16:08 1.651 device_client_id_blob
    23.04.2024 16:08 1.679 device_private_key
    23.04.2024 16:08 1.259 token.bin
    4 Datei(en), 5.167 Bytes
    2 Verzeichnis(se), 88.961.241.088 Bytes frei


    Do I now have to replace or rename the two files device_client_id_blob and device_private_key?
    Which files do I need?

    I ran the l3.py script:
    C:\Users\Heiko>C:\Users\Heiko\Desktop\WKS-KEYS\l3.py

    PSSH: AAAAQ3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAACMIARIQLn I2ocJtQIut0Mo0xEfBKiINYV9waGozMWFkODJndQ==
    License URL: https://api.vod-prd.s.joyn.de/v1/license?token=CiQ5MWJiNzRhMi0wMWU2LTRjOWItODY1NS05MGN...GKKHKqbEGMiQyM DAwNjkxMS0xZTdkLTQzMTYtYmI3NS1kYjhjMDg0Y2Q0MGM44AN CJGJhNGIwYTE2LWM0ZmMtNDA2MC1hMTAyLWFlMjE1Njk5ZGZlY UoId2lkZXZpbmVQ4fSfsQZYAA.ekaAzxO3d6lTe P6iyef9ktpTELdY9DYTu6uJi3OFZLg&keyId=
    unable to parse license - check protobufs

    Best regards
    Heiko


    PS: I'm very sorry that I have to keep asking
    Quote Quote  
  17. My headers.py:
    headers = {}
    Quote Quote  
  18. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by Data2006 View Post
    I don't understand the instructions.
    (
    I'm out.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  19. Headers can be left empty for joyn. But something is definitely wrong with your setup, because I can fetch the keys with the PSSH and license URL from your post.

    Code:
    2e7236a1c26d408badd0ca34c447c12a:be6756df89694bea3231e30e0d37b3a6
    c36d8c747204560abee687d585d886e0:63afc25c8cb606791127907f6724ed94
    cdb0ef1476655cfe91242da179e0af11:24ae20da88f8a1cd43b27d18ff6c9c30
    3a054a715d3d5906957c029fba32e8ba:2f5e201d3728ab8d9c8a24b2efcbad14
    Quote Quote  
  20. OK, and what can I do now?

    Do I have to take something with me? make the 2 files mentioned?

    l3.py runs under Linux.

    Best regards
    Heiko
    Quote Quote  
  21. Do I need a CDM key generator? Where do I get that from?

    Best regards
    Heiko
    Quote Quote  
  22. There is no such thing as a CDM key generator. You need a proper installation of pywidevine. DON'T continue trying to use the dated scripts from the WKS-KEYS.zip you downloaded and obviously aren't able to install or configure properly.

    Instead make yourself a favour and begin using the much better suited pywidevine module. Angela has already posted a link to her thread "Beyond WKS-KEYS" (https://forum.videohelp.com/threads/411862-Beyond-WKS-KEYS). Please follow her guide in that thread - it contains even a basic script that you can use for your purposes.
    Quote Quote  
  23. Member
    Join Date
    Feb 2022
    Location
    Search the forum first!
    Search PM
    Originally Posted by Obo View Post
    There is no such thing as a CDM key generator. You need a proper installation of pywidevine. DON'T continue trying to use the dated scripts from the WKS-KEYS.zip you downloaded and obviously aren't able to install or configure properly.

    Instead make yourself a favour and begin using the much better suited pywidevine module. Angela has already posted a link to her thread "Beyond WKS-KEYS" (https://forum.videohelp.com/threads/411862-Beyond-WKS-KEYS). Please follow her guide in that thread - it contains even a basic script that you can use for your purposes.
    It looks to me he has no client_id_bin nor private_key.pem. Clearly casting around in the dark without having done his homework - he wastes yours and my time.

    I still recommend beginners use WKS-KEYS and go through the process of using l3.py. Asking this guy to create a wvd only adds another layer of complexity and clearly he is already out of his depth.
    Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
    https://files.videohelp.com/u/301890/hellyes6.zip
    Quote Quote  
  24. Good day everybody.

    I completely deleted env, venv and WKS keys again. I download the ZIP file again and unzip it.

    Then I follow the instructions from #53.

    Best regards
    Heiko
    Quote Quote  
  25. C:\Users\Heiko>py -m venv env
    Der Befehl "py" ist entweder falsch geschrieben oder
    konnte nicht gefunden werden.

    C:\Users\Heiko>python -m venv env

    C:\Users\Heiko>.\env\Scripts\activate

    (env) C:\Users\Heiko>pip install pywidevine pyaml
    Collecting pywidevine
    Using cached pywidevine-1.8.0-py3-none-any.whl.metadata (9.1 kB)
    Collecting pyaml
    Using cached pyaml-24.4.0-py3-none-any.whl.metadata (11 kB)
    Collecting PyYAML<7.0.0,>=6.0.1 (from pywidevine)
    Using cached PyYAML-6.0.1-cp312-cp312-win_amd64.whl.metadata (2.1 kB)
    Collecting Unidecode<2.0.0,>=1.3.7 (from pywidevine)
    Using cached Unidecode-1.3.8-py3-none-any.whl.metadata (13 kB)
    Collecting click<9.0.0,>=8.1.7 (from pywidevine)
    Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
    Collecting protobuf<5.0.0,>=4.25.1 (from pywidevine)
    Using cached protobuf-4.25.3-cp310-abi3-win_amd64.whl.metadata (541 bytes)
    Collecting pycryptodome<4.0.0,>=3.19.0 (from pywidevine)
    Using cached pycryptodome-3.20.0-cp35-abi3-win_amd64.whl.metadata (3.4 kB)
    Collecting pymp4<2.0.0,>=1.4.0 (from pywidevine)
    Using cached pymp4-1.4.0-py3-none-any.whl.metadata (2.9 kB)
    Collecting requests<3.0.0,>=2.31.0 (from pywidevine)
    Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
    Collecting colorama (from click<9.0.0,>=8.1.7->pywidevine)
    Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
    Collecting construct==2.8.8 (from pymp4<2.0.0,>=1.4.0->pywidevine)
    Using cached construct-2.8.8-py2.py3-none-any.whl
    Collecting charset-normalizer<4,>=2 (from requests<3.0.0,>=2.31.0->pywidevine)
    Using cached charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl.metadata (34 kB)
    Collecting idna<4,>=2.5 (from requests<3.0.0,>=2.31.0->pywidevine)
    Using cached idna-3.7-py3-none-any.whl.metadata (9.9 kB)
    Collecting urllib3<3,>=1.21.1 (from requests<3.0.0,>=2.31.0->pywidevine)
    Using cached urllib3-2.2.1-py3-none-any.whl.metadata (6.4 kB)
    Collecting certifi>=2017.4.17 (from requests<3.0.0,>=2.31.0->pywidevine)
    Using cached certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB)
    Using cached pywidevine-1.8.0-py3-none-any.whl (70 kB)
    Using cached pyaml-24.4.0-py3-none-any.whl (24 kB)
    Using cached click-8.1.7-py3-none-any.whl (97 kB)
    Using cached protobuf-4.25.3-cp310-abi3-win_amd64.whl (413 kB)
    Using cached pycryptodome-3.20.0-cp35-abi3-win_amd64.whl (1.8 MB)
    Using cached pymp4-1.4.0-py3-none-any.whl (14 kB)
    Using cached PyYAML-6.0.1-cp312-cp312-win_amd64.whl (138 kB)
    Using cached requests-2.31.0-py3-none-any.whl (62 kB)
    Using cached Unidecode-1.3.8-py3-none-any.whl (235 kB)
    Using cached certifi-2024.2.2-py3-none-any.whl (163 kB)
    Using cached charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl (100 kB)
    Using cached idna-3.7-py3-none-any.whl (66 kB)
    Using cached urllib3-2.2.1-py3-none-any.whl (121 kB)
    Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
    Installing collected packages: construct, urllib3, Unidecode, PyYAML, pymp4, pycryptodome, protobuf, idna, colorama, charset-normalizer, certifi, requests, pyaml, click, pywidevine
    Successfully installed PyYAML-6.0.1 Unidecode-1.3.8 certifi-2024.2.2 charset-normalizer-3.3.2 click-8.1.7 colorama-0.4.6 construct-2.8.8 idna-3.7 protobuf-4.25.3 pyaml-24.4.0 pycryptodome-3.20.0 pymp4-1.4.0 pywidevine-1.8.0 requests-2.31.0 urllib3-2.2.1

    (env) C:\Users\Heiko>md WVD

    (env) C:\Users\Heiko>pywidevine create-device -k device_private_key -c device_client_id_blob -t ANDROID -l3 -o WVD
    INFO:rootywidevine version 1.8.0 Copyright (c) 2022-2024 rlaphoenix
    INFO:root:https://github.com/devine-dl/pywidevine
    Usage: pywidevine create-device [OPTIONS]
    Try 'pywidevine create-device --help' for help.

    Error: key: Not a path to a file, or it doesn't exist.

    (env) C:\Users\Heiko>

    I'm in (env) under C:\Users\Heiko

    Why doesn't pywidevine find the file(s)?

    Best regards
    Heiko
    Quote Quote  
  26. Are these the files I need?

    Microsoft Windows [Version 10.0.19045.4291]
    (c) Microsoft Corporation. All rights reserved.

    C:\Users\Heiko>dir C:\Users\Heiko\Downloads\WKS-KEYS\pywidevine\L3\cdm\devices\android_generic
    Disk in drive C: is Win10
    Volume serial number: 7B3F-B154

    Directory of C:\Users\Heiko\Downloads\WKS-KEYS\pywidevine\L3\cdm\devices\android_generic

    04/24/2024 6:11 p.m. <DIR> .
    04/24/2024 6:11 p.m. <DIR> ..
    Apr 24, 2024 6:11 pm 578 config.json
    Apr 24, 2024 6:11 pm 1,651 device_client_id_blob
    Apr 24, 2024 6:11 p.m. 1,679 device_private_key
    Apr 24, 2024 6:11 pm 1,259 token.bin
    4 file(s), 5,167 bytes
    2 directory(s), 88,995,344,384 bytes free

    C:\Users\Heiko>


    Do I stay in the directory (env) C:\Users\Heiko when I call pywidevine create-device ...?

    Best regards
    Heiko
    Quote Quote  
  27. Do I need both files
    C:\Users\Heiko\Downloads\WKS-KEYS\pywidevine\L3\cdm\devices\android_generic\dev ice_client_id_blob
    C:\Users\Heiko\Downloads\WKS-KEYS\pywidevine\L3\cdm\devices\android_generic\dev ice_private_key
    Quote Quote  
  28. It's really hard for you (and us ...)

    Options "-k" and "-c" tell the script where to find the key file and client id blob. If the two files aren't found in the directory where you are, then this results in the error message you see. Either move them in the directory where you are or specify the path where they are. pywidevine does not know (and doesn't need to know) anything about the directory structure of WKS-KEYS.
    Quote Quote  
  29. Yes, I just wanted to know that.

    So I stay in (env) C:\Users\Heiko and specify the absolute path to the two files.

    WVD folder was also created under C\User\Heiko.

    I don't understand some things, but I'm not completely stupid either.

    Since it didn't work before, I'll tell you every step I took. If I make a mistake, you can tell me where.

    Best regards
    Heiko

    PS: Sorry for my Google English.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!