TingTingin / TikTokDiffusion

69 stars 10 forks source link

Attribute error #9

Closed Grafarii closed 1 year ago

Grafarii commented 1 year ago

image

Grafarii commented 1 year ago

image

Grafarii commented 1 year ago

image this line seems to be the issue, i don't know why.

TingTingin commented 1 year ago

is it working do the samplers show up properly?

Grafarii commented 1 year ago

no, it doesn't open at all if that line is in the script

Grafarii commented 1 year ago

if you completely delete that part of the code that i showed in the screenshot, it will open but the samplers won't show up

Grafarii commented 1 year ago

i reinstalled everything, even python and upgraded pip, now it works

VaIerus commented 1 year ago

I'm having this same issue - I did the same as @Grafarii but not getting anywhere. Even updated pip via venv and still nothing. the exact error is: Successfully connected to 127.0.0.1:7860 Unhandled error processing page session : Traceback (most recent call last): File "F:\Library\stable-diffusion-webui-master\venv\lib\site-packages\flet\flet.py", line 302, in on_session_created session_handler(page) File "F:\Library\stable-diffusion-webui-master\TikTokDiffusion\TikTokDiffusion.py", line 1010, in main sampler = option.get("name") AttributeError: 'str' object has no attribute 'get'_

Running on Python 3.10.9

VaIerus commented 1 year ago

I'm having this same issue - I did the same as @Grafarii but not getting anywhere. Even updated pip via venv and still nothing. the exact error is: Successfully connected to 127.0.0.1:7860 Unhandled error processing page session : Traceback (most recent call last): File "F:\Library\stable-diffusion-webui-master\venv\lib\site-packages\flet\flet.py", line 302, in on_session_created session_handler(page) File "F:\Library\stable-diffusion-webui-master\TikTokDiffusion\TikTokDiffusion.py", line 1010, in main sampler = option.get("name") AttributeError: 'str' object has no attribute 'get'_

Running on Python 3.10.9

Fixed this issue by adding set COMMANDLINE_ARGS=--api to the tiktok-diffusion-webui-user.bat file