light-and-ray / sd-webui-replacer

A tab for sd-webui for replacing objects in pictures or videos using detection prompt
193 stars 11 forks source link

[openvino] ImportError: cannot import name 'infotext_utils' from 'modules' (unknown location) #82

Closed OrloDavid closed 2 months ago

OrloDavid commented 3 months ago

Can't seem to get rid of this error no matter what I do or install.


*** Error loading script: replacer_script.py Traceback (most recent call last): File "C:\Git\stable-diffusion-webui\modules\scripts.py", line 382, in load_scripts script_module = script_loading.load_module(scriptfile.path) File "C:\Git\stable-diffusion-webui\modules\script_loading.py", line 10, in load_module module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Git\stable-diffusion-webui\extensions\sd-webui-replacer\scripts\replacer_script.py", line 6, in from replacer.ui import replacer_tab_ui File "C:\Git\stable-diffusion-webui\extensions\sd-webui-replacer\replacer\ui\replacer_tab_ui.py", line 2, in from modules import shared, ui_settings, errors, infotext_utils ImportError: cannot import name 'infotext_utils' from 'modules' (unknown location)

cocoph commented 2 months ago

update webui to the lastest version by cmd > git pull

OrloDavid commented 2 months ago

SD-Webui? I have the Openvino version, maybe its behind....

https://github.com/openvinotoolkit/stable-diffusion-webui/tree/master This branch is 132 commits ahead of, 1398 commits behind AUTOMATIC1111/stable-diffusion-webui:master.

Last updates were something like 10 months ago, maybe I should fork it and roll the changes in. :(

light-and-ray commented 2 months ago

https://github.com/openvinotoolkit/stable-diffusion-webui/tree/master

I see last month изображение

light-and-ray commented 2 months ago

But maybe it is outdated, what version in the page footer you see?

OrloDavid commented 2 months ago

version: [v1.6.0-132-ge5a634da]

Sorry, it took a minute to even get it working again with Openvino. God forbid, I tried to use a completely different program which also used Openvino, OpenCV CL? One of those, ONNX, etc, then SD Wed wouldn't load and it took uninstalling all Python, removing the Git directories and literally starting from scratch and yes, I tried everything in-between which is why it took so long to respond.

I so much hate Python's dependency / versioning / incompatibility (Is that a Python programming rule? Every version change, even minor, needs to completely break everything with 0 backwards compatibility. Like it's on a giant whiteboard for everyone who writes anything in Python? I assume it must be, because so many requirement files say only 1 specific version of something will work) and the Virtual Environment Implementation is a not how actual VE's, where the concept is modeled from, actually work, and that's my professional opinion on the VE's, the rest is just me being pissy due to the temperamental nature of these environments, I'm afraid to sneeze sometimes.

light-and-ray commented 2 months ago

Is that a Python programming rule? 

Yes, and not only python. In nodejs is it's a literally hell, every version of linux requires different installation method for different nodejs version