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

Unable to load custom nodes after installation #54

Open
sbp2156 opened this issue Nov 14, 2024 · 6 comments
Open

Unable to load custom nodes after installation #54

sbp2156 opened this issue Nov 14, 2024 · 6 comments

Comments

@sbp2156
Copy link

sbp2156 commented Nov 14, 2024

The installation appears to be successful, but the following output occurs in the scripts when restarting ComfyUI, and the nodes still appear in red. I was using this earlier without issues, but I had to reinstall it due to some problems.

Traceback (most recent call last):
File "C:\AI\ComfyUI_windows_portable\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2012, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 991, in exec_module
File "", line 1128, in get_code
File "", line 1186, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'C:\AI\ComfyUI_windows_portable\ComfyUI_windows_portable\ComfyUI\custom_nodes\toyxyz_tools\init.py'

Cannot import C:\AI\ComfyUI_windows_portable\ComfyUI_windows_portable\ComfyUI\custom_nodes\toyxyz_tools module for custom nodes: [Errno 2] No such file or directory: 'C:\AI\ComfyUI_windows_portable\ComfyUI_windows_portable\ComfyUI\custom_nodes\toyxyz_tools\init.py'

@toyxyz
Copy link
Owner

toyxyz commented Nov 14, 2024

This looks like iniy.py was deleted for some reason. Try deleting the custom node completely and reinstalling it.

@sbp2156
Copy link
Author

sbp2156 commented Nov 15, 2024

hey I tried everything but somehow the extension seems to not work - can you share a version without the update

@toyxyz
Copy link
Owner

toyxyz commented Nov 15, 2024

Have you updated Comfyui to the latest version?

You can use git checkout to use older versions of commits.
https://stackoverflow.com/a/18037546/22334744

@sbp2156
Copy link
Author

sbp2156 commented Nov 16, 2024

hi I am sorry but this error is still popping pls have a look I am able to install and use web cam app and capture images with it but within the workflow node is in red - Traceback (most recent call last):
File "C:\AI\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2022, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 995, in exec_module
File "", line 488, in call_with_frames_removed
File "C:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_toyxyz_test_nodes_init
.py", line 12, in
imported_module = importlib.import_module(".{}".format(module_name), name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "importlib_init_.py", line 90, in import_module
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "C:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_toyxyz_test_nodes\toyxyz_test_nodes.py", line 13, in
from cv2.ximgproc import guidedFilter
ImportError: cannot import name 'guidedFilter' from 'cv2.ximgproc' (unknown location)

Cannot import C:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_toyxyz_test_nodes module for custom nodes: cannot import name 'guidedFilter' from 'cv2.ximgproc' (unknown location)

@toyxyz
Copy link
Owner

toyxyz commented Nov 17, 2024

Try uninstalling and reinstalling existing installations of opencv.

If you're using the portable version, run the following from your comfyui location

Like this : python_embeded/python.exe -s -pip uninstall opencv-python

pip uninstall opencv-python
pip uninstall opencv-contrib-python

pip install opencv-python
pip install opencv-contrib-python

@sbp2156
Copy link
Author

sbp2156 commented Nov 19, 2024

hey I could not install the custome nodes in the workflow but I found a solution of using screen share by Mixlab- https://github.com/shadowcz007/comfyui-mixlab-nodes

but thanks for the support I would also suggest you to check it out

Screenshot 2024-11-19 095323

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