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

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

Open
Mohsyn opened this issue May 24, 2024 · 3 comments
Open

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

Mohsyn opened this issue May 24, 2024 · 3 comments

Comments

@Mohsyn
Copy link

Mohsyn commented May 24, 2024

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
Copy link
Author

Mohsyn commented May 28, 2024

@Seedsa your inputs will be appreciated

@Seedsa
Copy link
Owner

Seedsa commented May 29, 2024

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

@Mohsyn
Copy link
Author

Mohsyn commented May 29, 2024

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?

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

No branches or pull requests

2 participants