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

InvokeAI failes to update #932

Closed
centrdev opened this issue Oct 5, 2024 · 7 comments · Fixed by #942
Closed

InvokeAI failes to update #932

centrdev opened this issue Oct 5, 2024 · 7 comments · Fixed by #942
Labels
bug Something isn't working

Comments

@centrdev
Copy link

centrdev commented Oct 5, 2024

Package

InvokeAI

When did the issue occur?

Updating the Package

What GPU / hardware type are you using?

Nvidia 3090

What happened?

Updating InvokeAI fails
Using the latest version as of 10.5.2024 v2.12.1

Console output

  Using cached xformers-0.0.28.post1.tar.gz (7.8 MB)
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [19 lines of output]
      C:\Users\XXXX\AppData\Local\Temp\pip-build-env-f62y_1eb\overlay\Lib\site-packages\_distutils_hack\__init__.py:54: UserWarning: Reliance on distutils from stdlib is deprecated. Users must rely on setuptools to provide the distutils module. Avoid importing distutils or import setuptools first, and avoid setting SETUPTOOLS_USE_DISTUTILS=stdlib. Register concerns at https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml
        warnings.warn(
      Traceback (most recent call last):
        File "E:\aiResources\StabilityMatrix\Data\Packages\InvokeAI\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "E:\aiResources\StabilityMatrix\Data\Packages\InvokeAI\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "E:\aiResources\StabilityMatrix\Data\Packages\InvokeAI\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\XXXX\AppData\Local\Temp\pip-build-env-f62y_1eb\overlay\Lib\site-packages\setuptools\build_meta.py", line 332, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
        File "C:\Users\XXXX\AppData\Local\Temp\pip-build-env-f62y_1eb\overlay\Lib\site-packages\setuptools\build_meta.py", line 302, in _get_build_requires
          self.run_setup()
        File "C:\Users\XXXX\AppData\Local\Temp\pip-build-env-f62y_1eb\overlay\Lib\site-packages\setuptools\build_meta.py", line 503, in run_setup
          super().run_setup(setup_script=setup_script)
        File "C:\Users\XXXX\AppData\Local\Temp\pip-build-env-f62y_1eb\overlay\Lib\site-packages\setuptools\build_meta.py", line 318, in run_setup
          exec(code, locals())
        File "<string>", line 24, in <module>
      ModuleNotFoundError: No module named 'torch'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Could not update InvokeAI (StabilityMatrix.Core.Exceptions.ProcessException: pip install failed with code 1: 'Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu121\r\nObtaining file:///E:/aiResources/StabilityMatrix/Data/Packages/InvokeAI\r\n  Installing build dependencies: started\r\n  Installing build dependencies: finished with status 'done'\r\n  Checking if build backend supports build_editable: started\r\n  Checking if build backend supports build_editable: finished with status 'done'\r\n  Getting requirements to build editable: started\r\n  Getting requirements to build editable: finished with status 'done'\r\n  Preparing editable metadata (pyproject.toml): started\r\n  Preparing editable metadata (pyproject.toml): finished with status 'done'\r\nRequirement already satisfied: accelerate==0.30.1 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.30.1)\r\nRequirement already satisfied: clip-anytorch==2.6.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (2.6.0)\r\nRequirement already satisfied: compel==2.0.2 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (2.0.2)\r\nRequirement already satisfied: controlnet-aux==0.0.7 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.0.7)\r\nRequirement already satisfied: diffusers==0.27.2 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from diffusers[torch]==0.27.2->InvokeAI==5.1.0rc5) (0.27.2)\r\nCollecting gguf==0.10.0 (from InvokeAI==5.1.0rc5)\r\n  Using cached gguf-0.10.0-py3-none-any.whl.metadata (3.5 kB)\r\nRequirement already satisfied: invisible-watermark==0.2.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.2.0)\r\nRequirement already satisfied: mediapipe==0.10.7 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.10.7)\r\nRequirement already satisfied: numpy==1.26.4 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (1.26.4)\r\nRequirement already satisfied: onnx==1.15.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (1.15.0)\r\nRequirement already satisfied: onnxruntime==1.16.3 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (1.16.3)\r\nRequirement already satisfied: opencv-python==4.9.0.80 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (4.9.0.80)\r\nRequirement already satisfied: pytorch-lightning==2.1.3 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (2.1.3)\r\nRequirement already satisfied: safetensors==0.4.3 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.4.3)\r\nRequirement already satisfied: sentencepiece==0.2.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.2.0)\r\nRequirement already satisfied: spandrel==0.3.4 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.3.4)\r\nRequirement already satisfied: timm==0.6.13 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.6.13)\r\nCollecting torch==2.4.1 (from InvokeAI==5.1.0rc5)\r\n  Using cached https://download.pytorch.org/whl/cu121/torch-2.4.1%2Bcu121-cp310-cp310-win_amd64.whl (2444.9 MB)\r\nRequirement already satisfied: torchmetrics==0.11.4 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.11.4)\r\nRequirement already satisfied: torchsde==0.2.6 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.2.6)\r\nCollecting torchvision==0.19.1 (from InvokeAI==5.1.0rc5)\r\n  Using cached https://download.pytorch.org/whl/cu121/torchvision-0.19.1%2Bcu121-cp310-cp310-win_amd64.whl (5.8 MB)\r\nRequirement already satisfied: transformers==4.41.1 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (4.41.1)\r\nRequirement already satisfied: fastapi-events==0.11.1 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.11.1)\r\nRequirement already satisfied: fastapi==0.111.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.111.0)\r\nRequirement already satisfied: huggingface-hub==0.23.1 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.23.1)\r\nRequirement already satisfied: pydantic-settings==2.2.1 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (2.2.1)\r\nRequirement already satisfied: pydantic==2.7.2 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (2.7.2)\r\nRequirement already satisfied: python-socketio==5.11.1 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (5.11.1)\r\nRequirement already satisfied: uvicorn==0.28.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from uvicorn[standard]==0.28.0->InvokeAI==5.1.0rc5) (0.28.0)\r\nRequirement already satisfied: albumentations in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (1.4.3)\r\nRequirement already satisfied: blake3 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.4.1)\r\nRequirement already satisfied: click in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (8.1.7)\r\nRequirement already satisfied: datasets in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (2.19.1)\r\nRequirement already satisfied: Deprecated in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (1.2.14)\r\nRequirement already satisfied: dnspython~=2.4.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (2.4.2)\r\nRequirement already satisfied: dynamicprompts in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.31.0)\r\nRequirement already satisfied: easing-functions in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (1.0.4)\r\nRequirement already satisfied: einops in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.8.0)\r\nRequirement already satisfied: facexlib in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.3.0)\r\nRequirement already satisfied: matplotlib!=3.9.1 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (3.8.4)\r\nRequirement already satisfied: npyscreen in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (4.10.5)\r\nRequirement already satisfied: omegaconf in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (2.3.0)\r\nRequirement already satisfied: picklescan in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.0.15)\r\nRequirement already satisfied: pillow in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (10.3.0)\r\nRequirement already satisfied: prompt-toolkit in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (3.0.43)\r\nRequirement already satisfied: pympler~=1.0.1 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (1.0.1)\r\nRequirement already satisfied: pypatchmatch in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (1.0.1)\r\nRequirement already satisfied: pyperclip in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (1.8.2)\r\nRequirement already satisfied: pyreadline3 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (3.4.1)\r\nRequirement already satisfied: python-multipart in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.0.9)\r\nRequirement already satisfied: requests~=2.28.2 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (2.28.2)\r\nRequirement already satisfied: rich~=13.3 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (13.7.1)\r\nRequirement already satisfied: scikit-image~=0.21.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.21.0)\r\nRequirement already satisfied: semver~=3.0.1 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (3.0.2)\r\nRequirement already satisfied: test-tube~=0.7.5 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.7.5)\r\nRequirement already satisfied: bitsandbytes==0.43.3 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (0.43.3)\r\nRequirement already satisfied: windows-curses in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from InvokeAI==5.1.0rc5) (2.3.3)\r\nRequirement already satisfied: packaging>=20.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from accelerate==0.30.1->InvokeAI==5.1.0rc5) (24.0)\r\nRequirement already satisfied: psutil in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from accelerate==0.30.1->InvokeAI==5.1.0rc5) (5.9.8)\r\nRequirement already satisfied: pyyaml in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from accelerate==0.30.1->InvokeAI==5.1.0rc5) (6.0.1)\r\nRequirement already satisfied: ftfy in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from clip-anytorch==2.6.0->InvokeAI==5.1.0rc5) (6.2.0)\r\nRequirement already satisfied: regex in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from clip-anytorch==2.6.0->InvokeAI==5.1.0rc5) (2024.5.10)\r\nRequirement already satisfied: tqdm in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from clip-anytorch==2.6.0->InvokeAI==5.1.0rc5) (4.66.4)\r\nRequirement already satisfied: pyparsing~=3.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from compel==2.0.2->InvokeAI==5.1.0rc5) (3.1.2)\r\nRequirement already satisfied: importlib-metadata in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from controlnet-aux==0.0.7->InvokeAI==5.1.0rc5) (7.1.0)\r\nRequirement already satisfied: scipy in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from controlnet-aux==0.0.7->InvokeAI==5.1.0rc5) (1.13.0)\r\nRequirement already satisfied: filelock in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from controlnet-aux==0.0.7->InvokeAI==5.1.0rc5) (3.14.0)\r\nRequirement already satisfied: starlette<0.38.0,>=0.37.2 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from fastapi==0.111.0->InvokeAI==5.1.0rc5) (0.37.2)\r\nRequirement already satisfied: typing-extensions>=4.8.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from fastapi==0.111.0->InvokeAI==5.1.0rc5) (4.11.0)\r\nRequirement already satisfied: fastapi-cli>=0.0.2 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from fastapi==0.111.0->InvokeAI==5.1.0rc5) (0.0.4)\r\nRequirement already satisfied: httpx>=0.23.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from fastapi==0.111.0->InvokeAI==5.1.0rc5) (0.27.0)\r\nRequirement already satisfied: jinja2>=2.11.2 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from fastapi==0.111.0->InvokeAI==5.1.0rc5) (3.1.4)\r\nRequirement already satisfied: ujson!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0,>=4.0.1 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from fastapi==0.111.0->InvokeAI==5.1.0rc5) (5.10.0)\r\nRequirement already satisfied: orjson>=3.2.1 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from fastapi==0.111.0->InvokeAI==5.1.0rc5) (3.10.3)\r\nRequirement already satisfied: email_validator>=2.0.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from fastapi==0.111.0->InvokeAI==5.1.0rc5) (2.1.1)\r\nRequirement already satisfied: fsspec>=2023.5.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from huggingface-hub==0.23.1->InvokeAI==5.1.0rc5) (2024.3.1)\r\nRequirement already satisfied: PyWavelets>=1.1.1 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from invisible-watermark==0.2.0->InvokeAI==5.1.0rc5) (1.6.0)\r\nRequirement already satisfied: absl-py in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from mediapipe==0.10.7->InvokeAI==5.1.0rc5) (2.1.0)\r\nRequirement already satisfied: attrs>=19.1.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from mediapipe==0.10.7->InvokeAI==5.1.0rc5) (23.2.0)\r\nRequirement already satisfied: flatbuffers>=2.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from mediapipe==0.10.7->InvokeAI==5.1.0rc5) (24.3.25)\r\nRequirement already satisfied: opencv-contrib-python in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from mediapipe==0.10.7->InvokeAI==5.1.0rc5) (4.9.0.80)\r\nRequirement already satisfied: protobuf<4,>=3.11 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from mediapipe==0.10.7->InvokeAI==5.1.0rc5) (3.20.3)\r\nRequirement already satisfied: sounddevice>=0.4.4 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from mediapipe==0.10.7->InvokeAI==5.1.0rc5) (0.4.6)\r\nRequirement already satisfied: coloredlogs in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from onnxruntime==1.16.3->InvokeAI==5.1.0rc5) (15.0.1)\r\nRequirement already satisfied: sympy in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from onnxruntime==1.16.3->InvokeAI==5.1.0rc5) (1.12)\r\nRequirement already satisfied: annotated-types>=0.4.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from pydantic==2.7.2->InvokeAI==5.1.0rc5) (0.6.0)\r\nRequirement already satisfied: pydantic-core==2.18.3 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from pydantic==2.7.2->InvokeAI==5.1.0rc5) (2.18.3)\r\nRequirement already satisfied: python-dotenv>=0.21.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from pydantic-settings==2.2.1->InvokeAI==5.1.0rc5) (1.0.1)\r\nRequirement already satisfied: bidict>=0.21.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from python-socketio==5.11.1->InvokeAI==5.1.0rc5) (0.23.1)\r\nRequirement already satisfied: python-engineio>=4.8.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from python-socketio==5.11.1->InvokeAI==5.1.0rc5) (4.9.0)\r\nRequirement already satisfied: lightning-utilities>=0.8.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from pytorch-lightning==2.1.3->InvokeAI==5.1.0rc5) (0.11.2)\r\nRequirement already satisfied: networkx in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from torch==2.4.1->InvokeAI==5.1.0rc5) (3.3)\r\nRequirement already satisfied: trampoline>=0.1.2 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from torchsde==0.2.6->InvokeAI==5.1.0rc5) (0.1.2)\r\nRequirement already satisfied: tokenizers<0.20,>=0.19 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from transformers==4.41.1->InvokeAI==5.1.0rc5) (0.19.1)\r\nRequirement already satisfied: h11>=0.8 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from uvicorn==0.28.0->uvicorn[standard]==0.28.0->InvokeAI==5.1.0rc5) (0.14.0)\r\nRequirement already satisfied: colorama>=0.4 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from uvicorn[standard]==0.28.0->InvokeAI==5.1.0rc5) (0.4.6)\r\nRequirement already satisfied: httptools>=0.5.0 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from uvicorn[standard]==0.28.0->InvokeAI==5.1.0rc5) (0.6.1)\r\nRequirement already satisfied: watchfiles>=0.13 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from uvicorn[standard]==0.28.0->InvokeAI==5.1.0rc5) (0.21.0)\r\nRequirement already satisfied: websockets>=10.4 in e:\airesources\stabilitymatrix\data\packages\invokeai\venv\lib\site-packages (from uvicorn[standard]==0.28.0->InvokeAI==5.1.0rc5) (12.0)\r\nCollecting xformers==0.0.28.post1 (from InvokeAI==5.1.0rc5)\r\n  Using cached xformers-0.0.28.post1.tar.gz (7.8 MB)\r\n  Installing build dependencies: started\r\n  Installing build dependencies: finished with status 'done'\r\n  Getting requirements to build wheel: started\r\n  Getting requirements to build wheel: finished with status 'error'\r\n  error: subprocess-exited-with-error\r\n  \r\n  \u00d7 Getting requirements to build wheel did not run successfully.\r\n  \u2502 exit code: 1\r\n  \u2570\u2500> [19 lines of output]\r\n      C:\Users\XXXX\AppData\Local\Temp\pip-build-env-f62y_1eb\overlay\Lib\site-packages\_distutils_hack\__init__.py:54: UserWarning: Reliance on distutils from stdlib is deprecated. Users must rely on setuptools to provide the distutils module. Avoid importing distutils or import setuptools first, and avoid setting SETUPTOOLS_USE_DISTUTILS=stdlib. Register concerns at https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml\r\n        warnings.warn(\r\n      Traceback (most recent call last):\r\n        File "E:\aiResources\StabilityMatrix\Data\Packages\InvokeAI\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>\r\n          main()\r\n        File "E:\aiResources\StabilityMatrix\Data\Packages\InvokeAI\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main\r\n          json_out['return_val'] = hook(**hook_input['kwargs'])\r\n        File "E:\aiResources\StabilityMatrix\Data\Packages\InvokeAI\venv\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel\r\n          return hook(config_settings)\r\n        File "C:\Users\XXXX\AppData\Local\Temp\pip-build-env-f62y_1eb\overlay\Lib\site-packages\setuptools\build_meta.py", line 332, in get_requires_for_build_wheel\r\n          return self._get_build_requires(config_settings, requirements=[])\r\n        File "C:\Users\XXXX\AppData\Local\Temp\pip-build-env-f62y_1eb\overlay\Lib\site-packages\setuptools\build_meta.py", line 302, in _get_build_requires\r\n          self.run_setup()\r\n        File "C:\Users\XXXX\AppData\Local\Temp\pip-build-env-f62y_1eb\overlay\Lib\site-packages\setuptools\build_meta.py", line 503, in run_setup\r\n          super().run_setup(setup_script=setup_script)\r\n        File "C:\Users\XXXX\AppData\Local\Temp\pip-build-env-f62y_1eb\overlay\Lib\site-packages\setuptools\build_meta.py", line 318, in run_setup\r\n          exec(code, locals())\r\n        File "<string>", line 24, in <module>\r\n      ModuleNotFoundError: No module named 'torch'\r\n      [end of output]\r\n  \r\n  note: This error originates from a subprocess, and is likely not a problem with pip.\r\nerror: subprocess-exited-with-error\r\n\r\n\u00d7 Getting requirements to build wheel did not run successfully.\r\n\u2502 exit code: 1\r\n\u2570\u2500> See above for output.\r\n\r\nnote: This error originates from a subprocess, and is likely not a problem with pip.\r\n'
   at StabilityMatrix.Core.Python.PyVenvRunner.PipInstall(ProcessArgs args, Action`1 outputDataReceived)
   at StabilityMatrix.Core.Models.Packages.InvokeAI.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress`1 progress, Action`1 onConsoleOutput, CancellationToken cancellationToken)
   at StabilityMatrix.Core.Models.Packages.InvokeAI.InstallPackage(String installLocation, InstalledPackage installedPackage, InstallPackageOptions options, IProgress`1 progress, Action`1 onConsoleOutput, CancellationToken cancellationToken)
   at StabilityMatrix.Core.Models.Packages.BaseGitPackage.Update(String installLocation, InstalledPackage installedPackage, UpdatePackageOptions options, IProgress`1 progress, Action`1 onConsoleOutput, CancellationToken cancellationToken)
   at StabilityMatrix.Core.Models.PackageModification.UpdatePackageStep.ExecuteAsync(IProgress`1 progress, CancellationToken cancellationToken)
   at StabilityMatrix.Core.Models.PackageModification.PackageModificationRunner.ExecuteSteps(IEnumerable`1 steps))

Version

V2.12.1

What Operating System are you using?

Windows

@centrdev centrdev added the bug Something isn't working label Oct 5, 2024
@freshlesh3
Copy link

The latest release v5.1 fails to install as well

@lirexxx
Copy link

lirexxx commented Oct 8, 2024

I've tried to update v5.0.2 to v.5.1.0 and it broke my installation. I tried updating multiple times with different errors popping up. It kept statting I have v5.0.2 and it didn't want to start anymore. I tried deleting it in full and reinstalling it and got this:

...
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
C:\Users\lirex\AppData\Local\Temp\pip-build-env-rx2x1p1t\overlay\Lib\site-packages_distutils_hack_init_.py:54: UserWarning: Reliance on distutils from stdlib is deprecated. Users must rely on setuptools to provide the distutils module. Avoid importing distutils or import setuptools first, and avoid setting SETUPTOOLS_USE_DISTUTILS=stdlib. Register concerns at https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml
warnings.warn(
Traceback (most recent call last):
File "C:\StabilityMatrix\Data\Packages\InvokeAI\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\StabilityMatrix\Data\Packages\InvokeAI\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\StabilityMatrix\Data\Packages\InvokeAI\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\lirex\AppData\Local\Temp\pip-build-env-rx2x1p1t\overlay\Lib\site-packages\setuptools\build_meta.py", line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "C:\Users\lirex\AppData\Local\Temp\pip-build-env-rx2x1p1t\overlay\Lib\site-packages\setuptools\build_meta.py", line 302, in _get_build_requires
self.run_setup()
File "C:\Users\lirex\AppData\Local\Temp\pip-build-env-rx2x1p1t\overlay\Lib\site-packages\setuptools\build_meta.py", line 503, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\lirex\AppData\Local\Temp\pip-build-env-rx2x1p1t\overlay\Lib\site-packages\setuptools\build_meta.py", line 318, in run_setup
exec(code, locals())
File "", line 24, in
ModuleNotFoundError: No module named 'torch'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

...

@nadora35
Copy link

nadora35 commented Oct 8, 2024

me to
Untitled

@mohnjiles
Copy link
Contributor

Sorry folks, I missed this one & replied in the other issue: #939 (comment)

We are aware and working on a fix though! Sorry again!

@lirexxx
Copy link

lirexxx commented Oct 9, 2024

Sorry folks, I missed this one & replied in the other issue: #939 (comment)

We are aware and working on a fix though! Sorry again!

Thank you! I've just noticed the new version v5.1.1 and tried to update again from 5.0.2 but that version fails too...

Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
C:\Users\lirex\AppData\Local\Temp\pip-build-env-z055h9ci\overlay\Lib\site-packages_distutils_hack_init_.py:54: UserWarning: Reliance on distutils from stdlib is deprecated. Users must rely on setuptools to provide the distutils module. Avoid importing distutils or import setuptools first, and avoid setting SETUPTOOLS_USE_DISTUTILS=stdlib. Register concerns at https://github.com/pypa/setuptools/issues/new?template=distutils-deprecation.yml
warnings.warn(
Traceback (most recent call last):
File "C:\StabilityMatrix\Data\Packages\Invoke\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "C:\StabilityMatrix\Data\Packages\Invoke\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\StabilityMatrix\Data\Packages\Invoke\venv\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "C:\Users\lirex\AppData\Local\Temp\pip-build-env-z055h9ci\overlay\Lib\site-packages\setuptools\build_meta.py", line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
File "C:\Users\lirex\AppData\Local\Temp\pip-build-env-z055h9ci\overlay\Lib\site-packages\setuptools\build_meta.py", line 302, in _get_build_requires
self.run_setup()
File "C:\Users\lirex\AppData\Local\Temp\pip-build-env-z055h9ci\overlay\Lib\site-packages\setuptools\build_meta.py", line 503, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\lirex\AppData\Local\Temp\pip-build-env-z055h9ci\overlay\Lib\site-packages\setuptools\build_meta.py", line 318, in run_setup
exec(code, locals())
File "", line 24, in
ModuleNotFoundError: No module named 'torch'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Could not update Invoke (StabilityMatrix.Core.Exceptions.ProcessException: pip install failed with code 1: 'Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com, https://download.pytorch.org/whl/cu121\r\nObtaining file:///C:/StabilityMatrix/Data/Packages/Invoke\r\n Installing build dependencies: started\r\n Installing build dependencies: finished with status 'done'

@gohan2091
Copy link

gohan2091 commented Oct 10, 2024

Here to say I am trying to install InvokeAI for the first time and ran into this error also. The "ModuleNotFoundError: No module named 'torch'"

EDIT: Update of Stability Matrix has fixed this.

@lirexxx
Copy link

lirexxx commented Oct 11, 2024

There's an update of Stability Matrix that fixed the issue. Do the update first, then update InvokeAI. That fixed it for me. 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants