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

AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'? #363

Open
DJZeroAction opened this issue Nov 2, 2024 · 2 comments

Comments

@DJZeroAction
Copy link

Had some issues so i decided to reinstall comfyui and install my custom nodes one by one (restarting after each install) and after installing mixlab i get this when launching ComfyUI:

Traceback (most recent call last):
File "/home/user/Programs/ComfyUI/main.py", line 90, in
import execution
File "/home/user/Programs/ComfyUI/execution.py", line 13, in
import nodes
File "/home/user/Programs/ComfyUI/nodes.py", line 21, in
import comfy.diffusers_load
File "/home/user/Programs/ComfyUI/comfy/diffusers_load.py", line 3, in
import comfy.sd
File "/home/user/Programs/ComfyUI/comfy/sd.py", line 8, in
from .ldm.cascade.stage_c_coder import StageC_coder
File "/home/user/Programs/ComfyUI/comfy/ldm/cascade/stage_c_coder.py", line 19, in
import torchvision
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/torchvision/init.py", line 10, in
from torchvision import _meta_registrations, datasets, io, models, ops, transforms, utils # usort:skip
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/torchvision/models/init.py", line 2, in
from .convnext import *
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/torchvision/models/convnext.py", line 8, in
from ..ops.misc import Conv2dNormActivation, Permute
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/torchvision/ops/init.py", line 23, in
from .poolers import MultiScaleRoIAlign
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/torchvision/ops/poolers.py", line 10, in
from .roi_align import roi_align
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/torchvision/ops/roi_align.py", line 7, in
from torch._dynamo.utils import is_compile_supported
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/torch/_dynamo/init.py", line 3, in
from . import convert_frame, eval_frame, resume_execution
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/torch/_dynamo/convert_frame.py", line 33, in
from torch._dynamo.utils import CompileTimeInstructionCounter
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/torch/_dynamo/utils.py", line 1492, in
if has_triton_package():
^^^^^^^^^^^^^^^^^^^^
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/torch/utils/_triton.py", line 9, in has_triton_package
from triton.compiler.compiler import triton_key
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/triton/init.py", line 8, in
from .runtime import (
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/triton/runtime/init.py", line 1, in
from .autotuner import (Autotuner, Config, Heuristics, autotune, heuristics)
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/triton/runtime/autotuner.py", line 9, in
from ..testing import do_bench, do_bench_cudagraph
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/triton/testing.py", line 7, in
from . import language as tl
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/triton/language/init.py", line 4, in
from . import math
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/triton/language/math.py", line 1, in
from . import core
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/triton/language/core.py", line 10, in
from ..runtime.jit import jit
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/triton/runtime/jit.py", line 12, in
from ..runtime.driver import driver
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/triton/runtime/driver.py", line 1, in
from ..backends import backends
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/triton/backends/init.py", line 50, in
backends = _discover_backends()
^^^^^^^^^^^^^^^^^^^^
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/triton/backends/init.py", line 44, in _discover_backends
driver = _load_module(name, os.path.join(root, name, 'driver.py'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/triton/backends/init.py", line 12, in _load_module
spec.loader.exec_module(module)
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/triton/backends/nvidia/driver.py", line 7, in
from triton.runtime.build import _build
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/triton/runtime/build.py", line 8, in
import setuptools
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/setuptools/init.py", line 16, in
import setuptools.version
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/setuptools/version.py", line 1, in
import pkg_resources
File "/home/user/Programs/ComfyUI/venv/comfyvenv/lib/python3.12/site-packages/pkg_resources/init.py", line 2191, in
register_finder(pkgutil.ImpImporter, find_on_path)
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?

@Autantpourmoi
Copy link

same error , did u find a solution ?

@palering
Copy link

same error , did u find a solution ?

Upgrade ensurepip and setuptools.

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

3 participants