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

import failed after update #51

Open
lzhfdwu007 opened this issue Nov 5, 2024 · 1 comment
Open

import failed after update #51

lzhfdwu007 opened this issue Nov 5, 2024 · 1 comment

Comments

@lzhfdwu007
Copy link

Error message is as follows

Traceback (most recent call last):
File "D:\ComfyUI\ComfyUI\nodes.py", line 2012, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "D:\ComfyUI\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 126, in import_module
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "D:\ComfyUI\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 D:\ComfyUI\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 5, 2024

Seems like OpenCV problem. If you are using the portable version, go to the path where 'Python_embeded' is located on the cmd and then run:

python_embeded/python.exe -s -m pip install opencv-contrib-python

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