Because it worked without it before.
Also, an error message now appears during installation:
Best regardsCode:heiko@Worf:~$ pip install virtualenv error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. If you wish to install a non-Debian packaged Python application, it may be easiest to use pipx install xyz, which will manage a virtual environment for you. Make sure you have pipx installed. See /usr/share/doc/python3.12/README.venv for more information. note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. heiko@Worf:~$
Heiko
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 451 to 468 of 468
-
-
If the numpy package is missing, then simply install it. There should be a version available via apt (use "sudo -i" to open a root shell or execute the commands with "sudo ..."):
Code:apt-get update; apt-get install python3-numpy
-
I'm no expert on this, but I managed to get VTMGO working again.
I found that lfvp_disabled_storefronts was empty, which caused this check to fail.
I commented this out and it worked again.
Code:#assert cookie_dict["lfvp_auth_token"] is not None.
-
Code:
heiko@Worf:~/Downloads/Widefrog v3.2.0.bak$ python3 widefrog.py Traceback (most recent call last): File "/home/heiko/Downloads/Widefrog v3.2.0.bak/widefrog.py", line 6, in <module> from utils.main_service import main_service File "/home/heiko/Downloads/Widefrog v3.2.0.bak/utils/main_service.py", line 19, in <module> from utils.tools.cdm import init_cdm, close_cdm File "/home/heiko/Downloads/Widefrog v3.2.0.bak/utils/tools/cdm.py", line 7, in <module> from pywidevine import PSSH, Cdm, Device ModuleNotFoundError: No module named 'pywidevine' heiko@Worf:~/Downloads/Widefrog v3.2.0.bak$
Heiko -
You can install modules in a local directory under your home dir or /usr/local/. You'll probably have to set PYTHONPATH environment variable. To see the directories python looks for modules, enter
Code:echo 'import sys; print(sys.path)' | python
You can download the pywidevine module as .tar.gz from here: https://pypi.org/project/pywidevine/#files and unpack it in a module directory.
Or bite the bullet and learn how to setup a venv. Easiest probably is to use pipx. -
Code:
heiko@Worf:~/Downloads/Widefrog v3.2.0$ echo 'import sys; print(sys.path)' | python3 ['', '/usr/lib/python312.zip', '/usr/lib/python3.12', '/usr/lib/python3.12/lib-dynload', '/usr/local/lib/python3.12/dist-packages', '/usr/lib/python3/dist-packages'] heiko@Worf:~/D ownloads/Widefrog v3.2.0$
Code:heiko@Worf:~/Downloads/Widefrog v3.2.0$ sudo rsync -a '/home/heiko/Downloads/Widefrog v3.2.0/pywidevine-1.8.0' /usr/lib/python3.12/ [sudo] Passwort für heiko: heiko@Worf:~/Downloads/Widefrog v3.2.0$
Code:heiko@Worf:/usr/lib/python3.12$ ls -l pywidevine-1.8.0 insgesamt 92 -rw-r--r-- 1 heiko heiko 27359 Dez 22 2023 CHANGELOG.md -rw-r--r-- 1 heiko heiko 35149 Dez 22 2023 LICENSE -rw-r--r-- 1 heiko heiko 9143 Jan 1 1970 PKG-INFO -rw-r--r-- 1 heiko heiko 2334 Dez 22 2023 pyproject.toml drwxrwxr-x 2 heiko heiko 4096 Jul 15 20:37 pywidevine -rw-r--r-- 1 heiko heiko 7390 Dez 22 2023 README.md heiko@Worf:/usr/lib/python3.12$
But it still can't find the module.
Best regards
Heiko -
I'd create the directory /usr/local/lib/python3.12/dist-packages and unpack the sources in there, so that the pywidevine directory is the top-level directory here (move the pywidevine dir out of pywidevine-1.8.0 dir, i.e. after unpacking it should look like:
Code:/usr/local/lib/python3.12/dist-packages/pywidevine
-
That worked. But now something's missing again.
What could all this be? widefrog.py was still running before the upgrade to 24.04.
Code:heiko@Worf:~/Downloads/Widefrog v3.2.0$ python3 widefrog.py https://www.joyn.de/play/serien/wwe-premium-live-events/2025-1-wwe-evolution?from=%2F Traceback (most recent call last): File "/home/heiko/Downloads/Widefrog v3.2.0/widefrog.py", line 6, in <module> from utils.main_service import main_service File "/home/heiko/Downloads/Widefrog v3.2.0/utils/main_service.py", line 19, in <module> from utils.tools.cdm import init_cdm, close_cdm File "/home/heiko/Downloads/Widefrog v3.2.0/utils/tools/cdm.py", line 7, in <module> from pywidevine import PSSH, Cdm, Device File "/usr/local/lib/python3.12/dist-packages/pywidevine/__init__.py", line 1, in <module> from .cdm import * File "/usr/local/lib/python3.12/dist-packages/pywidevine/cdm.py", line 13, in <module> from Crypto.Cipher import AES, PKCS1_OAEP ModuleNotFoundError: No module named 'Crypto' heiko@Worf:~/Downloads/Widefrog v3.2.0$
Heiko -
Code:
heiko@Worf:~$ pip install pycryptodome error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. If you wish to install a non-Debian packaged Python application, it may be easiest to use pipx install xyz, which will manage a virtual environment for you. Make sure you have pipx installed. See /usr/share/doc/python3.12/README.venv for more information. note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification. heiko@Worf:~$
Heiko -
Hi.
I once created an environment, but I can't call widefrogpy from there either:
Code:heiko@Worf:~/test$ cd Environment heiko@Worf:~/test/Environment$ source bin/activate (Environment) heiko@Worf:~/test/Environment$ python3 widefrog.py python3: can't open file '/home/heiko/test/Environment/widefrog.py': [Errno 2] No such file or directory (Environment) heiko@Worf:~/test/Environment$ cd ~ (Environment) heiko@Worf:~$ cd "Downloads/Widefrog v3.2.0" (Environment) heiko@Worf:~/Downloads/Widefrog v3.2.0$ python3 widefrog.py Traceback (most recent call last): File "/home/heiko/Downloads/Widefrog v3.2.0/widefrog.py", line 6, in <module> from utils.main_service import main_service File "/home/heiko/Downloads/Widefrog v3.2.0/utils/main_service.py", line 10, in <module> import requests ModuleNotFoundError: No module named 'requests' (Environment) heiko@Worf:~/Downloads/Widefrog v3.2.0$
Best regards
Heiko -
Yes, this is related to the update to Ubuntu 24.
Most of the missing packages are available as packages via apt - search for them (requests definitely is one of the most used packages that is not bundled with python).
Alternatively make yourself comfortable with using virtual envs. This thread is about widefrog and IMO shouldn't drift off into a course on how to manage a python installation. -
I wanted to test rakuten and 35mm online. Does it work only for free content? I dont see login/pass field in config for them.
-
Code:
(Environment) heiko@Worf:~/Downloads/Widefrog v3.2.0$ sudo apt install requests [sudo] Passwort für heiko: Paketlisten werden gelesen… Fertig Abhängigkeitsbaum wird aufgebaut… Fertig Statusinformationen werden eingelesen… Fertig E: Paket requests kann nicht gefunden werden. (Environment) heiko@Worf:~/Downloads/Widefrog v3.2.0$
In the virtual environment, do I have to enter something with pip or pip3?! What is the exact command?
Best regards
Heiko -
Code:
(Environment) heiko@Worf:~/Downloads/Widefrog v3.2.0$ pip Traceback (most recent call last): File "/home/heiko/test/Environment/bin/pip", line 5, in <module> from pip._internal.cli.main import main ModuleNotFoundError: No module named 'pip' (Environment) heiko@Worf:~/Downloads/Widefrog v3.2.0
Best regards
Heiko -
Would you mind starting a new thread on this topic? It's offtopic here, and this is my last post in this thread on this topic
-
Is this script still maintained? There haven't been any updates for a while.
RTLPlay service no longer works.
Lots of bugs with the Python version.
Thanks for your future answers.
Best Regards. -
OK. I've created a new virtual environment, Environment2. Suddenly pip started running.
Then I ran this command. And everything was installed.
Code:grep -v '^#' requirements.txt | xargs -n 1 pip install
Thank you so much.
Best regards
Heiko
Similar Threads
-
Batch IMDB Image Downloader
By Jay123210599 in forum ComputerReplies: 3Last Post: 11th Jan 2024, 12:02 -
Help downloading DRM protected content
By edenshapira in forum Video Streaming DownloadingReplies: 0Last Post: 28th Oct 2023, 14:59 -
Downloading DRM protected content from mewatch.sg
By notred in forum Video Streaming DownloadingReplies: 4Last Post: 25th Nov 2022, 04:34 -
Weird Behaviour Of DRM Protected Content
By portalie in forum Video Streaming DownloadingReplies: 1Last Post: 6th Feb 2022, 15:10