Closed NicoleKai closed 10 months ago
@NicoleKai you have not shown me the command you ran to get into this state. But the upstream program (invokeai) often corrupts its state on disk due to bugs. I would recommend rm -rf ~/invokeai
and starting again.
I can replicate this issue too with a completely new install. If you clear ~/invokeai
(although I'm using /var/lib/invokeai/` and rebuild, it fails in the middle of installing models like so:
[2023-11-06 00:12:06,278]::[InvokeAI]::INFO --> Scanned 9 files and directories, imported 0 models
[2023-11-06 00:12:06,324]::[InvokeAI]::INFO --> Installing https://civitai.com/api/download/models/63006 [1/1]
Traceback (most recent call last):
File "/nix/store/bkgmn0gqi97h94fqs588dvxw3l9yk5gs-python3.10-InvokeAI-3.3.0post3/bin/.invokeai-configure-wrapped", line 9, in <module>
sys.exit(invokeai_configure())
File "/nix/store/bkgmn0gqi97h94fqs588dvxw3l9yk5gs-python3.10-InvokeAI-3.3.0post3/lib/python3.10/site-packages/invokeai/backend/install/invokeai_configure.py", line 946, in main
process_and_execute(opt, models_to_download)
File "/nix/store/bkgmn0gqi97h94fqs588dvxw3l9yk5gs-python3.10-InvokeAI-3.3.0post3/lib/python3.10/site-packages/invokeai/frontend/install/model_install.py", line 697, in process_and_execute
installer.install(selections)
File "/nix/store/bkgmn0gqi97h94fqs588dvxw3l9yk5gs-python3.10-InvokeAI-3.3.0post3/lib/python3.10/site-packages/invokeai/backend/install/model_install_backend.py", line 217, in install
self.heuristic_import(path)
File "/nix/store/bkgmn0gqi97h94fqs588dvxw3l9yk5gs-python3.10-InvokeAI-3.3.0post3/lib/python3.10/site-packages/invokeai/backend/install/model_install_backend.py", line 266, in heuristic_import
models_installed.update({str(model_path_id_or_url): self._install_url(model_path_id_or_url)})
File "/nix/store/bkgmn0gqi97h94fqs588dvxw3l9yk5gs-python3.10-InvokeAI-3.3.0post3/lib/python3.10/site-packages/invokeai/backend/install/model_install_backend.py", line 313, in _install_url
location = download_with_resume(url, Path(staging))
File "/nix/store/bkgmn0gqi97h94fqs588dvxw3l9yk5gs-python3.10-InvokeAI-3.3.0post3/lib/python3.10/site-packages/invokeai/backend/util/util.py", line 290, in download_with_resume
file_name = re.search('filename="(.+)"', resp.headers.get("Content-Disposition")).group(1)
File "/nix/store/pzf6dnxg8gf04xazzjdwarm7s03cbrgz-python3-3.10.12/lib/python3.10/re.py", line 200, in search
return _compile(pattern, flags).search(string)
Restarting it fixes the issue, and it finishes initializing /var/lib/invokeai/.home
But when I try to actually run invokeai
to test, it throws the same exact error as what @NicoleKai is reporting.
The original issue is due to another upstream deprecation https://github.com/invoke-ai/InvokeAI/issues/5003
Latest version of
invokeai
(7b9730e0a75bcd6375b0780aef75e406ea20a9a4) not working on my system. Not sure what could be causing this.invokeai
output log: