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

Dependency conflict during installation #164

Open
Zforwriting opened this issue Aug 6, 2024 · 0 comments
Open

Dependency conflict during installation #164

Zforwriting opened this issue Aug 6, 2024 · 0 comments

Comments

@Zforwriting
Copy link

Hello, I met a problem when installing the magicAnimate on windows,
how can I resolve this? thank you very much.
the power shell showed:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
torchaudio 2.4.0+cu118 requires torch==2.4.0+cu118, but you have torch 2.0.1+cu118 which is incompatible.
Successfully installed PyWavelets-1.6.0 Shapely-2.0.5 absl-py-1.4.0 accelerate-0.22.0 aiofiles-23.2.1 aiohttp-3.8.5 aiosignal-1.3.1 altair-5.0.1 annotated-types-0.5.0 antlr4-python3-runtime-4.9.3 anyio-3.7.1 async-timeout-4.0.3 attrs-23.1.0 av-12.3.0 cachetools-5.3.1 certifi-2023.7.22 charset-normalizer-3.2.0 click-8.1.7 cmake-3.27.2 colorama-0.4.6 contourpy-1.1.0 cycler-0.11.0 datasets-2.14.4 decord-0.6.0 diffusers-0.21.4 dill-0.3.7 einops-0.6.1 exceptiongroup-1.1.3 fastapi-0.103.0 ffmpeg-python-0.2.0 ffmpy-0.3.1 filelock-3.12.2 fonttools-4.42.1 frozenlist-1.4.0 fsspec-2023.6.0 future-1.0.0 google-auth-2.22.0 google-auth-oauthlib-1.0.0 gradio-4.8.0 gradio-client-0.7.1 grpcio-1.57.0 h11-0.14.0 httpcore-0.17.3 httpx-0.24.1 huggingface-hub-0.16.4 idna-3.4 imageio-2.9.0 imageio-ffmpeg-0.4.3 imgaug-0.4.0 importlib-metadata-6.8.0 importlib-resources-6.0.1 jinja2-3.1.2 joblib-1.3.2 jsonschema-4.19.0 jsonschema-specifications-2023.7.1 kiwisolver-1.4.5 lazy_loader-0.4 lightning-utilities-0.9.0 lit-16.0.6 lpips-0.1.4 markdown-3.4.4 markdown-it-py-3.0.0 markupsafe-2.1.3 matplotlib-3.7.2 mdurl-0.1.2 multidict-6.0.4 multiprocess-0.70.15 networkx-3.1 numpy-1.24.4 oauthlib-3.2.2 omegaconf-2.3.0 opencv-python-4.8.0.76 orjson-3.9.5 packaging-24.1 pandas-2.0.3 pillow-9.5.0 pkgutil-resolve-name-1.3.10 protobuf-4.24.2 psutil-5.9.5 pyarrow-13.0.0 pyasn1-0.5.0 pyasn1-modules-0.3.0 pydantic-2.3.0 pydantic-core-2.6.3 pydub-0.25.1 pygments-2.18.0 pyparsing-3.0.9 python-dateutil-2.9.0.post0 python-multipart-0.0.6 pytorch-lightning-2.0.7 pytz-2023.3 pyyaml-6.0.1 referencing-0.30.2 regex-2023.8.8 requests-2.31.0 requests-oauthlib-1.3.1 rich-13.7.1 rpds-py-0.9.2 rsa-4.9 safetensors-0.3.3 scikit-image-0.20.0 scipy-1.14.0 semantic-version-2.10.0 shellingham-1.5.4 six-1.16.0 sniffio-1.3.0 starlette-0.27.0 tensorboard-2.14.0 tensorboard-data-server-0.7.1 tifffile-2024.7.24 timm-1.0.8 tokenizers-0.13.3 tomlkit-0.12.0 toolz-0.12.0 torch-2.0.1+cu118 torchmetrics-1.1.0 torchvision-0.15.2+cu118 tqdm-4.66.1 transformers-4.32.0 typer-0.12.3 tzdata-2023.3 urllib3-1.26.16 uvicorn-0.23.2 websockets-11.0.3 werkzeug-2.3.7 wheel-0.44.0 xformers-0.0.22 xxhash-3.3.0 yarl-1.9.2 zipp-3.16.2
Checking models...
Creating pretrained_models...

