Replies: 1 comment
|
Hi @jklaiho , I had the same error recently, and found this post. In my view, this is a bug -- is there a reason you did not report it as an issue, at least the missing runtime dependency? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Python has had the
zoneinfolibrary since 3.9, andpytzis widely considered a legacy project that was necessary at one time, but no longer. (E.g. Django dropped support for it in 5.0.) For more background, see here.In this project,
pytzis included inpyproject.tomlonly in thetestandscriptsdependency groups, despite it actually being a runtime dependency, apparently forTIMESTAMPTZsupport (correct me if I'm wrong). I transitioned away frompytztozoneinfoin a Django project that also hasduckdb-python, and after removingpytzmy server startup (where I'm performing a schema check on a table with aTIMESTAMPTZfield) started failing:Quick and dirty fix:
pytzshould at the very least be inoptional-dependencies.allinpyproject.toml.Better fix: drop
pytzand usezoneinfoinstead; one less external dependency to worry about.All reactions