invoke-ai / InvokeAI

Invoke is a leading creative engine for Stable Diffusion models, empowering professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry leading WebUI, and serves as the foundation for multiple commercial products.
https://invoke-ai.github.io/InvokeAI/
Apache License 2.0
23.34k stars 2.4k forks source link

[bug]: 3.5.0rc3 Automatic installer: No module named varint #5346

Closed Lesani closed 9 months ago

Lesani commented 9 months ago

Is there an existing issue for this?

OS

Windows

GPU

cuda

VRAM

24

What version did you experience this issue on?

3.5.0rc3

What happened?

`Desired action:

  1. Generate images with the browser-based interface
  2. Run textual inversion training
  3. Merge models (diffusers type only)
  4. Download and install models
  5. Change InvokeAI startup options
  6. Re-run the configure script to fix a broken install or to complete a major upgrade
  7. Open the developer console
  8. Update InvokeAI
  9. Run the InvokeAI image database maintenance script
  10. Command-line help Q - Quit Please enter 1-10, Q: [1] 1 Starting the InvokeAI browser-based UI.. [2023-12-24 14:32:23,102]::[InvokeAI]::INFO --> Patchmatch initialized C:\Users\Lesani\invokeai.venv\lib\site-packages\torchvision\transforms\functional_tensor.py:5: UserWarning: The torchvision.transforms.functional_tensor module is deprecated in 0.15 and will be removed in 0.17. Please don't rely on it. You probably just need to use APIs in torchvision.transforms.functional or in torchvision.transforms.v2.functional. warnings.warn( Traceback (most recent call last): File "C:\Users\Lesani\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\Lesani\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\Lesani\invokeai.venv\Scripts\invokeai-web.exe__main.py", line 4, in File "C:\Users\Lesani\invokeai.venv\lib\site-packages\invokeai\app\api_app.py", line 43, in from .api.dependencies import ApiDependencies File "C:\Users\Lesani\invokeai.venv\lib\site-packages\invokeai\app\api\dependencies.py", line 26, in from ..services.model_install import ModelInstallService File "C:\Users\Lesani\invokeai.venv\lib\site-packages\invokeai\app\services\model_install__init__.py", line 3, in from .model_install_base import ( File "C:\Users\Lesani\invokeai.venv\lib\site-packages\invokeai\app\services\model_install\model_install_base.py", line 15, in from invokeai.app.services.model_records import ModelRecordServiceBase File "C:\Users\Lesani\invokeai.venv\lib\site-packages\invokeai\app\services\model_records__init__.py", line 2, in from .model_records_base import ( # noqa F401 File "C:\Users\Lesani\invokeai.venv\lib\site-packages\invokeai\app\services\model_records\model_records_base.py", line 10, in from invokeai.backend.model_manager.config import AnyModelConfig, BaseModelType, ModelFormat, ModelType File "C:\Users\Lesani\invokeai.venv\lib\site-packages\invokeai\backend\model_manager\init.py", line 14, in from .probe import ModelProbe File "C:\Users\Lesani\invokeai.venv\lib\site-packages\invokeai\backend\model_manager\probe.py", line 25, in from .hash import FastModelHash File "C:\Users\Lesani\invokeai.venv\lib\site-packages\invokeai\backend\model_manager\hash.py", line 16, in from imohash import hashfile File "C:\Users\Lesani\invokeai.venv\lib\site-packages\imohash\init__.py", line 1, in from .imohash import hashfile, hashfileobject File "C:\Users\Lesani\invokeai.venv\lib\site-packages\imohash\imohash.py", line 10, in import varint ModuleNotFoundError: No module named 'varint' Desired action:
  11. Generate images with the browser-based interface
  12. Run textual inversion training
  13. Merge models (diffusers type only)
  14. Download and install models
  15. Change InvokeAI startup options
  16. Re-run the configure script to fix a broken install or to complete a major upgrade
  17. Open the developer console
  18. Update InvokeAI
  19. Run the InvokeAI image database maintenance script
  20. Command-line help Q - Quit Please enter 1-10, Q: [1] 7 Developer Console Python command is: C:\Users\Lesani\invokeai.venv\Scripts\python.exe C:\Users\Lesani\AppData\Local\Programs\Python\Python310\python.exe C:\Users\Lesani\AppData\Local\Programs\Python\Python311\python.exe C:\Users\Lesani\AppData\Local\Microsoft\WindowsApps\python.exe Python version is: Python 3.10.6

    You are now in the system shell, with the local InvokeAI Python virtual environment activated, so that you can troubleshoot this InvokeAI installation as necessary.


    Type exit to quit this shell and deactivate the Python virtual environment (.venv) C:\Users\Lesani\invokeai>pip install varint Requirement already satisfied: varint in c:\users\lesani\invokeai.venv\lib\site-packages (1.0.2)

[notice] A new release of pip is available: 23.3.1 -> 23.3.2 [notice] To update, run: python.exe -m pip install --upgrade pip

(.venv) C:\Users\Lesani\invokeai>`

Screenshots

No response

Additional context

After updating my prvious install using the launcher option 8 "update invokeAI" messed up torch (not updating with cuda torch, but rather CPU torch, which led to invoke not being able to launch anymore), I did a fresh invoke isntall using the automatic installer, overwriting my prvious isntallation folder.

Contact Details

No response

Lesani commented 9 months ago

Workaround for the issue:

  1. pip uninstall varint
  2. pip install --no-cache-dir varint
Millu commented 9 months ago

Going to close this with the workaround identified. Will re-open if the issue occurs for others as well