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

[Bug] Python Packages for Stable Diffusion WebUI Forge: can't upgrade Mmcv 2.1.0 to 2.2.0 #723

Open
Giribot opened this issue Jun 25, 2024 · 0 comments

Comments

@Giribot
Copy link

Giribot commented Jun 25, 2024

Hello !
Python Packages for Stable Diffusion WebUI Forge:
I can't upgrade mmcv from 2.1.0 to 2.2.O !

Thanks !

Collecting mmcv==2.2.0
Using cached mmcv-2.2.0.tar.gz (479 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 14, in
File "C:\Users\ribotg\Desktop\Dossiers\StabilityMatrix-win-x64\Data\Packages\stable-diffusion-webui-forge\venv\lib\site-packages\setuptools_init_.py", line 8, in
import distutils_hack.override # noqa: F401
File "C:\Users\ribotg\Desktop\Dossiers\StabilityMatrix-win-x64\Data\Packages\stable-diffusion-webui-forge\venv\lib\site-packages_distutils_hack\override.py", line 1, in
import('distutils_hack').do_override()
File "C:\Users\ribotg\Desktop\Dossiers\StabilityMatrix-win-x64\Data\Packages\stable-diffusion-webui-forge\venv\lib\site-packages_distutils_hack_init
.py", line 70, in do_override
ensure_local_distutils()
File "C:\Users\ribotg\Desktop\Dossiers\StabilityMatrix-win-x64\Data\Packages\stable-diffusion-webui-forge\venv\lib\site-packages_distutils_hack_init
.py", line 57, in ensure_local_distutils
assert '_distutils' in core.file, core.file
AssertionError: C:\Users\ribotg\Desktop\Dossiers\StabilityMatrix-win-x64\Data\Packages\stable-diffusion-webui-forge\venv\Scripts\python310.zip\distutils\core.pyc
[end of output]
.../.../.../.../... ...
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Error: StabilityMatrix.Core.Exceptions.ProcessException: Process python failed with exit-code 1.
at StabilityMatrix.Core.Processes.ProcessRunner.WaitForExitConditionAsync(Process process, Int32 expectedExitCode, CancellationToken cancelToken)
at StabilityMatrix.Core.Models.PackageModification.PipStep.ExecuteAsync(IProgress1 progress) at StabilityMatrix.Core.Models.PackageModification.PipStep.ExecuteAsync(IProgress1 progress)
at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IReadOnlyList`1 steps)

(why i want to try to update Mmcv ?
Because, when i'm launching Forge: i got that:

Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: f0.0.17v1.8.0rc-latest-277-g0af28699
Commit hash: 0af28699c45c1c5bf9cb6818caac6ce881123131
Installing requirements
Check mmcv version...
Your mmcv version 2.1.0 may not work with mmyolo.
or you need to fix version restriction of init.py of mmyolo manually, to use mmcv 2.1.0 with mmyolo.
Check mmengine version...
your mmengine version is 0.8.5

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