Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on install, "PackagesNotFoundError" "pytorch==2.3.1[build='^py3.10_cuda11.8$']" #428

Open
TheCrake opened this issue Dec 3, 2024 · 9 comments
Labels
bug Something isn't working downstream-fix Likely requires fixing another project downstream installation installation related problems stale

Comments

@TheCrake
Copy link

TheCrake commented Dec 3, 2024

Using the installer I get the following error every time, anything I should try

Transcript started, output file is LAItts-generation-webui-maininstaller_scriptsoutput.log
Downloading micromamba from httpsgithub.comeasydiffusioneasydiffusionreleasesdownloadv1.1micromamba.exe to LAItts-generation-webui-maininstaller_filesmambamicromamba.exe
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 ------ ------ ------     0
100 8028k  100 8028k    0     0  9571k      0 ------ ------ ------ 42.6M
Micromamba version
0.26.0
Checking if the MicromambaConda environment is already installed.
Creating the MicromambaConda environment in LAItts-generation-webui-maininstaller_filesenv

                                           __
          __  ______ ___  ____ _____ ___   _  ____ _
             __ `__  __ ` __ `__  __  __ `
         _       _       _  _ 
        .____ _ ___,__ _ __._____,_
      _

Empty environment created at prefix LAItts-generation-webui-maininstaller_filesenv
Packages to installgit python=3.10.11 conda-forgenodejs=22.9.0 conda pip==23.3.2 conda-forgeuv=0.4.17 conda-forge
                                           __
          __  ______ ___  ____ _____ ___   _  ____ _
             __ `__  __ ` __ `__  __  __ `
         _       _       _  _ 
        .____ _ ___,__ _ __._____,_
      _

conda-forgenoarch                                  20.4MB @   7.9MBs  3.0s
conda-forgewin-64                                  30.4MB @   5.4MBs  6.3s

Transaction

  Prefix LAItts-generation-webui-maininstaller_filesenv

  Updating specs

   - git
   - python=3.10.11
   - conda-forgenodejs=22.9.0
   - conda
   - pip==23.3.2
   - conda-forgeuv=0.4.17
   - conda-forgevswhere


  Package                         Version  Build               Channel                 Size
---------------------------------------------------------------------------------------------
  Install
---------------------------------------------------------------------------------------------

  + archspec                        0.2.3  pyhd8ed1ab_0        conda-forgenoarch      49kB
  + boltons                        24.0.0  pyhd8ed1ab_0        conda-forgenoarch     298kB
  + brotli-python                   1.1.0  py310h9e98ed7_2     conda-forgewin-64     322kB
  + bzip2                           1.0.8  h2466b09_7          conda-forgewin-64      55kB
  + ca-certificates             2024.8.30  h56e8100_0          conda-forgewin-64     159kB
  + certifi                     2024.8.30  pyhd8ed1ab_0        conda-forgenoarch     164kB
  + cffi                           1.17.1  py310ha8f682b_0     conda-forgewin-64     239kB
  + charset-normalizer              3.4.0  pyhd8ed1ab_1        conda-forgenoarch      48kB
  + colorama                        0.4.6  pyhd8ed1ab_1        conda-forgenoarch      27kB
  + conda                         24.11.0  py310h5588dad_0     conda-forgewin-64     931kB
  + conda-libmamba-solver         24.11.0  pyhd8ed1ab_0        conda-forgenoarch      41kB
  + conda-package-handling          2.4.0  pyh7900ff3_0        conda-forgenoarch     258kB
  + conda-package-streaming        0.11.0  pyhd8ed1ab_0        conda-forgenoarch      21kB
  + cpp-expected                    1.1.0  h91493d7_0          conda-forgewin-64      24kB
  + distro                          1.9.0  pyhd8ed1ab_0        conda-forgenoarch      42kB
  + fmt                            11.0.2  h7f575de_0          conda-forgewin-64     189kB
  + frozendict                      2.4.6  py310ha8f682b_0     conda-forgewin-64      47kB
  + git                            2.47.1  h57928b3_0          conda-forgewin-64     122MB
  + h2                              4.1.0  pyhd8ed1ab_0        conda-forgenoarch      47kB
  + hpack                           4.0.0  pyh9f0ad1d_0        conda-forgenoarch      25kB
  + hyperframe                      6.0.1  pyhd8ed1ab_0        conda-forgenoarch      15kB
  + idna                             3.10  pyhd8ed1ab_1        conda-forgenoarch      50kB
  + jsonpatch                        1.33  pyhd8ed1ab_0        conda-forgenoarch      17kB
  + jsonpointer                     3.0.0  py310h5588dad_1     conda-forgewin-64      41kB
  + krb5                           1.21.3  hdf4eb48_0          conda-forgewin-64     712kB
  + libarchive                      3.7.7  h88ece9c_0          conda-forgewin-64     977kB
  + libcurl                        8.10.1  h1ee3ff0_0          conda-forgewin-64     342kB
  + libffi                          3.4.2  h8ffe710_5          conda-forgewin-64      42kB
  + libiconv                         1.17  hcfcfb64_2          conda-forgewin-64     636kB
  + libmamba                        2.0.4  h81425b0_0          conda-forgewin-64       4MB
  + libmambapy                      2.0.4  py310h38857ff_0     conda-forgewin-64     425kB
  + libsolv                        0.7.30  hbb528cf_0          conda-forgewin-64     429kB
  + libsqlite                      3.47.0  h2466b09_1          conda-forgewin-64     892kB
  + libssh2                        1.11.1  he619c9f_0          conda-forgewin-64     292kB
  + libxml2                        2.13.5  h442d1da_0          conda-forgewin-64       2MB
  + libzlib                         1.3.1  h2466b09_2          conda-forgewin-64      55kB
  + lz4-c                           1.9.4  hcfcfb64_0          conda-forgewin-64     134kB
  + lzo                              2.10  hcfcfb64_1001       conda-forgewin-64     143kB
  + menuinst                        2.2.0  py310h9e98ed7_0     conda-forgewin-64     107kB
  + nlohmann_json                  3.11.3  he0c23c2_1          conda-forgewin-64     124kB
  + nodejs                         22.9.0  h57928b3_0          conda-forgewin-64      25MB
  + openssl                         3.4.0  h2466b09_0          conda-forgewin-64       8MB
  + packaging                        24.2  pyhd8ed1ab_2        conda-forgenoarch      60kB
  + pip                            23.3.2  pyhd8ed1ab_0        conda-forgenoarch       1MB
  + platformdirs                    4.3.6  pyhd8ed1ab_1        conda-forgenoarch      20kB
  + pluggy                          1.5.0  pyhd8ed1ab_1        conda-forgenoarch      24kB
  + pybind11-abi                        4  hd8ed1ab_3          conda-forgenoarch      10kB
  + pycosat                         0.6.6  py310ha8f682b_2     conda-forgewin-64      75kB
  + pycparser                        2.22  pyh29332c3_1        conda-forgenoarch     110kB
  + pysocks                         1.7.1  pyh09c184e_7        conda-forgenoarch      22kB
  + python                        3.10.11  h4de0772_0_cpython  conda-forgewin-64      16MB
  + python_abi                       3.10  5_cp310             conda-forgewin-64       7kB
  + reproc                   14.2.5.post0  h2466b09_0          conda-forgewin-64      37kB
  + reproc-cpp               14.2.5.post0  he0c23c2_0          conda-forgewin-64      30kB
  + requests                       2.32.3  pyhd8ed1ab_1        conda-forgenoarch      59kB
  + ruamel.yaml                    0.18.6  py310ha8f682b_1     conda-forgewin-64     204kB
  + ruamel.yaml.clib                0.2.8  py310ha8f682b_1     conda-forgewin-64     110kB
  + setuptools                     75.6.0  pyhff2d567_1        conda-forgenoarch     774kB
  + simdjson                       3.10.1  hc790b64_0          conda-forgewin-64     249kB
  + spdlog                         1.14.1  h9f2357e_1          conda-forgewin-64     169kB
  + tk                             8.6.13  h5226925_1          conda-forgewin-64       4MB
  + tqdm                           4.67.1  pyhd8ed1ab_0        conda-forgenoarch      89kB
  + truststore                     0.10.0  pyhd8ed1ab_0        conda-forgenoarch      22kB
  + tzdata                          2024b  hc8b5060_0          conda-forgenoarch     122kB
  + ucrt                     10.0.22621.0  h57928b3_1          conda-forgewin-64     560kB
  + urllib3                         2.2.3  pyhd8ed1ab_1        conda-forgenoarch      98kB
  + uv                             0.4.17  ha08ef0e_0          conda-forgewin-64      10MB
  + vc                               14.3  ha32ba9b_23         conda-forgewin-64      17kB
  + vc14_runtime              14.42.34433  he29a5d6_23         conda-forgewin-64     754kB
  + vs2015_runtime            14.42.34433  hdffcdeb_23         conda-forgewin-64      18kB
  + vswhere                         3.1.7  h57928b3_0          conda-forgewin-64     219kB
  + wheel                          0.45.1  pyhd8ed1ab_1        conda-forgenoarch      63kB
  + win_inet_pton                   1.1.0  pyh7428d3b_8        conda-forgenoarch      10kB
  + xz                              5.2.6  h8d14728_0          conda-forgewin-64     218kB
  + yaml-cpp                        0.8.0  h63175ca_0          conda-forgewin-64     137kB
  + zstandard                      0.23.0  py310he5e10e1_1     conda-forgewin-64     311kB
  + zstd                            1.5.6  h0ea2cb4_0          conda-forgewin-64     349kB

  Summary

  Install 77 packages

  Total download 206MB

