Skip to content

ModuleNotFoundError: No module named 'requests' #40

Description

@mimwallgit

Installation have been completed but when trying to launch webui, Iget this error :

Launching WebUI...
Traceback (most recent call last):
File "D:_INSTALL\VJING\TouchDiffusion-main\StreamDiffusion\webui.py", line 8, in
import requests
ModuleNotFoundError: No module named 'requests'
No launch file found

my version of python is 3.11.8150.1013

Activity

  1. LucaBiada commented on Jan 5, 2026

    @LucaBiada

    i have the same issue. I've fixed it (dont even remember how) but after that i got another error, and then another and another...
    what graphic card are you using? i suspect the issue is about the graphic card being too new, and not supported by the cuda/pytorch versions used. I'm using an nvidia rtx 5090, and unfortunately didnt find any way to make it work.
    If someone could help, that would be immensely appreciated

  2. seann1 commented on Jan 19, 2026

    @seann1

    I have the same issue on RTX 3080

  3. Kaiten10 commented on Jan 23, 2026

    @Kaiten10

    I fixed it by doing this:

    1. Go to the TouchDiffusion-main folder (the one with the ".venv")
    2. Open cmd and enter ".venv\Scripts\activate.bat"
    3. Enter "pip install requests". It should install the missing module.
    4. Start webui.bat again

    Now I'm able to continue with the rest of the installation steps from the readme. Btw I'm using RTX 3090.

    edit1: I got another error after updating the dependencies and restarting the webui:

    Error message:
    Git is installed.
    Activating virtual environment...
    Launching WebUI...
    Traceback (most recent call last):
    File "L:\AI_L\TouchDiffusion-main\StreamDiffusion\webui.py", line 18, in
    from utils.wrapper import StreamDiffusionWrapper
    File "L:\AI_L\TouchDiffusion-main\StreamDiffusion\utils\wrapper.py", line 9, in
    from diffusers import AutoencoderTiny, StableDiffusionPipeline
    File "L:\AI_L\TouchDiffusion-main.venv\Lib\site-packages\diffusers_init_.py", line 5, in
    from .utils import (
    File "L:\AI_L\TouchDiffusion-main.venv\Lib\site-packages\diffusers\utils_init_.py", line 131, in
    from .peft_utils import (
    File "L:\AI_L\TouchDiffusion-main.venv\Lib\site-packages\diffusers\utils\peft_utils.py", line 26, in
    from .torch_utils import empty_device_cache
    File "L:\AI_L\TouchDiffusion-main.venv\Lib\site-packages\diffusers\utils\torch_utils.py", line 33, in
    "xpu": torch.xpu.empty_cache,
    ^^^^^^^^^
    File "L:\AI_L\TouchDiffusion-main.venv\Lib\site-packages\torch_init_.py", line 1833, in getattr
    raise AttributeError(f"module '{name}' has no attribute '{name}'")
    AttributeError: module 'torch' has no attribute 'xpu'
    No launch file found
    Press any key to continue . . .

    I installed the newer version of pytorch into the venv using: pip install --upgrade torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126

    Now I can start the webui without errors.

    edit2: I got another error after clicking "Make Engine"

    "ImportError: DLL load failed while importing tensorrt: The specified module could not be found."

    Unfortunately, I'm stumped on this one :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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