Describe the bug
#7083 added the guided ImportError ("pip install reflex[db]") when rx.Model is subclassed without the db extra, but the CLI path did not get it: on a bare reflex install, reflex db init exits 1 with a 35-line raw click traceback ending in the underlying ModuleNotFoundError.
To Reproduce
uv venv && uv pip install reflex # no [db] extra
reflex init --template blank
reflex db init
Observed behavior
Raw traceback, exit code 1.
Expected behavior
The same guided message the model path prints, exit code 1.
Specifics
- Reflex 0.9.12a1; pre-existing, identical on 0.9.11.post1
- Python 3.11.15, Linux
Additional context
0.9.12a1 pre-release QA, db_optional_imports cluster, anomaly A2, confirmed by an adversarial verifier (LOW). Evidence: db_optional_imports/ (bareapp/, NOTES.md).
Describe the bug
#7083 added the guided
ImportError("pip install reflex[db]") whenrx.Modelis subclassed without thedbextra, but the CLI path did not get it: on a barereflexinstall,reflex db initexits 1 with a 35-line raw click traceback ending in the underlyingModuleNotFoundError.To Reproduce
Observed behavior
Raw traceback, exit code 1.
Expected behavior
The same guided message the model path prints, exit code 1.
Specifics
Additional context
0.9.12a1 pre-release QA,
db_optional_importscluster, anomaly A2, confirmed by an adversarial verifier (LOW). Evidence:db_optional_imports/(bareapp/, NOTES.md).