---------------------------------------------------------------------------------------------


Transaction starting
ca-certificates                                    158.8kB @ 847.2kBs  0.2s
vswhere                                            219.0kB @   1.2MBs  0.2s
ucrt                                               559.7kB @   2.6MBs  0.2s
lzo                                                142.8kB @ 532.1kBs  0.1s
simdjson                                           248.8kB @ 888.2kBs  0.1s
lz4-c                                              134.2kB @ 355.0kBs  0.1s
libzlib                                             55.5kB @ 144.1kBs  0.1s
xz                                                 217.8kB @ 412.6kBs  0.2s
krb5                                               712.0kB @   1.2MBs  0.2s
libsolv                                            429.1kB @ 596.2kBs  0.2s
nodejs                                              25.4MB @  32.5MBs  0.8s
pybind11-abi                                         9.9kB @  11.7kBs  0.1s
libarchive                                         977.3kB @   1.1MBs  0.3s
setuptools                                         774.3kB @ 910.0kBs  0.1s
win_inet_pton                                        9.6kB @  10.5kBs  0.1s
idna                                                49.8kB @  53.4kBs  0.1s
certifi                                            163.8kB @ 169.9kBs  0.1s
boltons                                            297.9kB @ 298.8kBs  0.1s
pluggy                                              23.6kB @  23.5kBs  0.1s
h2                                                  46.8kB @  44.7kBs  0.1s
menuinst                                           107.0kB @  99.5kBs  0.1s
ruamel.yaml.clib                                   110.5kB @ 101.6kBs  0.1s
jsonpatch                                           17.4kB @  15.3kBs  0.1s
cffi                                               238.9kB @ 210.2kBs  0.1s
conda-package-handling                             257.8kB @ 219.0kBs  0.1s
vc                                                  17.5kB @  14.5kBs  0.1s
openssl                                              8.5MB @   7.0MBs  1.0s
conda-libmamba-solver                               40.9kB @  33.0kBs  0.1s
fmt                                                188.9kB @ 148.9kBs  0.1s
nlohmann_json                                      124.3kB @  97.3kBs  0.1s
libsqlite                                          892.2kB @ 666.0kBs  0.1s
libssh2                                            291.9kB @ 217.9kBs  0.1s
libffi                                              42.1kB @  31.1kBs  0.1s
libcurl                                            342.4kB @ 252.2kBs  0.1s
wheel                                               62.9kB @  44.6kBs  0.1s
colorama                                            27.0kB @  19.0kBs  0.1s
packaging                                           60.2kB @  42.2kBs  0.1s
archspec                                            48.8kB @  33.1kBs  0.1s
brotli-python                                      321.6kB @ 216.1kBs  0.1s
jsonpointer                                         40.7kB @  27.1kBs  0.1s
zstandard                                          311.3kB @ 200.8kBs  0.1s
requests                                            58.7kB @  37.5kBs  0.1s
vc14_runtime                                       754.2kB @ 473.2kBs  0.1s
reproc                                              37.1kB @  22.7kBs  0.1s
bzip2                                               54.9kB @  33.3kBs  0.1s
reproc-cpp                                          30.1kB @  18.1kBs  0.1s
zstd                                               349.1kB @ 204.4kBs  0.1s
pip                                                  1.4MB @ 799.8kBs  0.1s
hpack                                               25.3kB @  14.3kBs  0.1s
tqdm                                                89.5kB @  49.5kBs  0.1s
distro                                              42.0kB @  23.2kBs  0.1s
pycosat                                             75.3kB @  40.6kBs  0.1s
vs2015_runtime                                      17.6kB @   9.3kBs  0.1s
urllib3                                             98.1kB @  52.0kBs  0.1s
spdlog                                             169.1kB @  83.3kBs  0.2s
libmamba                                             4.3MB @   2.1MBs  0.2s
truststore                                          21.8kB @  10.2kBs  0.1s
pysocks                                             21.8kB @   9.9kBs  0.1s
tk                                                   3.5MB @   1.6MBs  0.4s
ruamel.yaml                                        203.6kB @  91.1kBs  0.1s
python_abi                                           6.7kB @   3.0kBs  0.1s
tzdata                                             122.4kB @  52.4kBs  0.1s
platformdirs                                        20.4kB @   8.7kBs  0.1s
python                                              16.1MB @   6.7MBs  1.1s
frozendict                                          47.2kB @  19.1kBs  0.2s
libiconv                                           636.1kB @ 254.7kBs  0.2s
uv                                                   9.6MB @   3.7MBs  0.4s
charset-normalizer                                  47.5kB @  18.3kBs  0.2s
conda                                              931.3kB @ 351.0kBs  0.2s
libxml2                                              1.5MB @ 568.8kBs  0.2s
pycparser                                          110.1kB @  41.2kBs  0.1s
libmambapy                                         424.5kB @ 158.3kBs  0.1s
conda-package-streaming                             20.6kB @   7.5kBs  0.1s
hyperframe                                          14.6kB @   5.3kBs  0.2s
cpp-expected                                        23.9kB @   8.4kBs  0.2s
yaml-cpp                                           136.6kB @  47.9kBs  0.2s
git                                                122.1MB @  35.4MBs  4.0s
Linking nodejs-22.9.0-h57928b3_0
Linking git-2.47.1-h57928b3_0
Linking vswhere-3.1.7-h57928b3_0
Linking ucrt-10.0.22621.0-h57928b3_1
Linking ca-certificates-2024.8.30-h56e8100_0
Linking python_abi-3.10-5_cp310
Linking vc14_runtime-14.42.34433-he29a5d6_23
Linking vc-14.3-ha32ba9b_23
Linking vs2015_runtime-14.42.34433-hdffcdeb_23
Linking libiconv-1.17-hcfcfb64_2
Linking lzo-2.10-hcfcfb64_1001
Linking nlohmann_json-3.11.3-he0c23c2_1
Linking simdjson-3.10.1-hc790b64_0
Linking reproc-14.2.5.post0-h2466b09_0
Linking yaml-cpp-0.8.0-h63175ca_0
Linking fmt-11.0.2-h7f575de_0
Linking openssl-3.4.0-h2466b09_0
Linking libsqlite-3.47.0-h2466b09_1
Linking tk-8.6.13-h5226925_1
Linking libzlib-1.3.1-h2466b09_2
Linking bzip2-1.0.8-h2466b09_7
Linking uv-0.4.17-ha08ef0e_0
Linking lz4-c-1.9.4-hcfcfb64_0
Linking cpp-expected-1.1.0-h91493d7_0
Linking libffi-3.4.2-h8ffe710_5
Linking xz-5.2.6-h8d14728_0
Linking reproc-cpp-14.2.5.post0-he0c23c2_0
Linking spdlog-1.14.1-h9f2357e_1
Linking krb5-1.21.3-hdf4eb48_0
Linking libssh2-1.11.1-he619c9f_0
Linking libxml2-2.13.5-h442d1da_0
Linking libsolv-0.7.30-hbb528cf_0
Linking zstd-1.5.6-h0ea2cb4_0
Linking libcurl-8.10.1-h1ee3ff0_0
Linking libarchive-3.7.7-h88ece9c_0
Linking libmamba-2.0.4-h81425b0_0
Linking tzdata-2024b-hc8b5060_0
Linking pybind11-abi-4-hd8ed1ab_3
Linking python-3.10.11-h4de0772_0_cpython
Linking wheel-0.45.1-pyhd8ed1ab_1
Linking setuptools-75.6.0-pyhff2d567_1
Linking pip-23.3.2-pyhd8ed1ab_0
Linking win_inet_pton-1.1.0-pyh7428d3b_8
Linking pycparser-2.22-pyh29332c3_1
Linking hyperframe-6.0.1-pyhd8ed1ab_0
Linking hpack-4.0.0-pyh9f0ad1d_0
Linking idna-3.10-pyhd8ed1ab_1
Linking certifi-2024.8.30-pyhd8ed1ab_0
Linking colorama-0.4.6-pyhd8ed1ab_1
Linking truststore-0.10.0-pyhd8ed1ab_0
Linking platformdirs-4.3.6-pyhd8ed1ab_1
Linking packaging-24.2-pyhd8ed1ab_2
Linking boltons-24.0.0-pyhd8ed1ab_0
Linking distro-1.9.0-pyhd8ed1ab_0
Linking charset-normalizer-3.4.0-pyhd8ed1ab_1
Linking pluggy-1.5.0-pyhd8ed1ab_1
Linking archspec-0.2.3-pyhd8ed1ab_0
Linking pysocks-1.7.1-pyh09c184e_7
Linking h2-4.1.0-pyhd8ed1ab_0
Linking tqdm-4.67.1-pyhd8ed1ab_0
Linking brotli-python-1.1.0-py310h9e98ed7_2
Linking ruamel.yaml.clib-0.2.8-py310ha8f682b_1
Linking libmambapy-2.0.4-py310h38857ff_0
Linking jsonpointer-3.0.0-py310h5588dad_1
Linking menuinst-2.2.0-py310h9e98ed7_0
Linking frozendict-2.4.6-py310ha8f682b_0
Linking pycosat-0.6.6-py310ha8f682b_2
Linking cffi-1.17.1-py310ha8f682b_0
Linking ruamel.yaml-0.18.6-py310ha8f682b_1
Linking zstandard-0.23.0-py310he5e10e1_1
Linking jsonpatch-1.33-pyhd8ed1ab_0
Linking conda-package-streaming-0.11.0-pyhd8ed1ab_0
Linking urllib3-2.2.3-pyhd8ed1ab_1
Linking conda-package-handling-2.4.0-pyh7900ff3_0
Linking requests-2.32.3-pyhd8ed1ab_1
Linking conda-24.11.0-py310h5588dad_0
Linking conda-libmamba-solver-24.11.0-pyhd8ed1ab_0
Transaction finished
vswhere is installed, checking for Visual Studio Build Tools installation...
Visual Studio Build Tools is installed, continuing...


Starting init app (version 0.0.6)...


Checking conda installation...
conda --version
conda 24.11.0

Linking to tts-generation-webui repository
git init -b main
Initialized empty Git repository in LAItts-generation-webui-main.git
git remote add origin httpsgithub.comrsxdalvtts-generation-webui
git fetch
remote Enumerating objects 3486, done.
remote Counting objects 100% (11801180), done.
remote Compressing objects 100% (621621), done.
remote Total 3486 (delta 714), reused 715 (delta 523), pack-reused 2306 (from 1)
Receiving objects 100% (34863486), 33.16 MiB  46.33 MiBs, done.
Resolving deltas 100% (19601960), done.
From httpsgithub.comrsxdalvtts-generation-webui
  [new branch]      gh-pages   - origingh-pages
  [new branch]      main       - originmain
git reset --hard originmain
HEAD is now at 241b687 fix typo in pip install test
git branch --set-upstream-to=originmain
branch 'main' set up to track 'originmain'.
Ensuring that python has the correct version...
Checking python version...
python --version  installer_scripts.python_version

Applying conda config...
  Checking if Torch is installed...
  Major version update detected. Upgrading base environment

These are not yet automatically supported AMD GPU, Intel GPU, Integrated GPU.
Select the device (GPUCPU) you are using to run the application
(use arrow keys to move, enter to select)

 NVIDIA GPU
  Apple M Series Chip
  CPU
  Cancel
  AMD GPU (ROCM, Linux only, potentially broken)
  Intel GPU (unsupported)
  Integrated GPU (unsupported)
  pip torch cpu (experimental, faster install)

  You selected NVIDIA GPU
conda install -y -k conda-forgeuv=0.4.17 conda-forgevswhere  conda-forgepostgresql=16.4 conda-forgenodejs=22.9.0 conda-forgeffmpeg=4.4.2[build=lgpl] pytorch[version=2.3.1,build=py3.10_cuda11.8] pytorch-cuda=11.8 torchvision torchaudio cuda-toolkit ninja  -c pytorch -c nvidialabelcuda-11.8.0 -c nvidia
LAItts-generation-webui-maininstaller_filesenvlibsite-packagescondabasecontext.py200 FutureWarning Adding 'defaults' to channel list implicitly is deprecated and will be removed in 25.3.

To remove this warning, please choose a default channel explicitly with conda's regular configuration system, e.g. by adding 'defaults' to the list of channels

  conda config --add channels defaults

For more information see httpsdocs.conda.ioprojectscondaenstableuser-guideconfigurationuse-condarc.html

  deprecated.topic(
Channels
 - pytorch
 - nvidialabelcuda-11.8.0
 - nvidia
 - defaults
 - conda-forge
Platform win-64
Collecting package metadata (repodata.json) done
Solving environment failed

PackagesNotFoundError The following packages are not available from current channels

  - pytorch==2.3.1[build='^py3.10_cuda11.8$']

Current channels

  - httpsconda.anaconda.orgpytorch
  - httpsconda.anaconda.orgnvidialabelcuda-11.8.0
  - httpsconda.anaconda.orgnvidia
  - defaults
  - httpsconda.anaconda.orgconda-forge

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    httpsanaconda.org

and use the search bar at the top of the page.


Error during installation Command failed with exit code 1
Command failed with exit code 1
'js' is not recognized as an internal or external command,
operable program or batch file.
Failed to init the app, exiting...
'' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .
@rsxdalv
Copy link
Owner

rsxdalv commented Dec 3, 2024

Thanks, I have been trying to figure out the main cause of this error. I see one failure

PackagesNotFoundError The following packages are not available from current channels

  • pytorch==2.3.1[build='^py3.10_cuda11.8$']

This could be an unsupported Windows architecture or something else. I see a few more oddities about this log that could help me diagnose this.

@devcheetah
Copy link

Thanks, I have been trying to figure out the main cause of this error. I see one failure

PackagesNotFoundError The following packages are not available from current channels

* pytorch==2.3.1[build='^py3.10_cuda11.8$']

This could be an unsupported Windows architecture or something else. I see a few more oddities about this log that could help me diagnose this.

This error is happening on a new install in Ubuntu.

@rsxdalv
Copy link
Owner

rsxdalv commented Dec 5, 2024

Thanks, I have been trying to figure out the main cause of this error. I see one failure
PackagesNotFoundError The following packages are not available from current channels

* pytorch==2.3.1[build='^py3.10_cuda11.8$']

This could be an unsupported Windows architecture or something else. I see a few more oddities about this log that could help me diagnose this.

This error is happening on a new install in Ubuntu.

Thanks, that confirms the need for a new version.

@devcheetah
Copy link

devcheetah commented Dec 5, 2024

Thanks, I have been trying to figure out the main cause of this error. I see one failure
PackagesNotFoundError The following packages are not available from current channels

* pytorch==2.3.1[build='^py3.10_cuda11.8$']

This could be an unsupported Windows architecture or something else. I see a few more oddities about this log that could help me diagnose this.

This error is happening on a new install in Ubuntu.

Thanks, that confirms the need for a new version.

In initializeApp.js line 42. I changed it to the following and its installing and running. Granted, I dont know the implications of changing it to install different as I dont have full understanding of the required dependencies for all the things.

const cudaPackages = pytorch==${torchVersion} pytorch-cuda=${cudaVersion} torchvision torchaudio cuda-toolkit ninja;

@rsxdalv
Copy link
Owner

rsxdalv commented Dec 5, 2024

Thanks, I have been trying to figure out the main cause of this error. I see one failure
PackagesNotFoundError The following packages are not available from current channels

* pytorch==2.3.1[build='^py3.10_cuda11.8$']

This could be an unsupported Windows architecture or something else. I see a few more oddities about this log that could help me diagnose this.

This error is happening on a new install in Ubuntu.

I'm a bit lost on this. The source code uses * not $, so does conda decide to reinterpret the installation due to a different conda version? Perhaps the shell/terminal app causes it to change. It should be: pytorch[version=2.3.1,build=py3.10_cuda11.8*]
which appears to work on google colab.

!pip install -q condacolab
import condacolab
condacolab.install() # expect a kernel restart
!conda install -y -k conda-forge::uv=0.4.17  conda-forge::postgresql=16.4 conda-forge::nodejs=22.9.0 conda-forge::ffmpeg=4.4.2[build=lgpl*] pytorch[version=2.3.1,build=py3.10_cuda11.8*] pytorch-cuda=11.8 torchvision torchaudio cuda-toolkit ninja  -c pytorch -c nvidia/label/cuda-11.8.0 -c nvidia

yields:

Channels:
 - pytorch
 - nvidia/label/cuda-11.8.0
 - nvidia
 - conda-forge
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
    current version: 23.11.0
    latest version: 24.11.0

Please update conda by running

    $ conda update -n base -c conda-forge conda



## Package Plan ##

  environment location: /usr/local

  added / updated specs:
    - conda-forge::ffmpeg=4.4.2[build=lgpl*]
    - conda-forge::nodejs=22.9.0
    - conda-forge::postgresql=16.4
    - conda-forge::uv=0.4.17
    - cuda-toolkit
    - ninja
    - pytorch-cuda=11.8
    - pytorch==2.3.1[build=py3.10_cuda11.8*]
    - torchaudio
    - torchvision
  
...

My only guess at the moment is an issue with conda version.

@rsxdalv
Copy link
Owner

rsxdalv commented Dec 17, 2024

Ok, I was able to find the core issue, yes, conda changed things. The current fix would be to downgrade conda to at least conda 24.9.1

I created an issue in conda project:
conda/conda-libmamba-solver#591

rsxdalv added a commit that referenced this issue Dec 17, 2024
@rsxdalv
Copy link
Owner

rsxdalv commented Dec 23, 2024

I hope that this issue has been fixed with the fix that I pushed out last week. I have not seen more reports of this issue, and I was able to confirm the bug and report it to conda team as well; meanwhile implementing a workaround.

@rsxdalv rsxdalv added bug Something isn't working installation installation related problems downstream-fix Likely requires fixing another project downstream stale labels Dec 23, 2024
@arion-allure
Copy link

Still facing similar issue

Not sure if there are workaround I can do in the meanwhile?

Applying conda config...
  Checking if Torch is installed...
  Major version update detected. Upgrading base environment
  Using saved GPU choice: NVIDIA GPU
>conda install -y -k conda-forge::uv=0.4.17 conda-forge::vswhere  conda-forge::postgresql=16.4 conda-forge::nodejs=22.9.0 conda-forge::ffmpeg=4.4.2[build=lgpl*] pytorch[version=2.3.1,build=py3.10_cuda11.8.*] pytorch-cuda=11.8 torchvision torchaudio cuda-toolkit ninja  -c pytorch -c nvidia/label/cuda-11.8.0 -c nvidia
Collecting package metadata (current_repodata.json): \ WARNING conda.models.version:get_matcher(563): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.*, but conda is ignoring the .* and treating it as 1
WARNING conda.models.version:get_matcher(563): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 2.*, but conda is ignoring the .* and treating it as 2
WARNING conda.models.version:get_matcher(563): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 3.*, but conda is ignoring the .* and treating it as 3
- WARNING conda.models.version:get_matcher(563): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 3.*, but conda is ignoring the .* and treating it as 3
\ WARNING conda.models.version:get_matcher(563): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 0.23.*, but conda is ignoring the .* and treating it as 0.23
done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): \ WARNING conda.models.version:get_matcher(563): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 4.dev0.*, but conda is ignoring the .* and treating it as 4.dev0
| WARNING conda.models.version:get_matcher(563): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 1.14.*, but conda is ignoring the .* and treating it as 1.14
/ WARNING conda.core.index:push_records(543): Skipping conda-forge/noarch::willow-1.6.3-pyhd8ed1ab_0 due to InvalidSpec: pillow-heif >=0.10.0,<1.0.0<py312|>=0.13.0,<1.0.0>=py312
/ WARNING conda.core.index:push_records(543): Skipping conda-forge/noarch::willow-1.6.3-pyhd8ed1ab_0 due to InvalidSpec: pillow-heif >=0.10.0,<1.0.0<py312|>=0.13.0,<1.0.0>=py312
/ WARNING conda.models.version:get_matcher(563): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 3.6.*, but conda is ignoring the .* and treating it as 3.6
| WARNING conda.models.version:get_matcher(563): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 2.*, but conda is ignoring the .* and treating it as 2
- WARNING conda.models.version:get_matcher(563): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec was 4.*, but conda is ignoring the .* and treating it as 4
done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - pytorch==2.3.1[build=py3.10_cuda11.8.*]

Current channels:

  - https://conda.anaconda.org/pytorch/win-64
  - https://conda.anaconda.org/pytorch/noarch
  - https://conda.anaconda.org/nvidia/label/cuda-11.8.0/win-64
  - https://conda.anaconda.org/nvidia/label/cuda-11.8.0/noarch
  - https://conda.anaconda.org/nvidia/win-64
  - https://conda.anaconda.org/nvidia/noarch
  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch

To search for alternate channels that may provide the conda package you're
looking for, navigate to

    https://anaconda.org

and use the search bar at the top of the page.

@rsxdalv
Copy link
Owner

rsxdalv commented Jan 14, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working downstream-fix Likely requires fixing another project downstream installation installation related problems stale
Projects
None yet
Development

No branches or pull requests

4 participants