Open blooddragonhero opened 4 months ago
try pip install cchardet
Did it and got this error now when testing the trained model:
Traceback (most recent call last):
File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 28, in
Same problem here
same here
I finally got it running after entering the following into the terminal:
pip install charset_normalizer==3.2.0 aiohttp==3.8.5 torch==1.12.1 torchvision==0.13.1
pip cache purge
Not sure if the 2nd part is necessary, but it doesn't hurt.
I get some warnings/ incompatibility errors, but I just ignored them and it does actually end up running for me. Hopefully it will run for you too.
So after i make all the right steps this is the response after i try to test the trained model, ( i downloaded the 1.5 stable diffusion and trained it successfully ) :
Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/aiohttp/client_reqrep.py", line 70, in
import cchardet as chardet
ModuleNotFoundError: No module named 'cchardet'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/content/gdrive/MyDrive/sd/stable-diffusion-webui/webui.py", line 22, in
import gradio
File "/usr/local/lib/python3.10/dist-packages/gradio/init.py", line 3, in
import gradio.components as components
File "/usr/local/lib/python3.10/dist-packages/gradio/components.py", line 34, in
from gradio import media_data, processing_utils, utils
File "/usr/local/lib/python3.10/dist-packages/gradio/processing_utils.py", line 23, in
from gradio import encryptor, utils
File "/usr/local/lib/python3.10/dist-packages/gradio/utils.py", line 38, in
import aiohttp
File "/usr/local/lib/python3.10/dist-packages/aiohttp/init.py", line 6, in
from .client import (
File "/usr/local/lib/python3.10/dist-packages/aiohttp/client.py", line 59, in
from .client_reqrep import (
File "/usr/local/lib/python3.10/dist-packages/aiohttp/client_reqrep.py", line 72, in
import charset_normalizer as chardet # type: ignore[no-redef]
File "/usr/local/lib/python3.10/dist-packages/charset_normalizer/init.py", line 24, in
from .api import from_bytes, from_fp, from_path
File "/usr/local/lib/python3.10/dist-packages/charset_normalizer/api.py", line 5, in
from .cd import (
File "/usr/local/lib/python3.10/dist-packages/charset_normalizer/cd.py", line 9, in
from .md import is_suspiciously_successive_range
AttributeError: partially initialized module 'charset_normalizer' has no attribute 'md__mypyc' (most likely due to a circular import)