Fooocus_Nodes icon indicating copy to clipboard operation
Fooocus_Nodes copied to clipboard

Fails to load at startup No module named 'modules.sdxl_styles'

Open Mohsyn opened this issue 1 year ago • 3 comments

error while loadding:

Traceback (most recent call last): File "c:\comfyui\ComfyUI\nodes.py", line 1879, in load_custom_node module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in call_with_frames_removed File "C:\comfyui\ComfyUI\custom_nodes\Fooocus_Nodes_init.py", line 23, in imported_module = importlib.import_module( File "importlib_init_.py", line 126, in import_module File "", line 1050, in _gcd_import File "", line 1027, in _find_and_load File "", line 1006, in _find_and_load_unlocked File "", line 688, in _load_unlocked File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "C:\comfyui\ComfyUI\custom_nodes\Fooocus_Nodes\py\api.py", line 8, in from modules.sdxl_styles import legal_style_names ModuleNotFoundError: No module named 'modules.sdxl_styles'

Cannot import C:\comfyui\ComfyUI\custom_nodes\Fooocus_Nodes module for custom nodes: No module named 'modules.sdxl_styles'

What could be the issue? Where can I get that module ?

Mohsyn avatar May 24 '24 18:05 Mohsyn

@Seedsa your inputs will be appreciated

Mohsyn avatar May 28 '24 11:05 Mohsyn

This issue might be caused by new missing dependencies added the last time you updated ComfyUI. pip install -r requirements.txt

Seedsa avatar May 29 '24 02:05 Seedsa

This issue might be caused by new missing dependencies added the last time you updated ComfyUI. pip install -r requirements.txt

It is updated. I tried uninstall and fresh install too. same issue. Seems that it is unable to resolve paths correctly because some other node may have a path in sys path which has similar module names. Is there any workaround?

Mohsyn avatar May 29 '24 08:05 Mohsyn