VideoHelp Forum



Support our site by donate $5 directly to us Thanks!!!

Try StreamFab Downloader and download streaming video from Netflix, Amazon!



+ Reply to Thread
Page 16 of 16
FirstFirst ... 6 14 15 16
Results 451 to 468 of 468
  1. Because it worked without it before.

    Also, an error message now appears during installation:
    Code:
    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:~$
    Best regards
    Heiko
    Quote Quote  
  2. 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
    Regarding venv: read the message carefully. If you want to use a virtual env (which I personally find rather cumbersome to use, so I avoid it whereever I can...), Ubuntu should already have installed everything you need. If not: there surely is a package available via apt.
    Quote Quote  
  3. Member
    Join Date
    Feb 2024
    Location
    Belgium
    Search Comp PM
    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.
    Quote Quote  
  4. 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$
    Best regards
    Heiko
    Quote Quote  
  5. 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
    Any directory listed here is searched for modules.

    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.
    Quote Quote  
  6. 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$
    I downloaded and unpacked Pywidevine. Then copied it to /usr/lib/python3.12 using sudo rsync -a.

    But it still can't find the module.

    Best regards
    Heiko
    Quote Quote  
  7. 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
    )
    Quote Quote  
  8. 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$
    Best regards
    Heiko
    Quote Quote  
  9. Member
    Join Date
    Dec 2021
    Location
    england
    Search Comp PM
    try this..
    pip install pycryptodome
    Quote Quote  
  10. 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:~$
    Best regards
    Heiko
    Quote Quote  
  11. 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$
    I don't understand why widefrog.py no longer works. Is this related to the upgrade to Ubuntu 24.04.2?

    Best regards
    Heiko
    Quote Quote  
  12. 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.
    Quote Quote  
  13. 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.
    Quote Quote  
  14. 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$
    On Ubuntu, I always install with sudo apt install.
    In the virtual environment, do I have to enter something with pip or pip3?! What is the exact command?

    Best regards
    Heiko
    Quote Quote  
  15. 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
    I'm sorry, but without your help I can't make any progress.

    Best regards
    Heiko
    Quote Quote  
  16. 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
    Quote Quote  
  17. 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.
    Quote Quote  
  18. 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
    Tried widefrog.py. And now it's finally working again. I just don't understand why. I installed the requirements.txt file in Environment2. Was that the problem?

    Thank you so much.

    Best regards
    Heiko
    Quote Quote  



Similar Threads

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