thygate / stable-diffusion-webui-depthmap-script

High Resolution Depth Maps for Stable Diffusion WebUI
MIT License
1.66k stars 153 forks source link

Could not find the Qt platform plugin "windows" in "" #114

Open cranpeach opened 1 year ago

cranpeach commented 1 year ago

When trying to generate a video: I get the following:

Generating videos .. fov: 53.13010235415598 WARNING: Could not find the Qt platform plugin "windows" in "" WARNING: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

It then proceeds to crash my entire session instead of just failing, causing me to have to re-launch the webui entirely.

Tried closing/reopening the webui, tried deleting the pyqt folders from my webui\venv\Lib\site-packages and relaunching, it appears to redownload, but issues persist.

Even if this is user error, may at the very least want to prevent it from crashing the whole webui when this happens.

Thanks!

thygate commented 1 year ago

Are you on windows ?

cranpeach commented 1 year ago

Yes

thygate commented 1 year ago

Try (re)-installing pyqt5 : pip install pyqt5

cranpeach commented 1 year ago

So I deleted the pyqt folders from my webui\venv\Lib\site-package again, tried to re-install it - it said requirements were already met elsewhere, - went and found the pyqt install location in my python folder - deleted that - then reinstalled successfully

Installing collected packages: PyQt5-Qt5, PyQt5-sip, pyqt5 Successfully installed PyQt5-Qt5-5.15.2 PyQt5-sip-12.11.1 pyqt5-5.15.9

relaunched webui and watched it repopulate the pyqt into the webui\venv\Lib\site-package area tried again to generate video, same error and same crash of webui

fov: 53.13010235415598 WARNING: Could not find the Qt platform plugin "windows" in "" WARNING: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Thanks for trying to assist btw

thygate commented 1 year ago

It's working fine for me, could be a conflict with another package.. google WARNING: Could not find the Qt platform plugin "windows" in "" comes up with some suggestions ..

cutman100 commented 1 year ago

I have exactly the same problem. Portable Automatic 1111. But what's funny, on another external hard drive, it is also installed, but everything works fine there

jeklik commented 1 year ago

I have the same error:

Generating videos ..

fov: 53.13010235415598

WARNING: Warning: QT_DEVICE_PIXEL_RATIO is deprecated. Instead use: QT_AUTO_SCREEN_SCALE_FACTOR to enable platform plugin controlled per-screen factors. QT_SCREEN_SCALE_FACTORS to set per-screen DPI. QT_SCALE_FACTOR to set the application global scale factor. WARNING: Could not find the Qt platform plugin "windows" in "" WARNING: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Info about my SD:

Python 3.10.2 (tags/v3.10.2:a58ebcc, Jan 17 2022, 14:12:15) [MSC v.1929 64 bit (AMD64)] Commit hash: 22bcc7be428c94e9408f589966c2040187245d81 Installing requirements for Web UI

Installing imageio-ffmpeg requirement for depthmap script Installing pyqt5 requirement for depthmap script

Launching Web UI with arguments: --xformers

You are running torch 1.12.1+cu116. The program is tested to work with torch 1.13.1. To reinstall the desired version, run with commandline flag --reinstall-torch. Beware that this will cause a lot of large files to be downloaded, as well as there are reports of issues with training tab on the latest version.

Use --skip-version-check commandline argument to disable this check.

================================================================================= You are running xformers 0.0.14.dev. The program is tested to work with xformers 0.0.16rc425. To reinstall the desired version, run with commandline flag --reinstall-xformers.