You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🐛 ImportError: email-validator is not installed using Docker, Pydantic and Kool #153
I’m currently using the email-validator package for a model in FastAPI to validate email addresses.
However, when deploying the code inside a Docker container, I encounter the following error:
ImportError: email-validator is not installed, run
pip install pydantic[email]
I’ve already included the email-validator package in my requirements.txt file and tested different versions, ranging from 1.0.9 to the latest version, alongside Pydantic. Unfortunately, the issue persists.
I’m attaching the configuration files used in my project for your reference.
That looks like a pydantic error or an issue with the local Python environment and without any Python code or a Python stack trace to look at there's not much for me to go on.
Activity
JoshData commentedon Jan 14, 2025
That looks like a pydantic error or an issue with the local Python environment and without any Python code or a Python stack trace to look at there's not much for me to go on.