LykosAI / StabilityMatrix

Multi-Platform Package Manager for Stable Diffusion
https://lykos.ai
GNU Affero General Public License v3.0
3.29k stars 222 forks source link

Can't install Fooocus - pip version problem? #711

Open ghost opened 1 week ago

ghost commented 1 week ago
WARNING: Ignoring version 0.2.5 of torchsde since it has invalid metadata:
Requested torchsde==0.2.5 from https://files.pythonhosted.org/packages/73/8d/efd3e7b31ea854d0bd6886aa3cf44914adce113a6d460850af41ac1dd4dd/torchsde-0.2.5-py3-none-any.whl has invalid metadata: .* suffix can only be used with `==` or `!=` operators
    numpy (>=1.19.*) ; python_version >= "3.7"
           ~~~~~~~^
Please use pip<24.1 if you need to use this version.
ERROR: Could not find a version that satisfies the requirement torchsde==0.2.5 (from versions: 0.2.5, 0.2.6)
ERROR: No matching distribution found for torchsde==0.2.5
spammcahid commented 1 week ago

I have the same issue. Here is the log.

Unpacking resources Unpacking resources Download Complete Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu121 Collecting torch==2.1.0 Using cached https://download.pytorch.org/whl/cu121/torch-2.1.0%2Bcu121-cp310-cp310-win_amd64.whl (2473.9 MB) Collecting torchvision==0.16.0 Using cached https://download.pytorch.org/whl/cu121/torchvision-0.16.0%2Bcu121-cp310-cp310-win_amd64.whl (5.8 MB) Collecting torchsde==0.2.5 Using cached torchsde-0.2.5-py3-none-any.whl.metadata (748 bytes) WARNING: Ignoring version 0.2.5 of torchsde since it has invalid metadata: Requested torchsde==0.2.5 from https://files.pythonhosted.org/packages/73/8d/efd3e7b31ea854d0bd6886aa3cf44914adce113a6d460850af41ac1dd4dd/torchsde-0.2.5-py3-none-any.whl has invalid metadata: . suffix can only be used with == or != operators numpy (>=1.19.) ; python_version >= "3.7"


Please use pip<24.1 if you need to use this version.
ERROR: Could not find a version that satisfies the requirement torchsde==0.2.5 (from versions: 0.2.5, 0.2.6)
ERROR: No matching distribution found for torchsde==0.2.5
Could not install Fooocus (StabilityMatrix.Core.Exceptions.ProcessException: pip install failed with code 1: 'Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu121\r\nCollecting torch==2.1.0\r\n  Using cached https://download.pytorch.org/whl/cu121/torch-2.1.0%2Bcu121-cp310-cp310-win_amd64.whl (2473.9 MB)\r\nCollecting torchvision==0.16.0\r\n  Using cached https://download.pytorch.org/whl/cu121/torchvision-0.16.0%2Bcu121-cp310-cp310-win_amd64.whl (5.8 MB)\r\nCollecting torchsde==0.2.5\r\n  Using cached torchsde-0.2.5-py3-none-any.whl.metadata (748 bytes)\r\nWARNING: Ignoring version 0.2.5 of torchsde since it has invalid metadata:\r\nRequested torchsde==0.2.5 from https://files.pythonhosted.org/packages/73/8d/efd3e7b31ea854d0bd6886aa3cf44914adce113a6d460850af41ac1dd4dd/torchsde-0.2.5-py3-none-any.whl has invalid metadata: .* suffix can only be used with `==` or `!=` operators\r\n    numpy (>=1.19.*) ; python_version >= "3.7"\r\n           ~~~~~~~^\r\nPlease use pip<24.1 if you need to use this version.\r\nERROR: Could not find a version that satisfies the requirement torchsde==0.2.5 (from versions: 0.2.5, 0.2.6)\r\nERROR: No matching distribution found for torchsde==0.2.5\r\n'
at StabilityMatrix.Core.Python.PyVenvRunner.PipInstall(ProcessArgs args, Action`1 outputDataReceived)
at StabilityMatrix.Core.Models.Packages.Fooocus.InstallPackage(String installLocation, TorchVersion torchVersion, SharedFolderMethod selectedSharedFolderMethod, DownloadPackageVersionOptions versionOptions, IProgress`1 progress, Action`1 onConsoleOutput)
at StabilityMatrix.Core.Models.Packages.Fooocus.InstallPackage(String installLocation, TorchVersion torchVersion, SharedFolderMethod selectedSharedFolderMethod, DownloadPackageVersionOptions versionOptions, IProgress`1 progress, Action`1 onConsoleOutput)
at StabilityMatrix.Core.Models.PackageModification.InstallPackageStep.ExecuteAsync(IProgress`1 progress)
at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IReadOnlyList`1 steps))
N1k145 commented 1 week ago

I have the same issue and a workaround:

Click on the dots at Fooocus in Packages Then Python Packages Select pip Select 24.0 in the drop-down an click the downgrade button

Then restart the installation

spammcahid commented 1 week ago

I finally managed to install Fooocus. First I tried @N1k145's workaround but unfortunately the UI didn't show any options when I clicked on the dots. @ StabilityMatrix_7XNTwq1tYa

I then manually imported Fooocus with default settings and Stability Matrix created a Foocus tab in the Packages menu. I tried @N1k145 's workaround here and selected previous "24.0" python version. After that I tried to update Fooocus manually but it didn't work in the Packages tab. I then copied a clean Fooocus build that I downloaded froom Github to the "Stability Matrix\Data\Packages" disk location and tried to update it again with Stability Matrix and it worked.

StabilityMatrix_BbKWuiRndV

StabilityMatrix_96i80ElqcT

N1k145 commented 1 week ago

@spammcahid maybe I missed the point where I clicked on import

When I clicked on "update" (or check for update I don't remember exactly), I think it provided me with an Update for Fooocus so that I could run the installation again.

nyukers commented 22 hours ago

I have the same issue and a workaround:

Click on the dots at Fooocus in Packages Then Python Packages Select pip Select 24.0 in the drop-down an click the downgrade button

Then restart the installation

It's a pity, Fooocus hasn't operation log. Maybe you are right: downgrade pip, restart Matrix, and long update Fooocus.