You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding F:\ComfyUI_windows_portable\ComfyUI\custom_nodes to sys.path
Traceback (most recent call last):
File "F:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2024, 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 "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture_init.py", line 13, in
from .modules.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture\modules\nodes.py", line 12, in
from .utility_nodes import (
File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture\modules\utility_nodes.py", line 17, in
from .utils import pil2tensor, tensor2pil, ensure_package, get_dict_attribute
File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture\modules\utils.py", line 9, in
import pkg_resources
File "F:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pkg_resources_init_.py", line 43, in
from pkgutil import ImpImporter
ImportError: cannot import name 'ImpImporter' from 'pkgutil' (F:\ComfyUI_windows_portable\python_embeded\python312.zip\pkgutil.pyc). Did you mean: 'zipimporter'?
Cannot import F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture module for custom nodes: cannot import name 'ImpImporter' from 'pkgutil'
The text was updated successfully, but these errors were encountered:
The update did not solve the problem, and then I had to replace two lines in the file F:\ComfyUI_windows\venv\Lib\site-packages\pkg_resources_init_.py (the virtual environment venv was used). Instead of the commented line, I inserted the following two:
##register_finder(pkgutil.ImpImporter, find_on_path)##
from importlib.machinery import PathFinder
register_finder(PathFinder, find_on_path)
And further in the text - the second replacement:
##register_namespace_handler(pkgutil.ImpImporter, file_ns_handler)##
register_namespace_handler(importlib.machinery.PathFinder, file_ns_handler)
Adding F:\ComfyUI_windows_portable\ComfyUI\custom_nodes to sys.path
Traceback (most recent call last):
File "F:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2024, 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 "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture_init.py", line 13, in
from .modules.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture\modules\nodes.py", line 12, in
from .utility_nodes import (
File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture\modules\utility_nodes.py", line 17, in
from .utils import pil2tensor, tensor2pil, ensure_package, get_dict_attribute
File "F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture\modules\utils.py", line 9, in
import pkg_resources
File "F:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\pkg_resources_init_.py", line 43, in
from pkgutil import ImpImporter
ImportError: cannot import name 'ImpImporter' from 'pkgutil' (F:\ComfyUI_windows_portable\python_embeded\python312.zip\pkgutil.pyc). Did you mean: 'zipimporter'?
Cannot import F:\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-art-venture module for custom nodes: cannot import name 'ImpImporter' from 'pkgutil'
The text was updated successfully, but these errors were encountered: