`pip3 install -U katrain` works on Windows but `pip install -r requirements.txt` fails
metaperl opened this issue · 1 comments
metaperl commented
Given that the install instructions did not say to attempt to install this via pip install -r requirements.txt
, this "bug report" may not be useful or relevant. Nonetheless, I am filing it for posterity in case someone else runs into this.
Transcript of failed install via pip install -r requirements.txt
(venv) C:\code\katrain>pip install -r requirements.txt
Collecting certifi==2020.12.5 (from -r requirements.txt (line 1))
Using cached certifi-2020.12.5-py2.py3-none-any.whl (147 kB)
Collecting chardet==3.0.4 (from -r requirements.txt (line 2))
Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting docutils==0.16 (from -r requirements.txt (line 3))
Using cached docutils-0.16-py2.py3-none-any.whl (548 kB)
Collecting ffpyplayer==4.3.2 (from -r requirements.txt (line 4))
Using cached ffpyplayer-4.3.2.tar.gz (86 kB)
Preparing metadata (setup.py) ... done
Collecting idna==2.10 (from -r requirements.txt (line 5))
Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting Kivy==2.1.0 (from -r requirements.txt (line 6))
Using cached Kivy-2.1.0.tar.gz (23.8 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
Collecting setuptools
Obtaining dependency information for setuptools from https://files.pythonhosted.org/packages/c7/42/be1c7bbdd83e1bfb160c94b9cafd8e25efc7400346cf7ccdbdb452c467fa/setuptools-68.0.0-py3-none-any.whl.metadata
Downloading setuptools-68.0.0-py3-none-any.whl.metadata (6.4 kB)
Collecting wheel
Obtaining dependency information for wheel from https://files.pythonhosted.org/packages/17/11/f139e25018ea2218aeedbedcf85cd0dd8abeed29a38ac1fda7f5a8889382/wheel-0.41.0-py3-none-any.whl.metadata
Downloading wheel-0.41.0-py3-none-any.whl.metadata (2.2 kB)
Collecting cython!=0.27,!=0.27.2,<=0.29.28,>=0.24
Using cached Cython-0.29.28-py2.py3-none-any.whl (983 kB)
Collecting kivy_deps.gstreamer_dev~=0.3.3
Using cached kivy_deps.gstreamer_dev-0.3.3-cp311-cp311-win_amd64.whl (3.9 MB)
ERROR: Could not find a version that satisfies the requirement kivy_deps.sdl2_dev~=0.4.5 (from versions: 0.5.1, 0.6.0)
ERROR: No matching distribution found for kivy_deps.sdl2_dev~=0.4.5
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
(venv) C:\code\katrain>
Successful install via pip3 install -U katrain
(VENV_tmp) C:\tmp>pip3 install -U katrain
Collecting katrain
Downloading KaTrain-1.14.0-py3-none-any.whl (124.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 124.5/124.5 MB 601.1 kB/s eta 0:00:00
Collecting wheel
Using cached wheel-0.41.0-py3-none-any.whl (64 kB)
Requirement already satisfied: setuptools in c:\tmp\venv_tmp\lib\site-packages (from katrain) (65.5.0)
Collecting kivy[full]>=2.1.0
Downloading Kivy-2.2.1-cp311-cp311-win_amd64.whl (4.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.0/4.0 MB 580.0 kB/s eta 0:00:00
Collecting kivymd==0.104.1
Downloading kivymd-0.104.1-py3-none-any.whl (2.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.4/2.4 MB 708.8 kB/s eta 0:00:00
Collecting ffpyplayer
Downloading ffpyplayer-4.5.0-cp311-cp311-win_amd64.whl (60.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.9/60.9 MB 508.7 kB/s eta 0:00:00
Collecting urllib3
Downloading urllib3-2.0.4-py3-none-any.whl (123 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 123.9/123.9 kB 1.2 MB/s eta 0:00:00
Collecting chardet
Downloading chardet-5.1.0-py3-none-any.whl (199 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 199.1/199.1 kB 1.5 MB/s eta 0:00:00
Collecting screeninfo
Downloading screeninfo-0.8.1-py3-none-any.whl (12 kB)
Collecting pillow
Downloading Pillow-10.0.0-cp311-cp311-win_amd64.whl (2.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/2.5 MB 711.8 kB/s eta 0:00:00
Collecting requests
Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Collecting Kivy-Garden>=0.1.4
Downloading Kivy_Garden-0.1.5-py3-none-any.whl (4.6 kB)
Collecting docutils
Downloading docutils-0.20.1-py3-none-any.whl (572 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 572.7/572.7 kB 1.1 MB/s eta 0:00:00
Collecting pygments
Downloading Pygments-2.15.1-py3-none-any.whl (1.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 706.1 kB/s eta 0:00:00
Collecting kivy-deps.angle~=0.3.3
Downloading kivy_deps.angle-0.3.3-cp311-cp311-win_amd64.whl (4.8 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.8/4.8 MB 626.0 kB/s eta 0:00:00
Collecting kivy-deps.sdl2~=0.6.0
Downloading kivy_deps.sdl2-0.6.0-cp311-cp311-win_amd64.whl (2.6 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.6/2.6 MB 708.5 kB/s eta 0:00:00
Collecting kivy-deps.glew~=0.3.1
Downloading kivy_deps.glew-0.3.1-cp311-cp311-win_amd64.whl (123 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 123.6/123.6 kB 1.5 MB/s eta 0:00:00
Collecting pypiwin32
Downloading pypiwin32-223-py3-none-any.whl (1.7 kB)
Collecting kivy-deps.gstreamer~=0.3.3
Downloading kivy_deps.gstreamer-0.3.3-cp311-cp311-win_amd64.whl (139.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 139.1/139.1 MB 637.0 kB/s eta 0:00:00
Collecting pywin32>=223
Downloading pywin32-306-cp311-cp311-win_amd64.whl (9.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.2/9.2 MB 676.5 kB/s eta 0:00:00
Collecting charset-normalizer<4,>=2
Downloading charset_normalizer-3.2.0-cp311-cp311-win_amd64.whl (96 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 kB 1.1 MB/s eta 0:00:00
Collecting idna<4,>=2.5
Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting certifi>=2017.4.17
Downloading certifi-2023.7.22-py3-none-any.whl (158 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 158.3/158.3 kB 2.4 MB/s eta 0:00:00
Installing collected packages: pywin32, kivy-deps.sdl2, kivy-deps.gstreamer, kivy-deps.glew, kivy-deps.angle, ffpyplayer, wheel, urllib3, screeninfo, pypiwin32, pygments, pillow, idna, docutils, charset-normalizer, chardet, certifi, requests, Kivy-Garden, kivy, kivymd, katrain
Successfully installed Kivy-Garden-0.1.5 certifi-2023.7.22 chardet-5.1.0 charset-normalizer-3.2.0 docutils-0.20.1 ffpyplayer-4.5.0 idna-3.4 katrain-1.14.0 kivy-2.2.1 kivy-deps.angle-0.3.3 kivy-deps.glew-0.3.1 kivy-deps.gstreamer-0.3.3 kivy-deps.sdl2-0.6.0 kivymd-0.104.1 pillow-10.0.0 pygments-2.15.1 pypiwin32-223 pywin32-306 requests-2.31.0 screeninfo-0.8.1 urllib3-2.0.4 wheel-0.41.0
[notice] A new release of pip available: 22.3.1 -> 23.2.1
[notice] To update, run: python.exe -m pip install --upgrade pip
(VENV_tmp) C:\tmp>
sanderland commented
I see the requirements.txt has diverged a bit from setup (pip install .
) - fixed in d1b4b1c