cocktailpeanutlabs / dreamtalk

14 stars 3 forks source link

Conflicting Python Versions #2

Open BobserLuck opened 10 months ago

BobserLuck commented 10 months ago

It appears that this/Pinokio uses the default system Python version for generating the venv environment. At the time, I was using Python 3.11 and so a 3.11 venv environment was created, though it conflicted with many of the required Python module versions.

I've swithced my python version (pyenv), though wanted to bring this up as a potential issue with this and other projects. Per the original projects README, it looks like they used Conda to ensure 3.7.0 was used.

STDOUT:

john@doe:~/pinokio/api/dreamtalk.git/app$ source /home/john/pinokio/api/dreamtalk.git/app/env/bin/activate /home/john/pinokio/api/dreamtalk.git/app/env && pip install -r requirements.txt && pip install torch torchvision torchaudio xformers --index-url https://download.pytorch.org/whl/cu118 Collecting gradio Using cached gradio-4.13.0-py3-none-any.whl (16.6 MB) Collecting moviepy Using cached moviepy-1.0.3.tar.gz (388 kB) Preparing metadata (setup.py) ... done Collecting yacs==0.1.8 Using cached yacs-0.1.8-py3-none-any.whl (14 kB) ERROR: Ignored the following versions that require a different python version: 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10; 1.7.2 Requires-Python >=3.7,<3.11; 1.7.3 Requires-Python >=3.7,<3.11; 1.8.0 Requires-Python >=3.8,<3.11; 1.8.0rc1 Requires-Python >=3.8,<3.11; 1.8.0rc2 Requires-Python >=3.8,<3.11; 1.8.0rc3 Requires-Python >=3.8,<3.11; 1.8.0rc4 Requires-Python >=3.8,<3.11; 1.8.1 Requires-Python >=3.8,<3.11 ERROR: Could not find a version that satisfies the requirement scipy==1.7.3 (from versions: 0.8.0, 0.9.0, 0.10.0, 0.10.1, 0.11.0, 0.12.0, 0.12.1, 0.13.0, 0.13.1, 0.13.2, 0.13.3, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.16.0, 0.16.1, 0.17.0, 0.17.1, 0.18.0, 0.18.1, 0.19.0, 0.19.1, 1.0.0, 1.0.1, 1.1.0, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4, 1.6.0, 1.6.1, 1.9.0rc1, 1.9.0rc2, 1.9.0rc3, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0rc1, 1.10.0rc2, 1.10.0, 1.10.1, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.11.4, 1.12.0rc1) ERROR: No matching distribution found for scipy==1.7.3

ADDTIONAL INFO:

OS: Linux (Ubuntu 22.04) GPU: Nvidia (RTX 3090) Pinokio Version: 1.0.16

BobserLuck commented 10 months ago

Found that Python 3.7 was too old as PyTorch is depricating support for it. The default script can't find a release candidate for "torch" under Python 3.7.17.

Python 3.11.2 was the version I was originally using and was too new as many of the dependencies/versions weren't available. 3.10.13 seems to be working fine.

Is Pinokio supposed to manage Python versions internally?