-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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]: Upgrading to Invoke 4.0.1 Doesn't work as expected #6112
Comments
Thanks for making the separate issue. The error message is saying that a required package didn't get installed. That's very much unexpected, because the installer always fully reinstalls missing packages. Next steps:
I expect one of these outcomes:
|
i did as you suggested but i get this error again :
To update, download and run the installer from https://github.com/invoke-ai/InvokeAI/releases/latest. |
if i try : pip install controlnet_aux --force-reinstall --no-cache-dir |
Thanks for trying, but I need to see the output from the installer to see what's wrong. Can you please copy everything the installer prints out? |
Yeah, the error about |
using the console : i installed controlnet_aux via : pip install controlnet_aux --force-reinstall --no-cache-dir but it's working now |
Ok, glad it's working. But you still haven't provided the full installer log output - it's much longer then that. Also, you shouldn't have torchvision 0.17.2 installed. The installer doesn't even install that version. Do you have some shared virtual environment you are using? |
i didn't have full installer log output, i will delete the venv again, will reinstall again to reproduce the full error message |
and this log file is from starting invoke.bat |
Do you have some shared virtual environment you are using? |
I'm still thinking there might be something funky with the controlnet-aux package. You can take a look at #5863 for how I resolved the same issue. I wonder if in your case pip was also only installing the dist-info for controlnet-aux without the actual module contents. |
i reinstalled controlnet pip install --force-reinstall torch==2.2.1 --index-url https://download.pytorch.org/whl/cu121 with this done, I am ok, everything seems working as expected |
@angeloshredder Thanks for the logs and continued troubleshooting. It's not clear why, but on some individual computers, the app ends up running with the CPU version of torch. Your manual reinstalling is doing essentially the same thing as the installer, though we install more packages. We expect Indeed, reviewing the install logs, I see we did get the same packages:
So then, with these packages apparently successfully installed in your virtual environment, why is the application's python not getting them? This is really puzzling. I wonder if maybe the wrong venv is being activated somehow. Could be related to the PATH env var or some other global configuration on the system I suppose, but I couldn't say what exactly. @the-space-fish Thanks for sharing your solution. It's kinda silly that you had to do that to fix it, jeez. |
Is there an existing issue for this problem?
Operating system
Windows
GPU vendor
Nvidia (CUDA)
GPU model
RTX 3090
GPU VRAM
24
Version number
4.0.1
Browser
Google Chrome
Python dependencies
No response
What happened
I upgraded My InvokeAi to the last release 4.0.1
installer for the first time had some issues, but were fixed when in relaunched it the second time. ok
the first time i launched invoke.bat , i had errors related to costum nodes (this was expected since it's a major upgrade), so i made a backup of all of them, left my nodes folder empty.
but when i restarted again ,
console showed this error message :
Starting the InvokeAI browser-based UI..
Traceback (most recent call last):
File "C:\Users\USER\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\USER\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\USER\invokeai.venv\Scripts\invokeai-web.exe_main.py", line 7, in
sys.exit(run_app())
File "C:\Users\USER\invokeai.venv\lib\site-packages\invokeai\app\run_app.py", line 10, in run_app
from invokeai.app.api_app import invoke_api
File "C:\Users\USER\invokeai.venv\lib\site-packages\invokeai\app\api_app.py", line 34, in
from .api.dependencies import ApiDependencies
File "C:\Users\USER\invokeai.venv\lib\site-packages\invokeai\app\api\dependencies.py", line 20, in
from ..services.download import DownloadQueueService
File "C:\Users\USER\invokeai.venv\lib\site-packages\invokeai\app\services\download_init.py", line 4, in
from .download_default import DownloadQueueService, TqdmProgress
File "C:\Users\USER\invokeai.venv\lib\site-packages\invokeai\app\services\download\download_default.py", line 18, in
from invokeai.app.services.events.events_base import EventServiceBase
File "C:\Users\USER\invokeai.venv\lib\site-packages\invokeai\app\services\events_init.py", line 1, in
from .events_base import EventServiceBase # noqa F401
File "C:\Users\USER\invokeai.venv\lib\site-packages\invokeai\app\services\events\events_base.py", line 7, in
from invokeai.app.services.session_queue.session_queue_common import (
File "C:\Users\USER\invokeai.venv\lib\site-packages\invokeai\app\services\session_queue\session_queue_common.py", line 10, in
from invokeai.app.services.shared.graph import Graph, GraphExecutionState, NodeNotFoundError
File "C:\Users\USER\invokeai.venv\lib\site-packages\invokeai\app\services\shared\graph.py", line 18, in
from invokeai.app.invocations import * # noqa: F401 F403
File "C:\Users\USER\invokeai.venv\lib\site-packages\invokeai\app\invocations\controlnet_image_processors.py", line 9, in
from controlnet_aux import (
ModuleNotFoundError: No module named 'controlnet_aux'
Desired action:
Q - Quit
What you expected to happen
Normal behavior
How to reproduce the problem
No response
Additional context
No response
Discord username
angelotheshredder
The text was updated successfully, but these errors were encountered: