-
Notifications
You must be signed in to change notification settings - Fork 83
Description
Hi, first of all thanks for building StepDaddyLiveHD.
I’ve been trying to get it running (both in Docker and directly with a venv) and I’m consistently hitting a Reflex/pydantic/sqlmodel error before the app ever starts.
Environment
OS: Debian (bookworm / trixie, server)
Python: 3.12 (python3.12 from distro)
StepDaddyLiveHD: current master as of 18 Feb 2026
Requirements installed from the repo:
text
reflex==0.8.13
curl-cffi==0.13.0
httpx[http2]==0.28.1
python-dateutil==2.9.0
fastapi==0.118.0
In venv, after pip install -r requirements.txt I see:
pydantic==2.12.5
pydantic-core==2.41.5
sqlmodel==0.0.34
reflex==0.8.13
Repro steps (no Docker, plain venv)
From a fresh clone of the repo:
bash
cd StepDaddyLiveHD
python3.12 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
env vars
export PORT=3000
export API_URL="http://127.0.0.1:3000"
export PROXY_CONTENT=TRUE
export SOCKS5=""
start
reflex run --env prod --backend-only --loglevel debug
Error
Reflex immediately crashes with:
text
Traceback (most recent call last):
File ".../site-packages/reflex/utils/compat.py", line 60, in pydantic_v1_patch
yield
File ".../site-packages/reflex/utils/compat.py", line 75, in
import sqlmodel as sqlmodel
File ".../site-packages/sqlmodel/init.py", line 117, in
from .main import Field as Field
File ".../site-packages/sqlmodel/main.py", line 55, in
from ._compat import ( # type: ignore[attr-defined]
File ".../site-packages/sqlmodel/_compat.py", line 21, in
from pydantic._internal._fields import PydanticMetadata
File ".../site-packages/pydantic/_internal/_fields.py", line 17, in
from pydantic import PydanticDeprecatedSince211
ImportError: cannot import name 'PydanticDeprecatedSince211' from 'pydantic.v1' (.../site-packages/pydantic/v1/init.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File ".venv/bin/reflex", line 3, in
from reflex.reflex import cli
File ".../site-packages/reflex/init.py", line 87, in
from reflex.utils import (
File ".../site-packages/reflex/utils/compat.py", line 74, in
with pydantic_v1_patch():
File "/usr/lib/python3.12/contextlib.py", line 194, in exit
raise RuntimeError("generator didn't stop after throw()")
RuntimeError: generator didn't stop after throw()
Docker context
I also tried building and running via Docker (based on your Dockerfile plus small tweaks for DNS and Python 3.12). The container builds successfully, but the runtime logs show the exact same traceback and the container exits with code 1 in a restart loop.
So it looks like this is independent of Docker and purely a dependency compatibility issue between:
reflex 0.8.13
sqlmodel 0.0.34
pydantic 2.x (with its pydantic.v1 shim)
What I’ve tried
Python 3.11 and 3.12 (same error pattern).
Removing reflex init and reflex export from the Dockerfile and just running reflex run.
Pinning pydantic/sqlmodel manually (briefly), but didn’t want to diverge from your lock without guidance.
Ask
Could you please:
Confirm the intended Python version and exact pydantic/sqlmodel/reflex versions you’re testing against?
Consider pinning compatible versions in requirements.txt or a lock file so reflex run works out of the box on a clean venv?
If there’s a known working combination or a workaround (e.g. specific pydantic/sqlmodel versions), I’m happy to test it.
Thanks again — happy to provide more logs or try patches if needed.