Skip to content

Unable to install TensorRT on automatic1111 1.8.0 #286

@Hapseleg

Description

@Hapseleg

Hello

I tried installing TensorRT on automatic1111 version 1.8.0 and it fails, (I also tested on 1.7.0 and there was no problems)

*** Error running install.py for extension D:\stable-diffusion\sd180\webui\extensions\Stable-Diffusion-WebUI-TensorRT.
*** Command: "D:\stable-diffusion\sd180\system\python\python.exe" "D:\stable-diffusion\sd180\webui\extensions\Stable-Diffusion-WebUI-TensorRT\install.py"
*** Error code: 1
*** stderr: Traceback (most recent call last):
***   File "D:\stable-diffusion\sd180\webui\extensions\Stable-Diffusion-WebUI-TensorRT\install.py", line 3, in <module>
***     from importlib_metadata import version
*** ModuleNotFoundError: No module named 'importlib_metadata'
You are up to date with the most recent release.
Launching Web UI with arguments: --update-check --xformers
*** Error loading script: trt.py
    Traceback (most recent call last):
      File "D:\stable-diffusion\sd180\webui\modules\scripts.py", line 527, in load_scripts
        script_module = script_loading.load_module(scriptfile.path)
      File "D:\stable-diffusion\sd180\webui\modules\script_loading.py", line 10, in load_module
        module_spec.loader.exec_module(module)
      File "<frozen importlib._bootstrap_external>", line 883, in exec_module
      File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
      File "D:\stable-diffusion\sd180\webui\extensions\Stable-Diffusion-WebUI-TensorRT\scripts\trt.py", line 8, in <module>
        from polygraphy.logger import G_LOGGER
    ModuleNotFoundError: No module named 'polygraphy'
---

On my other pc I am getting almost the same error but instead its "ModuleNotFoundError: Launch"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions