Repository navigation
ModuleNotFoundError: No module named 'requests' #40
Description
Activity
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 appreciatedI have the same issue on RTX 3080
I fixed it by doing this:
- Go to the TouchDiffusion-main folder (the one with the ".venv")
- Open cmd and enter ".venv\Scripts\activate.bat"
- Enter "pip install requests". It should install the missing module.
- 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 :(
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