Skip to content

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

Description

@alimalls

hello,How can I fix this error?

E:\AI\ComfyUI_windows_portable-G312-0122\python_embeded\python.exe -m pip install -r requirements.txt

Requirement already satisfied: einops in e:\ai\comfyui_windows_portable-g312-0122\python_embeded\lib\site-packages (from -r requirements.txt (line 1)) (0.8.1)
Requirement already satisfied: colored in e:\ai\comfyui_windows_portable-g312-0122\python_embeded\lib\site-packages (from -r requirements.txt (line 2)) (2.3.1)
Requirement already satisfied: polygraphy in e:\ai\comfyui_windows_portable-g312-0122\python_embeded\lib\site-packages (from -r requirements.txt (line 3)) (0.50.3)
Collecting tensorrt (from -r requirements.txt (line 4))
Using cached tensorrt-11.0.0.114.tar.gz (16 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [31 lines of output]
Traceback (most recent call last):
File "E:\AI\ComfyUI_windows_portable-G312-0122\python_embeded\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
main()
File "E:\AI\ComfyUI_windows_portable-G312-0122\python_embeded\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI\ComfyUI_windows_portable-G312-0122\python_embeded\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 112, in get_requires_for_build_wheel
backend = _build_backend()
^^^^^^^^^^^^^^^^
File "E:\AI\ComfyUI_windows_portable-G312-0122\python_embeded\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 77, in build_backend
obj = import_module(mod_path)
^^^^^^^^^^^^^^^^^^^^^^^
File "importlib_init
.py", line 90, in import_module
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1310, in _find_and_load_unlocked
File "", line 488, in _call_with_frames_removed
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 999, in exec_module
File "", line 488, in call_with_frames_removed
File "E:\AI\ComfyUI_windows_portable-G312-0122\python_embeded\Lib\site-packages\setuptools_init
.py", line 16, in
import setuptools.version
File "E:\AI\ComfyUI_windows_portable-G312-0122\python_embeded\Lib\site-packages\setuptools\version.py", line 1, in
import pkg_resources
File "E:\AI\ComfyUI_windows_portable-G312-0122\python_embeded\Lib\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'?
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions