Open blaq777 opened 1 year ago
Try removing "--use-feature=2020-resolver" from the last line of install_windows.bat and run it again.
And thanks for taking the trouble to copy the text from the terminal to the github issue! There's been too many where people have either posted a photo of their monitor, or didn't add anything useful at all.
I edited your post, selected the log and marked it as code (the <> button) to make it easier to read.
I'm having the same issue please how do I resolve it?
(base) C:\Users\Paparazzi>git clone https://github.com/alievk/avatarify-python.git fatal: destination path 'avatarify-python' already exists and is not an empty directory. (base) C:\Users\Paparazzi>cd avatarify-python (base) C:\Users\Paparazzi\avatarify-python>scripts\install_windows.bat conda found Collecting package metadata (current_repodata.json): done Solving environment: done ## Package Plan ## environment location: C:\Users\Paparazzi\AppData\Local\miniconda3\envs\avatarify added / updated specs: - python=3.7 The following NEW packages will be INSTALLED: ca-certificates pkgs/main/win-64::ca-certificates-2022.10.11-haa95532_0 certifi pkgs/main/win-64::certifi-2022.12.7-py37haa95532_0 openssl pkgs/main/win-64::openssl-1.1.1s-h2bbff1b_0 pip pkgs/main/win-64::pip-22.3.1-py37haa95532_0 python pkgs/main/win-64::python-3.7.15-h6244533_1 setuptools pkgs/main/win-64::setuptools-65.6.3-py37haa95532_0 sqlite pkgs/main/win-64::sqlite-3.40.1-h2bbff1b_0 vc pkgs/main/win-64::vc-14.2-h21ff451_1 vs2015_runtime pkgs/main/win-64::vs2015_runtime-14.27.29016-h5e58377_2 wheel pkgs/main/noarch::wheel-0.37.1-pyhd3eb1b0_0 wincertstore pkgs/main/win-64::wincertstore-0.2-py37haa95532_2 Downloading and Extracting Packages Preparing transaction: done Verifying transaction: done Executing transaction: done # # To activate this environment, use # # $ conda activate avatarify # # To deactivate an active environment, use # # $ conda deactivate Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): failed CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/conda-forge/noarch/repodata.json> Elapsed: - An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. 'https//conda.anaconda.org/conda-forge/noarch' Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: done ## Package Plan ## environment location: C:\Users\Paparazzi\AppData\Local\miniconda3\envs\avatarify added / updated specs: - cudatoolkit=11.0 - pytorch==1.7.1 - torchvision The following packages will be downloaded: package | build ---------------------------|----------------- blas-1.0 | mkl 6 KB cudatoolkit-11.0.221 | h74a9793_0 627.0 MB freetype-2.12.1 | ha860e81_0 490 KB intel-openmp-2021.4.0 | haa95532_3556 2.2 MB jpeg-9b | hb83a4c4_2 245 KB lerc-3.0 | hd77b12b_0 120 KB libdeflate-1.8 | h2bbff1b_5 46 KB libpng-1.6.37 | h2a8f88b_0 333 KB libtiff-4.5.0 | h8a3f274_0 1.2 MB libuv-1.40.0 | he774522_0 255 KB libwebp-1.2.4 | h2bbff1b_0 67 KB libwebp-base-1.2.4 | h2bbff1b_0 279 KB lz4-c-1.9.4 | h2bbff1b_0 143 KB mkl-2021.4.0 | haa95532_640 114.9 MB mkl-service-2.4.0 | py37h2bbff1b_0 49 KB mkl_fft-1.3.1 | py37h277e83a_0 135 KB mkl_random-1.2.2 | py37hf11a4ad_0 216 KB ninja-1.10.2 | haa95532_5 14 KB ninja-base-1.10.2 | h6d14046_5 255 KB numpy-1.21.5 | py37h7a0a035_3 25 KB numpy-base-1.21.5 | py37hca35cd5_3 4.4 MB pillow-9.3.0 | py37hdc2b20a_1 1009 KB pytorch-1.7.1 |py3.7_cuda110_cudnn8_0 1007.2 MB pytorch tk-8.6.12 | h2bbff1b_0 3.1 MB torchvision-0.8.2 | py37_cu110 7.2 MB pytorch xz-5.2.10 | h8cc25b3_0 609 KB zlib-1.2.13 | h8cc25b3_0 113 KB zstd-1.5.2 | h19a0ad4_0 509 KB ------------------------------------------------------------ Total: 1.73 GB The following NEW packages will be INSTALLED: blas pkgs/main/win-64::blas-1.0-mkl cudatoolkit pkgs/main/win-64::cudatoolkit-11.0.221-h74a9793_0 flit-core pkgs/main/noarch::flit-core-3.6.0-pyhd3eb1b0_0 freetype pkgs/main/win-64::freetype-2.12.1-ha860e81_0 intel-openmp pkgs/main/win-64::intel-openmp-2021.4.0-haa95532_3556 jpeg pkgs/main/win-64::jpeg-9b-hb83a4c4_2 lerc pkgs/main/win-64::lerc-3.0-hd77b12b_0 libdeflate pkgs/main/win-64::libdeflate-1.8-h2bbff1b_5 libpng pkgs/main/win-64::libpng-1.6.37-h2a8f88b_0 libtiff pkgs/main/win-64::libtiff-4.5.0-h8a3f274_0 libuv pkgs/main/win-64::libuv-1.40.0-he774522_0 libwebp pkgs/main/win-64::libwebp-1.2.4-h2bbff1b_0 libwebp-base pkgs/main/win-64::libwebp-base-1.2.4-h2bbff1b_0 lz4-c pkgs/main/win-64::lz4-c-1.9.4-h2bbff1b_0 mkl pkgs/main/win-64::mkl-2021.4.0-haa95532_640 mkl-service pkgs/main/win-64::mkl-service-2.4.0-py37h2bbff1b_0 mkl_fft pkgs/main/win-64::mkl_fft-1.3.1-py37h277e83a_0 mkl_random pkgs/main/win-64::mkl_random-1.2.2-py37hf11a4ad_0 ninja pkgs/main/win-64::ninja-1.10.2-haa95532_5 ninja-base pkgs/main/win-64::ninja-base-1.10.2-h6d14046_5 numpy pkgs/main/win-64::numpy-1.21.5-py37h7a0a035_3 numpy-base pkgs/main/win-64::numpy-base-1.21.5-py37hca35cd5_3 pillow pkgs/main/win-64::pillow-9.3.0-py37hdc2b20a_1 pytorch pytorch/win-64::pytorch-1.7.1-py3.7_cuda110_cudnn8_0 six pkgs/main/noarch::six-1.16.0-pyhd3eb1b0_1 tk pkgs/main/win-64::tk-8.6.12-h2bbff1b_0 torchvision pytorch/win-64::torchvision-0.8.2-py37_cu110 typing_extensions pkgs/main/win-64::typing_extensions-4.4.0-py37haa95532_0 xz pkgs/main/win-64::xz-5.2.10-h8cc25b3_0 zlib pkgs/main/win-64::zlib-1.2.13-h8cc25b3_0 zstd pkgs/main/win-64::zstd-1.5.2-h19a0ad4_0 Downloading and Extracting Packages CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/pytorch/win-64/pytorch-1.7.1-py3.7_cuda110_cudnn8_0.tar.bz2> Elapsed: - An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/mkl-2021.4.0-haa95532_640.conda> Elapsed: - An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/cudatoolkit-11.0.221-h74a9793_0.conda> Elapsed: - An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. Collecting package metadata (current_repodata.json): done Solving environment: done WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(141): Could not remove or rename C:\Users\Paparazzi\AppData\Local\miniconda3\pkgs\pytorch-1.7.1-py3.7_cuda110_cudnn8_0.tar.bz2. Please remove this file manually (you may need to reboot to free file handles) ## Package Plan ## environment location: C:\Users\Paparazzi\AppData\Local\miniconda3\envs\avatarify added / updated specs: - git The following packages will be downloaded: package | build ---------------------------|----------------- ca-certificates-2022.4.26 | haa95532_0 163 KB anaconda certifi-2022.6.15 | py37haa95532_0 157 KB anaconda git-2.34.1 | haa95532_0 95.5 MB anaconda ------------------------------------------------------------ Total: 95.8 MB The following NEW packages will be INSTALLED: git anaconda/win-64::git-2.34.1-haa95532_0 The following packages will be SUPERSEDED by a higher-priority channel: ca-certificates pkgs/main::ca-certificates-2022.10.11~ --> anaconda::ca-certificates-2022.4.26-haa95532_0 certifi pkgs/main::certifi-2022.12.7-py37haa9~ --> anaconda::certifi-2022.6.15-py37haa95532_0 Downloading and Extracting Packages CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/anaconda/win-64/git-2.34.1-haa95532_0.tar.bz2> Elapsed: - An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. The system cannot find the file specified. Cloning into 'fomm'... remote: Enumerating objects: 211, done. error: RPC failed; curl 92 HTTP/2 stream 5 was not closed cleanly before end of the underlying stream error: 1862 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output Usage: pip install [options] <requirement specifier> [package-index-options] ... pip install [options] -r <requirements file> [package-index-options] ... pip install [options] [-e] <vcs project url> ... pip install [options] [-e] <local project path> ... pip install [options] <archive url/path> ... option --use-feature: invalid choice: '2020-resolver' (choose from 'fast-deps', 'truststore', 'no-binary-enable-wheel-cache') (avatarify) C:\Users\Paparazzi\avatarify-python>
bro have you gotten your rectified?
1: Navigate to /path/to/avatarify-python/scripts
2: Open "install_windows.bat" in an editor like notepad or notepad++.
3: On the line that has "pip install -r requirements.txt --use-feature==2020-resolver"
4: Delete "--use-feature==2020-resolver"
5: Head back to "avatarify-python" directory edit the "requirements.txt" file.
Edit first line to -> "opencv-python>=4.2.0.34"
Run install_windows.bat again
Problem solved...
I did and this is what I got after removing 2020 resolver
Please assistance will be needed should I wait for the solving environment again?
option --use-feature: invalid choice: '2020-resolver' (choose from 'fast-deps', 'truststore', 'no-binary-enable-wheel-cache')
(avatarify) C:\Users\HP\avatarify-python>scripts\install_windows.bat conda found Collecting package metadata (current_repodata.json): done Solving environment: done
==> WARNING: A newer version of conda exists. <== current version: 4.12.0 latest version: 23.3.0
Please update conda by running
$ conda update -n base -c defaults conda Package Plan
environment location: C:\ProgramData\Miniconda3\envs\avatarify
added / updated specs:
The following packages will be downloaded:
package | build |
---|---|
ca-certificates-2023.01.10 | haa95532_0 121 KB |
certifi-2022.12.7 | py37haa95532_0 149 KB |
Total: 270 KB
The following NEW packages will be INSTALLED:
ca-certificates pkgs/main/win-64::ca-certificates-2023.01.10-haa95532_0 certifi pkgs/main/win-64::certifi-2022.12.7-py37haa95532_0 openssl pkgs/main/win-64::openssl-1.1.1t-h2bbff1b_0 pip pkgs/main/win-64::pip-22.3.1-py37haa95532_0 python pkgs/main/win-64::python-3.7.16-h6244533_0 setuptools pkgs/main/win-64::setuptools-65.6.3-py37haa95532_0 sqlite pkgs/main/win-64::sqlite-3.41.1-h2bbff1b_0 vc pkgs/main/win-64::vc-14.2-h21ff451_1 vs2015_runtime pkgs/main/win-64::vs2015_runtime-14.27.29016-h5e58377_2 wheel pkgs/main/win-64::wheel-0.38.4-py37haa95532_0 wincertstore pkgs/main/win-64::wincertstore-0.2-py37haa95532_2
Downloading and Extracting Packages certifi-2022.12.7 | 149 KB | ############################################################################################################################ | 100% ca-certificates-2023 | 121 KB | ############################################################################################################################ | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done ERROR conda.core.link:_execute(730): An error occurred while installing package 'defaults::vs2015_runtime-14.27.29016-h5e58377_2'. Rolling back transaction: done
[Errno 13] Permission denied: 'C:\ProgramData\Miniconda3\envs\avatarify\vcruntime140.dll' ()
Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata.json): done Solving environment: |
Try removing "--use-feature=2020-resolver" from the last line of install_windows.bat and run it again.
And thanks for taking the trouble to copy the text from the terminal to the github issue! There's been too many where people have either posted a photo of their monitor, or didn't add anything useful at all.
I edited your post, selected the log and marked it as code (the <> button) to make it easier to read.
Please how can I do that? i need more enlightenment