Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

At installaiton ImportError: cannot import name 'create_toprow' from 'modules.ui' Automatic1111 version: 1.6.0 #97

Closed
StephZarx opened this issue Sep 3, 2023 · 6 comments · Fixed by #98

Comments

@StephZarx
Copy link

StephZarx commented Sep 3, 2023

Hello,

*** Error loading script: sd-TemporalKit-UI.py
Traceback (most recent call last):
File "E:\AI\stable-diffusion-webui-1.6.0\modules\scripts.py", line 382, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI\stable-diffusion-webui-1.6.0\modules\script_loading.py", line 10, in load_module
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "E:\AI\stable-diffusion-webui-1.6.0\extensions\TemporalKit\scripts\sd-TemporalKit-UI.py", line 23, in
from modules.ui import create_toprow, create_sampler_and_steps_selection
ImportError: cannot import name 'create_toprow' from 'modules.ui' (E:\AI\stable-diffusion-webui-1.6.0\modules\ui.py)

After tqdm error (solved by copy from system), this one appears with a fresh Automatic1111 v1.6 installation.

So installation is not possible and the tab extension does not appear.

An idea ?

@nurullahozatak
Copy link

I have same problem and didn't figure it out. I will switch older version of the A1111

@not-lain
Copy link

not-lain commented Sep 4, 2023

the reason behind this is that A1111 changed the file under modules/ui.py by changing the create_toprow to Toprow .

luckily, in TemporalKit this is an extra import and it's not needed in the extension.
you can fix this by

  • open the file inside of your A1111 directory extensions\TemporalKit\scripts\sd-TemporalKit-UI.py
  • change the following line from modules.ui import create_toprow, create_sampler_and_steps_selection into
from modules.ui import  create_sampler_and_steps_selection 

@UriahKong
Copy link

thanks bro

@StephZarx
Copy link
Author

This workaround is perfect. Thank you.

@darkflare
Copy link

the reason behind this is that A1111 changed the file under modules/ui.py by changing the create_toprow to Toprow .

luckily, in TemporalKit this is an extra import and it's not needed in the extension. you can fix this by

* open the file inside of your A1111 directory `extensions\TemporalKit\scripts\sd-TemporalKit-UI.py`

* change the following line    `from modules.ui import create_toprow, create_sampler_and_steps_selection` into
from modules.ui import  create_sampler_and_steps_selection 

Fixed! on 1.6.0 thanks mate!

@alexbofa
Copy link
Contributor

alexbofa commented Sep 8, 2023

Fix here #91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants