issue: uvx No module named itsdangerous #6450

Closed
opened 2025-11-11 16:55:21 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @Moenupa on GitHub (Sep 19, 2025).

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Other

Open WebUI Version

0.6.30

Ollama Version (if applicable)

No response

Operating System

Ubuntu 24.04

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

No error when starting.

Actual Behavior

Fails to start.

Steps to Reproduce

uvx --python 3.11 open-webui@latest serve

Logs & Screenshots

Installed 264 packages in 2.41s
Loading WEBUI_SECRET_KEY from file, not provided as an environment variable.
Loading WEBUI_SECRET_KEY from /home/ubuntu/.webui_secret_key
╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /home/ubuntu/.cache/uv/archive-v0/Gj_ZZXxb6d0vz0BLO9geg/lib/python3.11/site- │
│ packages/open_webui/__init__.py:75 in serve                                  │
│                                                                              │
│    72 │   │   │   os.environ["USE_CUDA_DOCKER"] = "false"                    │
│    73 │   │   │   os.environ["LD_LIBRARY_PATH"] = ":".join(LD_LIBRARY_PATH)  │
│    74 │                                                                      │
│ ❱  75 │   import open_webui.main  # we need set environment variables before │
│    76 │   from open_webui.env import UVICORN_WORKERS  # Import the workers s │
│    77 │                                                                      │
│    78 │   uvicorn.run(                                                       │
│                                                                              │
│ ╭───── locals ─────╮                                                         │
│ │ host = '0.0.0.0' │                                                         │
│ │ port = 8080      │                                                         │
│ ╰──────────────────╯                                                         │
│                                                                              │
│ /home/ubuntu/.cache/uv/archive-v0/Gj_ZZXxb6d0vz0BLO9geg/lib/python3.11/site- │
│ packages/open_webui/main.py:49 in <module>                                   │
│                                                                              │
│     46                                                                       │
│     47 from starlette.exceptions import HTTPException as StarletteHTTPExcept │
│     48 from starlette.middleware.base import BaseHTTPMiddleware              │
│ ❱   49 from starlette.middleware.sessions import SessionMiddleware           │
│     50 from starlette.responses import Response, StreamingResponse           │
│     51 from starlette.datastructures import Headers                          │
│     52                                                                       │
│                                                                              │
│ ╭───────────────────────────────── locals ─────────────────────────────────╮ │
│ │      aiohttp = <module 'aiohttp' from                                    │ │
│ │                '/home/ubuntu/.cache/uv/archive-v0/Gj_ZZXxb6d0vz0BLO9geg… │ │
│ │        anyio = <module 'anyio' from                                      │ │
│ │                '/home/ubuntu/.cache/uv/archive-v0/Gj_ZZXxb6d0vz0BLO9geg… │ │
│ │ applications = <module 'fastapi.applications' from                       │ │
│ │                '/home/ubuntu/.cache/uv/archive-v0/Gj_ZZXxb6d0vz0BLO9geg… │ │
│ │      asyncio = <module 'asyncio' from                                    │ │
│ │                '/home/ubuntu/.local/share/uv/python/cpython-3.11.13-lin… │ │
│ │      inspect = <module 'inspect' from                                    │ │
│ │                '/home/ubuntu/.local/share/uv/python/cpython-3.11.13-lin… │ │
│ │         json = <module 'json' from                                       │ │
│ │                '/home/ubuntu/.local/share/uv/python/cpython-3.11.13-lin… │ │
│ │      logging = <module 'logging' from                                    │ │
│ │                '/home/ubuntu/.local/share/uv/python/cpython-3.11.13-lin… │ │
│ │    mimetypes = <module 'mimetypes' from                                  │ │
│ │                '/home/ubuntu/.local/share/uv/python/cpython-3.11.13-lin… │ │
│ │     Optional = typing.Optional                                           │ │
│ │           os = <module 'os' (frozen)>                                    │ │
│ │       random = <module 'random' from                                     │ │
│ │                '/home/ubuntu/.local/share/uv/python/cpython-3.11.13-lin… │ │
│ │     requests = <module 'requests' from                                   │ │
│ │                '/home/ubuntu/.cache/uv/archive-v0/Gj_ZZXxb6d0vz0BLO9geg… │ │
│ │       shutil = <module 'shutil' from                                     │ │
│ │                '/home/ubuntu/.local/share/uv/python/cpython-3.11.13-lin… │ │
│ │       status = <module 'starlette.status' from                           │ │
│ │                '/home/ubuntu/.cache/uv/archive-v0/Gj_ZZXxb6d0vz0BLO9geg… │ │
│ │          sys = <module 'sys' (built-in)>                                 │ │
│ │         time = <module 'time' (built-in)>                                │ │
│ ╰──────────────────────────────────────────────────────────────────────────╯ │
│                                                                              │
│ /home/ubuntu/.cache/uv/archive-v0/Gj_ZZXxb6d0vz0BLO9geg/lib/python3.11/site- │
│ packages/starlette/middleware/sessions.py:7 in <module>                      │
│                                                                              │
│    4 import typing                                                           │
│    5 from base64 import b64decode, b64encode                                 │
│    6                                                                         │
│ ❱  7 import itsdangerous                                                     │
│    8 from itsdangerous.exc import BadSignature                               │
│    9                                                                         │
│   10 from starlette.datastructures import MutableHeaders, Secret             │
│                                                                              │
│ ╭───────────────────────────────── locals ─────────────────────────────────╮ │
│ │ annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216)             │ │
│ │        json = <module 'json' from                                        │ │
│ │               '/home/ubuntu/.local/share/uv/python/cpython-3.11.13-linu… │ │
│ │      typing = <module 'typing' from                                      │ │
│ │               '/home/ubuntu/.local/share/uv/python/cpython-3.11.13-linu… │ │
│ ╰──────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────╯
ModuleNotFoundError: No module named 'itsdangerous'

Additional Information

No response

Originally created by @Moenupa on GitHub (Sep 19, 2025). ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Other ### Open WebUI Version 0.6.30 ### Ollama Version (if applicable) _No response_ ### Operating System Ubuntu 24.04 ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior No error when starting. ### Actual Behavior Fails to start. ### Steps to Reproduce ```sh uvx --python 3.11 open-webui@latest serve ``` ### Logs & Screenshots ``` Installed 264 packages in 2.41s Loading WEBUI_SECRET_KEY from file, not provided as an environment variable. Loading WEBUI_SECRET_KEY from /home/ubuntu/.webui_secret_key ╭───────────────────── Traceback (most recent call last) ──────────────────────╮ │ /home/ubuntu/.cache/uv/archive-v0/Gj_ZZXxb6d0vz0BLO9geg/lib/python3.11/site- │ │ packages/open_webui/__init__.py:75 in serve │ │ │ │ 72 │ │ │ os.environ["USE_CUDA_DOCKER"] = "false" │ │ 73 │ │ │ os.environ["LD_LIBRARY_PATH"] = ":".join(LD_LIBRARY_PATH) │ │ 74 │ │ │ ❱ 75 │ import open_webui.main # we need set environment variables before │ │ 76 │ from open_webui.env import UVICORN_WORKERS # Import the workers s │ │ 77 │ │ │ 78 │ uvicorn.run( │ │ │ │ ╭───── locals ─────╮ │ │ │ host = '0.0.0.0' │ │ │ │ port = 8080 │ │ │ ╰──────────────────╯ │ │ │ │ /home/ubuntu/.cache/uv/archive-v0/Gj_ZZXxb6d0vz0BLO9geg/lib/python3.11/site- │ │ packages/open_webui/main.py:49 in <module> │ │ │ │ 46 │ │ 47 from starlette.exceptions import HTTPException as StarletteHTTPExcept │ │ 48 from starlette.middleware.base import BaseHTTPMiddleware │ │ ❱ 49 from starlette.middleware.sessions import SessionMiddleware │ │ 50 from starlette.responses import Response, StreamingResponse │ │ 51 from starlette.datastructures import Headers │ │ 52 │ │ │ │ ╭───────────────────────────────── locals ─────────────────────────────────╮ │ │ │ aiohttp = <module 'aiohttp' from │ │ │ │ '/home/ubuntu/.cache/uv/archive-v0/Gj_ZZXxb6d0vz0BLO9geg… │ │ │ │ anyio = <module 'anyio' from │ │ │ │ '/home/ubuntu/.cache/uv/archive-v0/Gj_ZZXxb6d0vz0BLO9geg… │ │ │ │ applications = <module 'fastapi.applications' from │ │ │ │ '/home/ubuntu/.cache/uv/archive-v0/Gj_ZZXxb6d0vz0BLO9geg… │ │ │ │ asyncio = <module 'asyncio' from │ │ │ │ '/home/ubuntu/.local/share/uv/python/cpython-3.11.13-lin… │ │ │ │ inspect = <module 'inspect' from │ │ │ │ '/home/ubuntu/.local/share/uv/python/cpython-3.11.13-lin… │ │ │ │ json = <module 'json' from │ │ │ │ '/home/ubuntu/.local/share/uv/python/cpython-3.11.13-lin… │ │ │ │ logging = <module 'logging' from │ │ │ │ '/home/ubuntu/.local/share/uv/python/cpython-3.11.13-lin… │ │ │ │ mimetypes = <module 'mimetypes' from │ │ │ │ '/home/ubuntu/.local/share/uv/python/cpython-3.11.13-lin… │ │ │ │ Optional = typing.Optional │ │ │ │ os = <module 'os' (frozen)> │ │ │ │ random = <module 'random' from │ │ │ │ '/home/ubuntu/.local/share/uv/python/cpython-3.11.13-lin… │ │ │ │ requests = <module 'requests' from │ │ │ │ '/home/ubuntu/.cache/uv/archive-v0/Gj_ZZXxb6d0vz0BLO9geg… │ │ │ │ shutil = <module 'shutil' from │ │ │ │ '/home/ubuntu/.local/share/uv/python/cpython-3.11.13-lin… │ │ │ │ status = <module 'starlette.status' from │ │ │ │ '/home/ubuntu/.cache/uv/archive-v0/Gj_ZZXxb6d0vz0BLO9geg… │ │ │ │ sys = <module 'sys' (built-in)> │ │ │ │ time = <module 'time' (built-in)> │ │ │ ╰──────────────────────────────────────────────────────────────────────────╯ │ │ │ │ /home/ubuntu/.cache/uv/archive-v0/Gj_ZZXxb6d0vz0BLO9geg/lib/python3.11/site- │ │ packages/starlette/middleware/sessions.py:7 in <module> │ │ │ │ 4 import typing │ │ 5 from base64 import b64decode, b64encode │ │ 6 │ │ ❱ 7 import itsdangerous │ │ 8 from itsdangerous.exc import BadSignature │ │ 9 │ │ 10 from starlette.datastructures import MutableHeaders, Secret │ │ │ │ ╭───────────────────────────────── locals ─────────────────────────────────╮ │ │ │ annotations = _Feature((3, 7, 0, 'beta', 1), None, 16777216) │ │ │ │ json = <module 'json' from │ │ │ │ '/home/ubuntu/.local/share/uv/python/cpython-3.11.13-linu… │ │ │ │ typing = <module 'typing' from │ │ │ │ '/home/ubuntu/.local/share/uv/python/cpython-3.11.13-linu… │ │ │ ╰──────────────────────────────────────────────────────────────────────────╯ │ ╰──────────────────────────────────────────────────────────────────────────────╯ ModuleNotFoundError: No module named 'itsdangerous' ``` ### Additional Information _No response_
GiteaMirror added the bug label 2025-11-11 16:55:21 -06:00
Author
Owner

@TaylarRoids commented on GitHub (Sep 19, 2025):

Same issue on windows

@TaylarRoids commented on GitHub (Sep 19, 2025): Same issue on windows
Author
Owner

@Classic298 commented on GitHub (Sep 19, 2025):

Duplicate issue

@Classic298 commented on GitHub (Sep 19, 2025): Duplicate issue
Author
Owner

@Moenupa commented on GitHub (Sep 19, 2025):

solution: https://github.com/open-webui/open-webui/discussions/17572#discussioncomment-14444378

@Moenupa commented on GitHub (Sep 19, 2025): solution: https://github.com/open-webui/open-webui/discussions/17572#discussioncomment-14444378
Author
Owner

@Moenupa commented on GitHub (Sep 19, 2025):

Duplicate issue

Any plans for syncing with https://docs.openwebui.com/#2-run-open-webui?

@Moenupa commented on GitHub (Sep 19, 2025): > Duplicate issue Any plans for syncing with https://docs.openwebui.com/#2-run-open-webui?
Author
Owner

@Classic298 commented on GitHub (Sep 19, 2025):

No, as the issue is solved in latest dev. It was a typo in the requirements file

@Classic298 commented on GitHub (Sep 19, 2025): No, as the issue is solved in latest dev. It was a typo in the requirements file
Author
Owner

@dotlambda commented on GitHub (Sep 25, 2025):

It was a typo in the requirements file

Can you refer me to the commit fixing said typo?

@dotlambda commented on GitHub (Sep 25, 2025): > It was a typo in the requirements file Can you refer me to the commit fixing said typo?
Author
Owner

@Classic298 commented on GitHub (Sep 25, 2025):

d4f21c7e84

@Classic298 commented on GitHub (Sep 25, 2025): https://github.com/open-webui/open-webui/commit/d4f21c7e84d35986fc809168cc4194da584fbdd1
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#6450