issue: No package metadata was found for email-validator #4865

Closed
opened 2025-11-11 16:05:15 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @ryandanehy on GitHub (Apr 16, 2025).

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Docker

Open WebUI Version

0.6.5

Ollama Version (if applicable)

0.6.5

Operating System

CentOS Linux 7

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 listed steps to reproduce the bug in detail.

Expected Behavior

Hi first off I love open-webui and have been using it without a hitch for over 7 + months. Recently I upgraded my container image (using apptainer not docker) from using open-webui container 0.5.7 to 0.6.5. I pull the container via From: open-webui/open-webui:main command. I did this previously when the version was at 0.5.7 with no problems. The upgraded container fails when trying to run Open-Webui.

Actual Behavior

However know when I attempt to run the container and start up open-webui i get the following error:

/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 1263, in _common_field_schema
schema = self._apply_annotations(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 2056, in _apply_annotations
schema = get_inner_schema(source_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_schema_generation_shared.py", line 84, in call
schema = self._handler(source_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 2037, in inner_handler
schema = self._generate_schema_inner(obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 884, in _generate_schema_inner
return self.match_type(obj)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 986, in match_type
return self._match_generic_type(obj, origin)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 1014, in _match_generic_type
return self._union_schema(obj)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 1325, in _union_schema
choices.append(self.generate_schema(arg))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 605, in generate_schema
from_property = self._generate_schema_from_property(obj, obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 759, in _generate_schema_from_property
schema = get_schema(
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/networks.py", line 965, in get_pydantic_core_schema
import_email_validator()
File "/usr/local/lib/python3.11/site-packages/pydantic/networks.py", line 928, in import_email_validator
if not version('email-validator').partition('.')[0] == '2':
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/metadata/init.py", line 1009, in version
return distribution(distribution_name).version
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/metadata/init.py", line 982, in distribution
return Distribution.from_name(distribution_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/metadata/init.py", line 565, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for email-validator
~
"~/.apptainer/instances/logs/rc-gpt.pnl.gov/svcmlops/open-webui.err" 133L, 8632C 133,1 Bot
common_field = self._common_field_schema(name, field_info, decorators)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 1263, in _common_field_schema
schema = self._apply_annotations(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 2056, in _apply_annotations
schema = get_inner_schema(source_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_schema_generation_shared.py", line 84, in call
schema = self._handler(source_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 2037, in inner_handler
schema = self._generate_schema_inner(obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 884, in _generate_schema_inner
return self.match_type(obj)
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 986, in match_type
return self._match_generic_type(obj, origin)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 1014, in _match_generic_type
return self._union_schema(obj)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 1325, in _union_schema
choices.append(self.generate_schema(arg))
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 605, in generate_schema
from_property = self._generate_schema_from_property(obj, obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 759, in _generate_schema_from_property
schema = get_schema(
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pydantic/networks.py", line 965, in get_pydantic_core_schema
import_email_validator()
File "/usr/local/lib/python3.11/site-packages/pydantic/networks.py", line 928, in import_email_validator
if not version('email-validator').partition('.')[0] == '2':
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/metadata/init.py", line 1009, in version
return distribution(distribution_name).version
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/metadata/init.py", line 982, in distribution
return Distribution.from_name(distribution_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/metadata/init.py", line 565, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for email-validator

Steps to Reproduce

  1. Build a container with From: open-webui/open-webui:main
  2. Attempt to run said container

Logs & Screenshots

Webui Container log output file:
Loading WEBUI_SECRET_KEY from file, not provided as an environment variable.
Loading WEBUI_SECRET_KEY from .webui_secret_key

webui container log error file [shortened see above in actual behavior for full log]:

File "/usr/local/lib/python3.11/site-packages/pydantic/networks.py", line 965, in get_pydantic_core_schema
import_email_validator()
File "/usr/local/lib/python3.11/site-packages/pydantic/networks.py", line 928, in import_email_validator
if not version('email-validator').partition('.')[0] == '2':
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/metadata/init.py", line 1009, in version
return distribution(distribution_name).version
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/metadata/init.py", line 982, in distribution
return Distribution.from_name(distribution_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/metadata/init.py", line 565, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for email-validator

Additional Information

Any help or direction in where I should go. I do want to note this no package metadata found rather than no module found which I find interesting. Any differences from 0.6.5 -> 0.5.7 that would cause this. Am I missing a dependency? Thank you so much for all future help. Love the package.

Originally created by @ryandanehy on GitHub (Apr 16, 2025). ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Docker ### Open WebUI Version 0.6.5 ### Ollama Version (if applicable) 0.6.5 ### Operating System CentOS Linux 7 ### 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 listed steps to reproduce the bug in detail. ### Expected Behavior Hi first off I love open-webui and have been using it without a hitch for over 7 + months. Recently I upgraded my container image (using apptainer not docker) from using open-webui container 0.5.7 to 0.6.5. I pull the container via `From: open-webui/open-webui:main` command. I did this previously when the version was at 0.5.7 with no problems. The upgraded container fails when trying to run Open-Webui. ### Actual Behavior However know when I attempt to run the container and start up open-webui i get the following error: > /python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 1263, in _common_field_schema > schema = self._apply_annotations( > ^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 2056, in _apply_annotations > schema = get_inner_schema(source_type) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_schema_generation_shared.py", line 84, in __call__ > schema = self._handler(source_type) > ^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 2037, in inner_handler > schema = self._generate_schema_inner(obj) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 884, in _generate_schema_inner > return self.match_type(obj) > ^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 986, in match_type > return self._match_generic_type(obj, origin) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 1014, in _match_generic_type > return self._union_schema(obj) > ^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 1325, in _union_schema > choices.append(self.generate_schema(arg)) > ^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 605, in generate_schema > from_property = self._generate_schema_from_property(obj, obj) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 759, in _generate_schema_from_property > schema = get_schema( > ^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/networks.py", line 965, in __get_pydantic_core_schema__ > import_email_validator() > File "/usr/local/lib/python3.11/site-packages/pydantic/networks.py", line 928, in import_email_validator > if not version('email-validator').partition('.')[0] == '2': > ^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/importlib/metadata/__init__.py", line 1009, in version > return distribution(distribution_name).version > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/importlib/metadata/__init__.py", line 982, in distribution > return Distribution.from_name(distribution_name) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/importlib/metadata/__init__.py", line 565, in from_name > raise PackageNotFoundError(name) > importlib.metadata.PackageNotFoundError: No package metadata was found for email-validator > ~ > "~/.apptainer/instances/logs/rc-gpt.pnl.gov/svcmlops/open-webui.err" 133L, 8632C 133,1 Bot > common_field = self._common_field_schema(name, field_info, decorators) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 1263, in _common_field_schema > schema = self._apply_annotations( > ^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 2056, in _apply_annotations > schema = get_inner_schema(source_type) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_schema_generation_shared.py", line 84, in __call__ > schema = self._handler(source_type) > ^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 2037, in inner_handler > schema = self._generate_schema_inner(obj) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 884, in _generate_schema_inner > return self.match_type(obj) > ^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 986, in match_type > return self._match_generic_type(obj, origin) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 1014, in _match_generic_type > return self._union_schema(obj) > ^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 1325, in _union_schema > choices.append(self.generate_schema(arg)) > ^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 605, in generate_schema > from_property = self._generate_schema_from_property(obj, obj) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/_internal/_generate_schema.py", line 759, in _generate_schema_from_property > schema = get_schema( > ^^^^^^^^^^^ > File "/usr/local/lib/python3.11/site-packages/pydantic/networks.py", line 965, in __get_pydantic_core_schema__ > import_email_validator() > File "/usr/local/lib/python3.11/site-packages/pydantic/networks.py", line 928, in import_email_validator > if not version('email-validator').partition('.')[0] == '2': > ^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/importlib/metadata/__init__.py", line 1009, in version > return distribution(distribution_name).version > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/importlib/metadata/__init__.py", line 982, in distribution > return Distribution.from_name(distribution_name) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > File "/usr/local/lib/python3.11/importlib/metadata/__init__.py", line 565, in from_name > raise PackageNotFoundError(name) > importlib.metadata.PackageNotFoundError: No package metadata was found for email-validator ### Steps to Reproduce 1. Build a container with From: open-webui/open-webui:main 2. Attempt to run said container ### Logs & Screenshots Webui Container log output file: Loading WEBUI_SECRET_KEY from file, not provided as an environment variable. Loading WEBUI_SECRET_KEY from .webui_secret_key webui container log error file [shortened see above in actual behavior for full log]: File "/usr/local/lib/python3.11/site-packages/pydantic/networks.py", line 965, in __get_pydantic_core_schema__ import_email_validator() File "/usr/local/lib/python3.11/site-packages/pydantic/networks.py", line 928, in import_email_validator if not version('email-validator').partition('.')[0] == '2': ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/metadata/__init__.py", line 1009, in version return distribution(distribution_name).version ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/metadata/__init__.py", line 982, in distribution return Distribution.from_name(distribution_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/metadata/__init__.py", line 565, in from_name raise PackageNotFoundError(name) importlib.metadata.PackageNotFoundError: No package metadata was found for email-validator ### Additional Information Any help or direction in where I should go. I do want to note this no package metadata found rather than no module found which I find interesting. Any differences from 0.6.5 -> 0.5.7 that would cause this. Am I missing a dependency? Thank you so much for all future help. Love the package.
GiteaMirror added the bug label 2025-11-11 16:05:15 -06:00
Author
Owner

@tjbck commented on GitHub (Apr 16, 2025):

Unable to reproduce, keep us updated

@tjbck commented on GitHub (Apr 16, 2025): Unable to reproduce, keep us updated
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#4865