Nourepide / ComfyUI-Allor

ComfyUI plugin for image processing and work with alpha chanel.
MIT License
211 stars 26 forks source link

ModuleNotFoundError: No module named 'custom_nodes.comfyui_allor' #2

Closed kenyonxu closed 1 year ago

kenyonxu commented 1 year ago

image

image

Nourepide commented 1 year ago

It looks like there are problems only with Windows. I will try during today/tomorrow to see why it works differently on another OS.

ltdrdata commented 1 year ago

https://github.com/Nourepide/ComfyUI-Allore/blob/73c2a024a810c2ec58e4ee910773d78665418b69/modules/ImageSegmentation.py#L6

This is the problem. You should not use "custom_nodes.comfyui_allor" this approach..

People changes directory name. And default your git repository name is comfyui_allore. So the module name is incompatible with many people.

add sys.path.append(os.path.abspath(__file__)) in __init__.py

and just use like this

session.CustomSession import CustomAbstractSession

Nourepide commented 1 year ago

https://github.com/Nourepide/ComfyUI-Allore/blob/73c2a024a810c2ec58e4ee910773d78665418b69/modules/ImageSegmentation.py#L6

This is the problem. You should not use "custom_nodes.comfyui_allor" this approach..

People changes directory name. And default your git repository name is comfyui_allore. So the module name is incompatible with many people.

add sys.path.append(os.path.abspath(__file__)) in __init__.py

and just use like this

session.CustomSession import CustomAbstractSession

I really changed the name of the repository and forgot about it. I'll release a quick fix for now, then I'll do it normally.

Nourepide commented 1 year ago

Completely fixed in last commit.