AlekPet / ComfyUI_Custom_Nodes_AlekPet

Custom nodes that extend the capabilities of Comfyui
MIT License
862 stars 59 forks source link

module 'pkgutil' has no attribute 'ImpImporter' #79

Open lindongyue7 opened 2 months ago

lindongyue7 commented 2 months ago

Traceback (most recent call last): File "D:\comfyui\ComfyUI\nodes.py", line 1993, 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 "D:\comfyui\ComfyUI\custom_nodes\ComfyUI_Custom_Nodes_AlekPet__init.py", line 275, in from .ArgosTranslateNode.argos_translate_node import ( File "D:\comfyui\ComfyUI\custom_nodes\ComfyUI_Custom_Nodes_AlekPet\ArgosTranslateNode\argos_translate_node.py", line 5, in import argostranslate.translate File "C:\Users\PC\miniconda3\Lib\site-packages\argostranslate\translate.py", line 5, in import ctranslate2 File "C:\Users\PC\miniconda3\Lib\site-packages\ctranslate2\init.py", line 8, in import pkg_resources File "C:\Users\PC\miniconda3\Lib\site-packages\pkg_resources\init__.py", line 2172, in register_finder(pkgutil.ImpImporter, find_on_path) ^^^^^^^^^^^^^^^^^^^ AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?

Cannot import D:\comfyui\ComfyUI\custom_nodes\ComfyUI_Custom_Nodes_AlekPet module for custom nodes: module 'pkgutil' has no attribute 'ImpImporter'

AlekPet commented 2 months ago

Hi, I looked at the log, you have miniconda installed, although modules should be searched in comfyui's own python_embeded environment (if you installed the portable version of confyui https://github.com/comfyanonymous/ComfyUI/releases/download/v0.1.2/ComfyUI_windows_portable_nvidia.7z). Try updating your python version (for conda conda update python for Windows https://www.python.org/downloads/), and also reinstall argostranslate manually (in the console pip uninstall argostranslate or if you have conda conda uninstall argostranslate and install again.