Format string %Y-%m-%d %-I:%M%p %Z
is invalid (Python 3.11.5)
#3555
Labels
Bug
Something isn't working
%Y-%m-%d %-I:%M%p %Z
is invalid (Python 3.11.5)
#3555
Summary
When I run
sqlmesh run
with SQLMesh 0.141.1 and Python 3.11.5, it returns the following error:I tweaked the
format_tz_datetime
function in my environment to print the values it was trying to use, which are:The error seems to be coming from the
datetime
library because of the%Y-%m-%d %-I:%M%p %Z
timestamp defined at:MWE
Since the underlying error seems to be coming from the
datetime
library, here's a pure Python MWE to replicate the error with this timestamp:Environment details
Windows 10
3.11.5
0.141.1
Comparison to
0.139.0
To confirm that this is indeed a new issue, I took the following steps:
sqlmesh plan
)sqlmesh run
without error (just to confirm that the command works)pip install sqlmesh==0.141.1
)sqlmesh migrate
)sqlmesh run
again, but hit the errorThe text was updated successfully, but these errors were encountered: