[GH-ISSUE #21513] issue: SyntaxWarning for pydub package #35035

Closed
opened 2026-04-25 09:14:43 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @donatas-xyz on GitHub (Feb 17, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21513

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Git Clone

Open WebUI Version

0.8.3

Ollama Version (if applicable)

0.16.2

Operating System

Ubuntu 25.10

Browser (if applicable)

Vivaldi

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 SyntaxWarning warnings in open-webui.log file.

Actual Behavior

Multiple SyntaxWarning warnings in open-webui.log file for pydub package.

Steps to Reproduce

  1. Start Open WebUI
  2. Check open-webui.log file
  3. Near the top it should show these errors

Logs & Screenshots

/home/user/.cache/uv/archive-v0/bTeI_3aTqLGe_OjjcraUH/lib/python3.12/site-packages/pydub/utils.py:300: SyntaxWarning: invalid escape sequence '\('
  m = re.match('([su]([0-9]{1,2})p?) \(([0-9]{1,2}) bit\)$', token)
/home/user/.cache/uv/archive-v0/bTeI_3aTqLGe_OjjcraUH/lib/python3.12/site-packages/pydub/utils.py:301: SyntaxWarning: invalid escape sequence '\('
  m2 = re.match('([su]([0-9]{1,2})p?)( \(default\))?$', token)
/home/user/.cache/uv/archive-v0/bTeI_3aTqLGe_OjjcraUH/lib/python3.12/site-packages/pydub/utils.py:310: SyntaxWarning: invalid escape sequence '\('
  elif re.match('(flt)p?( \(default\))?$', token):
/home/user/.cache/uv/archive-v0/bTeI_3aTqLGe_OjjcraUH/lib/python3.12/site-packages/pydub/utils.py:314: SyntaxWarning: invalid escape sequence '\('
  elif re.match('(dbl)p?( \(default\))?$', token):

Additional Information

Python version: 3.12

I can fix the issue with

user@user-linux:~$ uvx --python 3.12 uv pip install --upgrade pydub
Installed 1 package in 1ms
Resolved 1 package in 88ms
Prepared 1 package in 30ms
Installed 1 package in 0.88ms
 + pydub==0.25.1

but after Open WebUI upgrade it comes back again.

Perhaps a more precise version should be defined in the requirements.txt file for the pydub package?

Originally created by @donatas-xyz on GitHub (Feb 17, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/21513 ### 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 have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version 0.8.3 ### Ollama Version (if applicable) 0.16.2 ### Operating System Ubuntu 25.10 ### Browser (if applicable) Vivaldi ### 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 SyntaxWarning warnings in open-webui.log file. ### Actual Behavior Multiple SyntaxWarning warnings in open-webui.log file for pydub package. ### Steps to Reproduce 1. Start Open WebUI 2. Check open-webui.log file 3. Near the top it should show these errors ### Logs & Screenshots ```text /home/user/.cache/uv/archive-v0/bTeI_3aTqLGe_OjjcraUH/lib/python3.12/site-packages/pydub/utils.py:300: SyntaxWarning: invalid escape sequence '\(' m = re.match('([su]([0-9]{1,2})p?) \(([0-9]{1,2}) bit\)$', token) /home/user/.cache/uv/archive-v0/bTeI_3aTqLGe_OjjcraUH/lib/python3.12/site-packages/pydub/utils.py:301: SyntaxWarning: invalid escape sequence '\(' m2 = re.match('([su]([0-9]{1,2})p?)( \(default\))?$', token) /home/user/.cache/uv/archive-v0/bTeI_3aTqLGe_OjjcraUH/lib/python3.12/site-packages/pydub/utils.py:310: SyntaxWarning: invalid escape sequence '\(' elif re.match('(flt)p?( \(default\))?$', token): /home/user/.cache/uv/archive-v0/bTeI_3aTqLGe_OjjcraUH/lib/python3.12/site-packages/pydub/utils.py:314: SyntaxWarning: invalid escape sequence '\(' elif re.match('(dbl)p?( \(default\))?$', token): ``` ### Additional Information Python version: 3.12 I can fix the issue with ```bash user@user-linux:~$ uvx --python 3.12 uv pip install --upgrade pydub Installed 1 package in 1ms Resolved 1 package in 88ms Prepared 1 package in 30ms Installed 1 package in 0.88ms + pydub==0.25.1 ``` but after Open WebUI upgrade it comes back again. Perhaps a more precise version should be defined in the `requirements.txt` file for the `pydub` package?
GiteaMirror added the bug label 2026-04-25 09:14:43 -05:00
Author
Owner

@tjbck commented on GitHub (Feb 17, 2026):

Should be addressed from upstream.

<!-- gh-comment-id:3917260385 --> @tjbck commented on GitHub (Feb 17, 2026): Should be addressed from upstream.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#35035