receyuki / stable-diffusion-prompt-reader

A simple standalone viewer for reading prompts from Stable Diffusion generated image outside the webui.
MIT License
1.08k stars 69 forks source link

[BUG] Can't open the program #13

Closed ViperSniper89 closed 1 year ago

ViperSniper89 commented 1 year ago

Hi, I'm having an issue when I'm trying to open the program. Is there a way to solve it?

Traceback (most recent call last): File "requests\compat.py", line 11, in ModuleNotFoundError: No module named 'chardet'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main.py", line 1, in File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module File "app.py", line 21, in File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module File "update_checker.py", line 9, in File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module File "requests__init.py", line 45, in File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module File "requests\exceptions.py", line 9, in File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module File "requests\compat.py", line 13, in File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module File "charset_normalizer__init__.py", line 24, in File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module File "charset_normalizer\api.py", line 5, in File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module File "charset_normalizer\cd.py", line 9, in ModuleNotFoundError: No module named 'charset_normalizer.mdmypyc'

receyuki commented 1 year ago

My bad, I forgot to put the chardet in the requirement.txt. Simply pip install charset-normalizer will fix it. But the executables I made shouldn't have this problem, so please use the executable in preference.

ViperSniper89 commented 1 year ago

I already did install the charset-normalizer yet I still get the same error. Tried to uninstall, clear the cache and install again the charset-normalizer nothing works.

receyuki commented 1 year ago

Which version of the app are you currently using? windows? mac? Or running on your onw python?

ViperSniper89 commented 1 year ago

I have the latest version of python 3.11..3 and Chardet 5.1.0 running on Windows 11 22H2

receyuki commented 1 year ago

SD-Prompt-Reader-1.3.0.2-#13build1.zip

I'm still not sure what the problem is. Try this one. If it works, use it instead.

ViperSniper89 commented 1 year ago

Not working, I'm still having the same error.

receyuki commented 1 year ago

Do you use any antivirus other than Windows Defender?

ViperSniper89 commented 1 year ago

yes ESET!

receyuki commented 1 year ago

Would you mind whitelisting and redownloading the app? I'm trying to determine if this problem is caused by antivirus.

ViperSniper89 commented 1 year ago

Yes, it actually blocked by the antivirus. I whitelisted it and it already works fine.

receyuki commented 1 year ago

Then as I mentioned in the FAQ, you can either trust Windows Defender and keep it in the whitelist or use the instruction for Linux users to use this app.