Skip to content

AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. #63

@redo33

Description

@redo33

On Windows 11, Python 3.12.9, torch 2.7.0+cu128, numpy 1.26.4

Collecting tensorrt (from -r requirements.txt (line 1))
  Using cached tensorrt-10.12.0.36.tar.gz (40 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [11 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 14, in <module>
        File "G:\SD\ComfyUI\comfyui_env\Lib\site-packages\setuptools\__init__.py", line 16, in <module>
          import setuptools.version
        File "G:\SD\ComfyUI\comfyui_env\Lib\site-packages\setuptools\version.py", line 1, in <module>
          import pkg_resources
        File "G:\SD\ComfyUI\comfyui_env\Lib\site-packages\pkg_resources\__init__.py", line 2191, in <module>
          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.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Any suggestion would be appreciated. Thank you.

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