InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: DLL load failed while importing _lzma

Open GafferWiles opened this issue 3 years ago • 16 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS

Windows

GPU

cuda

VRAM

6Gb

What happened?

When installing InvokeAI for the first time on my Windows 10 machine I get the following error

ImportError: DLL load failed while importing _lzma: the specified module could not be found.

It seems that there is a missing module and might be related to the following report https://github.com/pytorch/vision/issues/2921

I could find no instructions as to how to install or add this module in a Windows environment with anaconda or python. InvokeAIInstallError

Screenshots

No response

Additional context

No response

Contact Details

[email protected]

GafferWiles avatar Dec 08 '22 21:12 GafferWiles

same issue

KevinDenys avatar Dec 08 '22 22:12 KevinDenys

Same issue here

brunocerq avatar Dec 08 '22 22:12 brunocerq

Same issue

dmichura avatar Dec 08 '22 22:12 dmichura

Same issue - first time install Windows 11

machismo avatar Dec 08 '22 22:12 machismo

Fixed it by running the update.bat script

KevinDenys avatar Dec 08 '22 23:12 KevinDenys

Fixed it by running the update.bat script

I run the update.bat script and apparently it did success, but when I run the Invoke.bat and choose the webUi I get the following error:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! You appear to have a missing or misconfigured model file(s). The script will now exit and run configure_invokeai.py to help fix the problem. After reconfiguration is done, please relaunch invoke.py. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! configure_invokeai is launching....

Loading Python libraries...

An exception has occurred: DLL load failed while importing _lzma: The specified module could not be found.

So, the Lzma issue persists.

brunocerq avatar Dec 08 '22 23:12 brunocerq

Encountered this issue when running install.bat on accident, tried running update.bat to fix but the terminal would close as soon as I run the web ui. After deciding to just do a fresh reinstall, all was going well until I ended up back where I started:

ImportError: DLL load failed while importing _lzma: the specified module could not be found.

joshistoast avatar Dec 08 '22 23:12 joshistoast

It seems to be just a package issue. Found lots of fixes by installing other packages but could not replicate them on windows. Everything was focused on Mac/Linux. Any ideas?

guixvieira avatar Dec 09 '22 00:12 guixvieira

Same problem..

ImportError: DLL load failed while importing _lzma: The specified module could not be found.

tried update.bat but it didnt seem to solve the issue.

artistx81 avatar Dec 09 '22 00:12 artistx81

Same issue here, accidentally ran the "install.bat" and it began uninstalling packages, so I closed it as fast as I could, but seem to be stuck here now even after a clean install.

'ImportError: DLL load failed while importing _lzma: The specified module could not be found.'

Dextroo avatar Dec 09 '22 00:12 Dextroo

It's the same for me...

ImportError: DLL load failed while importing _lzma: The specified module could not be found.

Guessing it happened when an anti virus, which i dont even recall installing, interrupted the install.bat.

Schlumpikatze avatar Dec 09 '22 00:12 Schlumpikatze

I just went through all the necessary steps to manually install, I got all the way up to step 8 when I ran

python scripts/configure_invokeai.py

But alas the result was the same... no change.

joshistoast avatar Dec 09 '22 00:12 joshistoast

UPDATE

I was able to install invokeAI AND run the webui by using the anaconda terminal to run install.bat and invoke.bat without issues

joshistoast avatar Dec 09 '22 01:12 joshistoast

I was able to fix this by manually deleting the contents of installer_files and restarting my computer, then running install.bat again.

However, I would say that install.bat badly needs a Y/N confirmation to run, as it is right next to invoke.bat in the folder and is easy to mis-click if you're moving quickly. A script in the root directory shouldn't just begin uninstalling dependencies as soon as it is run, especially if it does not indicate it.

Dextroo avatar Dec 09 '22 01:12 Dextroo

I deleted the contents of installer_files as @Dextroo did and run the install again, got a few more prompts but in the end the install was successful.

brunocerq avatar Dec 09 '22 10:12 brunocerq

anaconda terminal

launching it through there solved the issue for me

Gnadri avatar Dec 10 '22 17:12 Gnadri

There has been no activity in this issue for 14 days. If this issue is still being experienced, please reply with an updated confirmation that the issue is still being experienced with the latest release.

github-actions[bot] avatar Mar 16 '23 06:03 github-actions[bot]