目錄: D:\Alest\magicAnimate\magic-animate-for-windows

Mode LastWriteTime Length Name


d----- 2024/8/6 上午 11:43 pretrained_models
Downloading MagicAnimate models...
Updated Git hooks.
Git LFS initialized.
WARNING: git lfs clone is deprecated and will not be updated
with new flags from git clone

git clone has been updated in upstream Git to have comparable
speeds to git lfs clone.
Cloning into 'MagicAnimate'...
remote: Enumerating objects: 17, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 17 (delta 2), reused 0 (delta 0), pack-reused 4 (from 1)
Unpacking objects: 100% (17/17), 2.84 KiB | 4.00 KiB/s, done.
Do you need to download SD15? If you don't have any SD15 model locally select y, if you want to change to another SD1.5 model select n. [y/n] (Default is y): y
Downloading stable-diffusion-v1-5 models...
WARNING: git lfs clone is deprecated and will not be updated
with new flags from git clone

git clone has been updated in upstream Git to have comparable
speeds to git lfs clone.
Cloning into 'stable-diffusion-v1-5'...
remote: Enumerating objects: 28, done.
remote: Total 28 (delta 0), reused 0 (delta 0), pack-reused 28 (from 1)
Unpacking objects: 100% (28/28), 520.99 KiB | 465.00 KiB/s, done.
Do you need to download control_v11p_sd15_openpose? If you want use it select y, if you dont want select n. [y/n] (Default is y): y
Downloading control_v11p_sd15_openpose models...
WARNING: git lfs clone is deprecated and will not be updated
with new flags from git clone

git clone has been updated in upstream Git to have comparable
speeds to git lfs clone.
Cloning into 'control_v11p_sd15_openpose'...
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 8 (delta 0), reused 0 (delta 0), pack-reused 4 (from 1)
Unpacking objects: 100% (8/8), 1.41 KiB | 6.00 KiB/s, done.
Installing Video_controlnet_aux...), 723 MB | 10 MB/s
Submodule 'video_controlnet_aux' (https://github.com/sdbds/video_controlnet_aux) registered for path '../video_controlnet_aux'
Cloning into 'D:/Alest/magicAnimate/magic-animate-for-windows/video_controlnet_aux'...
error: 4428 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
fatal: clone of 'https://github.com/sdbds/video_controlnet_aux' into submodule path 'D:/Alest/magicAnimate/magic-animate-for-windows/video_controlnet_aux' failed
Failed to clone 'video_controlnet_aux'. Retry scheduled
Cloning into 'D:/Alest/magicAnimate/magic-animate-for-windows/video_controlnet_aux'...
Submodule path '../video_controlnet_aux': checked out '9a86fb8077e0fae573ad5240d615bb0a08765874'
Submodule path '../video_controlnet_aux': checked out '9a86fb8077e0fae573ad5240d615bb0a08765874'
Looking in indexes: https://mirror.baidu.com/pypi/simple, https://download.pytorch.org/whl/cu118
Requirement already satisfied: torch in d:\alest\magicanimate\magic-animate-for-windows\venv\lib\site-packages (from -r requirements.txt (line 2)) (2.0.1+cu118)
Requirement already satisfied: importlib_metadata in d:\alest\magicanimate\magic-animate-for-windows\venv\lib\site-packages (from -r requirements.txt (line 3)) (6.8.0)
Requirement already satisfied: huggingface_hub in d:\alest\magicanimate\magic-animate-for-windows\venv\lib\site-packages (from -r requirements.txt (line 4)) (0.16.4)
Requirement already satisfied: scipy in d:\alest\magicanimate\magic-animate-for-windows\venv\lib\site-packages (from -r requirements.txt (line 5)) (1.14.0)
Requirement already satisfied: opencv-python>=4.7.0.72 in d:\alest\magicanimate\magic-animate-for-windows\venv\lib\site-packages (from -r requirements.txt (line 6)) (4.8.0.76)
Requirement already satisfied: filelock in d:\alest\magicanimate\magic-animate-for-windows\venv\lib\site-packages (from -r requirements.txt (line 7)) (3.12.2)
Requirement already satisfied: numpy in d:\alest\magicanimate\magic-animate-for-windows\venv\lib\site-packages (from -r requirements.txt (line 8)) (1.24.4)
Requirement already satisfied: Pillow in d:\alest\magicanimate\magic-animate-for-windows\venv\lib\site-packages (from -r requirements.txt (line 9)) (9.5.0)
Requirement already satisfied: einops in d:\alest\magicanimate\magic-animate-for-windows\venv\lib\site-packages (from -r requirements.txt (line 10)) (0.6.1)
Requirement already satisfied: torchvision in d:\alest\magicanimate\magic-animate-for-windows\venv\lib\site-packages (from -r requirements.txt (line 11)) (0.15.2+cu118)
Requirement already satisfied: pyyaml in d:\alest\magicanimate\magic-animate-for-windows\venv\lib\site-packages (from -r requirements.txt (line 12)) (6.0.1)
Requirement already satisfied: scikit-image in d:\alest\magicanimate\magic-animate-for-windows\venv\lib\site-packages (from -r requirements.txt (line 13)) (0.20.0)
Requirement already satisfied: python-dateutil in d:\alest\magicanimate\magic-animate-for-windows\venv\lib\site-packages (from -r requirements.txt (line 14)) (2.9.0.post0)
Collecting mediapipe
Using cached https://mirror.baidu.com/pypi/packages/ea/1b/79e1ddc041012f5e5a7d60cbfd8cfe6037c5c87f4e77b4fdc0f9dfa2d44e/mediapipe-0.10.14-cp310-cp310-win_amd64.whl (50.8 MB)
Collecting svglib
Using cached svglib-1.5.1-py3-none-any.whl
Collecting fvcore
Using cached fvcore-0.1.5.post20221221-py3-none-any.whl
Collecting yapf
Using cached https://mirror.baidu.com/pypi/packages/66/c9/d4b03b2490107f13ebd68fe9496d41ae41a7de6275ead56d0d4621b11ffd/yapf-0.40.2-py3-none-any.whl (254 kB)
Requirement already satisfied: omegaconf in d:\alest\magicanimate\magic-animate-for-windows\venv\lib\site-packages (from -r requirements.txt (line 19)) (2.3.0)

WARNING: Skipping page https://mirror.baidu.com/pypi/simple/ftfy/ because the GET request got Content-Type: application/octet-stream. The only supported Content-Types are application/vnd.pypi.simple.v1+json, application/vnd.pypi.simple.v1+html, and text/html
ERROR: Could not find a version that satisfies the requirement ftfy (from versions: none)
ERROR: No matching distribution found for ftfy
Looking in indexes: https://mirror.baidu.com/pypi/simple

Collecting moviepy
Using cached moviepy-1.0.3-py3-none-any.whl
Collecting mediapipe
Using cached https://mirror.baidu.com/pypi/packages/ea/1b/79e1ddc041012f5e5a7d60cbfd8cfe6037c5c87f4e77b4fdc0f9dfa2d44e/mediapipe-0.10.14-cp310-cp310-win_amd64.whl (50.8 MB)
Collecting openmim
Using cached https://mirror.baidu.com/pypi/packages/00/b3/95531cee452028869d0e08974561f83e9c256c98f62c7a45a51893a61c54/openmim-0.3.9-py2.py3-none-any.whl (52 kB)
Requirement already satisfied: requests<3.0,>=2.8.1 in d:\alest\magicanimate\magic-animate-for-windows\venv\lib\site-packages (from moviepy->-r requirements-video.txt (line 1)) (2.31.0)
Collecting decorator<5.0,>=4.0.2
Using cached https://mirror.baidu.com/pypi/packages/ed/1b/72a1821152d07cf1d8b6fce298aeb06a7eb90f4d6d41acec9861e7cc6df0/decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Requirement already satisfied: numpy>=1.17.3 in d:\alest\magicanimate\magic-animate-for-windows\venv\lib\site-packages (from moviepy->-r requirements-video.txt (line 1)) (1.24.4)
Requirement already satisfied: imageio-ffmpeg>=0.2.0 in d:\alest\magicanimate\magic-animate-for-windows\venv\lib\site-packages (from moviepy->-r requirements-video.txt (line 1)) (0.4.3)
Requirement already satisfied: tqdm<5.0,>=4.11.2 in d:\alest\magicanimate\magic-animate-for-windows\venv\lib\site-packages (from moviepy->-r requirements-video.txt (line 1)) (4.66.1)
Requirement already satisfied: imageio<3.0,>=2.5 in d:\alest\magicanimate\magic-animate-for-windows\venv\lib\site-packages (from moviepy->-r requirements-video.txt (line 1)) (2.9.0)
Collecting proglog<=1.0.0
Using cached https://mirror.baidu.com/pypi/packages/8b/f5/cab5cf6a540c31f5099043de0ae43990fd9cf66f75ecb5e9f254a4e4d4ee/proglog-0.1.10-py3-none-any.whl (6.1 kB)
Collecting flatbuffers>=2.0
Using cached https://mirror.baidu.com/pypi/packages/41/f0/7e988a019bc54b2dbd0ad4182ef2d53488bb02e58694cd79d61369e85900/flatbuffers-24.3.25-py2.py3-none-any.whl (26 kB)

WARNING: Skipping page https://mirror.baidu.com/pypi/simple/protobuf/ because the GET request got Content-Type: application/octet-stream. The only supported Content-Types are application/vnd.pypi.simple.v1+json, application/vnd.pypi.simple.v1+html, and text/html

Collecting mediapipe
Using cached https://mirror.baidu.com/pypi/packages/bb/b7/ffcdd19de3bf443864d0b0fed2b102275b96cbfbc1ddcf96ad811bbc1af0/mediapipe-0.10.13-cp310-cp310-win_amd64.whl (50.8 MB)
Using cached https://mirror.baidu.com/pypi/packages/12/50/9c24e158350d3f93be669db291fb452f21a25d874c94c5758374be82fff1/mediapipe-0.10.11-cp310-cp310-win_amd64.whl (50.8 MB)
Using cached https://mirror.baidu.com/pypi/packages/91/9b/d69c4c8080512a379f728c584e71683eb964e09df0cf68f6262a4108e1bd/mediapipe-0.10.10-cp310-cp310-win_amd64.whl (50.7 MB)
Using cached https://mirror.baidu.com/pypi/packages/e2/a9/98e0197b24165113ac551aae5646005205f88347fb13ac59a75a9864e1d3/mediapipe-0.10.9-cp310-cp310-win_amd64.whl (50.5 MB)
Using cached https://mirror.baidu.com/pypi/packages/e4/a5/d652d2508064bde4161cdcf7623aa95e4fc71bd0ed6ca62badb93a10a156/mediapipe-0.10.8-cp310-cp310-win_amd64.whl (50.5 MB)
Using cached https://mirror.baidu.com/pypi/packages/2e/ea/651d48e111b5ba53d97a89b33eb5b9561f99c1a0cc5e96fe9f65a66ce2d2/mediapipe-0.10.7-cp310-cp310-win_amd64.whl (50.3 MB)
Using cached https://mirror.baidu.com/pypi/packages/cc/d8/c77d3f50bf59e28dd1d82ac5a07770a806522848227f7f00d932b34862bf/mediapipe-0.10.5-cp310-cp310-win_amd64.whl (50.3 MB)
Using cached https://mirror.baidu.com/pypi/packages/bc/86/65aa349cc2a6146edf13488ea2f53ce37ca39e8b7c6bb073306e4bd48222/mediapipe-0.10.3-cp310-cp310-win_amd64.whl (50.2 MB)
Using cached https://mirror.baidu.com/pypi/packages/10/18/c5856807bb78b31a6b136b976cd7a964dac9d578fc8ca9fa20e8b652cb0e/mediapipe-0.10.2-cp310-cp310-win_amd64.whl (50.2 MB)
Using cached https://mirror.baidu.com/pypi/packages/b4/cb/cfc03a0679db6034f823610b7f5f584364082166b253cc6df5195b3e0e87/mediapipe-0.10.1-cp310-cp310-win_amd64.whl (50.2 MB)
Using cached https://mirror.baidu.com/pypi/packages/92/b9/248f44605df8df5efaca159277b9d378e20a2e48b5e8271398f69665168b/mediapipe-0.10.0-cp310-cp310-win_amd64.whl (50.2 MB)
Using cached https://mirror.baidu.com/pypi/packages/f4/89/3f9dcc93ac60a81541c9bdb28e5aed4a1815a45799d2efd73bc4f517fa4b/mediapipe-0.9.3.0-cp310-cp310-win_amd64.whl (50.3 MB)
Using cached https://mirror.baidu.com/pypi/packages/41/2a/99009daac1e38bf0b98585ef583dd1b50a18063b0a5e0ae15debdb4a9b0d/mediapipe-0.9.2.1-cp310-cp310-win_amd64.whl (50.1 MB)
Using cached https://mirror.baidu.com/pypi/packages/8f/22/b9eb8128023ccaf2084431fff58a87c798794a870a8c2b809db72150e0e1/mediapipe-0.9.1.0-cp310-cp310-win_amd64.whl (49.8 MB)
INFO: pip is looking at multiple versions of moviepy to determine which version is compatible with other requirements. This could take a while.
Collecting moviepy
Using cached https://mirror.baidu.com/pypi/packages/71/64/e7f0876716d5c35612bf8e9e49299d0f491285f10f36cbb481556ab0062b/moviepy-1.0.2.tar.gz (7.8 MB)
Preparing metadata (setup.py) ... done

ERROR: Cannot install -r requirements-video.txt (line 2) because these package versions have conflicting dependencies.

The conflict is caused by:
mediapipe 0.10.14 depends on protobuf<5 and >=4.25.3
mediapipe 0.10.13 depends on protobuf<5 and >=4.25.3
mediapipe 0.10.11 depends on protobuf<4 and >=3.11
mediapipe 0.10.10 depends on protobuf<4 and >=3.11
mediapipe 0.10.9 depends on protobuf<4 and >=3.11
mediapipe 0.10.8 depends on protobuf<4 and >=3.11
mediapipe 0.10.7 depends on protobuf<4 and >=3.11
mediapipe 0.10.5 depends on protobuf<4 and >=3.11
mediapipe 0.10.3 depends on protobuf<4 and >=3.11
mediapipe 0.10.2 depends on protobuf<4 and >=3.11
mediapipe 0.10.1 depends on protobuf<4 and >=3.11
mediapipe 0.10.0 depends on protobuf<4 and >=3.11
mediapipe 0.9.3.0 depends on protobuf<4 and >=3.11
mediapipe 0.9.2.1 depends on protobuf<4 and >=3.11
mediapipe 0.9.1.0 depends on protobuf<4 and >=3.11

**To fix this you could try to:

  1. loosen the range of package versions you've specified
  2. remove package versions to allow pip attempt to solve the dependency conflict**

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
Install completed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant