In version 0.0.7 the new Session.get() parameter execution_options was added, however this parameter is not available in SQLAlchemy version <1.4.29 (see here). I think the minimum SQLAlchemy version requirement needs to be increased from 1.4.17 to at least 1.4.29.
For my example code above I was using:
sqlmodel==0.0.8
SQLAlchemy==1.4.27
The following error was returned:
INFO - Traceback (most recent call last):
INFO - File "/tmp/venvn6sl_gkl/script.py", line 44, in
INFO - res = test_sqlmodel(*arg_dict["args"], **arg_dict["kwargs"])
INFO - File "/tmp/venvn6sl_gkl/script.py", line 42, in test_sqlmodel
INFO - session.get(Hero, 1)
INFO - File "/tmp/venvn6sl_gkl/lib/python3.8/site-packages/sqlmodel/orm/session.py", line 133, in get
INFO - return super().get(
INFO - TypeError: get() got an unexpected keyword argument 'execution_options'
Is 0.0.9 coming soon? 0.0.8 locks SQLAlchemy to a specific patch release, but the later patch releases have bug fixes that I need (version locking fixed in #519).
Activity
⬆ Raise SQLAlchemy version requirement to at least `1.4.29` (fixes fa…
⬆ Raise SQLAlchemy version requirement to at least `1.4.29` (fixes fa…
gitpushdashf commented on Apr 4, 2023
SQLAlchemy is now pretty out of date, with several releases since. However, I do see 1.4.41 installed with 0.0.8, so maybe this can be closed out?
https://github.com/tiangolo/sqlmodel/blob/main/pyproject.toml#L34
⬆ Raise SQLAlchemy version requirement to at least `1.4.29` (related to
tiangolo commented on Oct 23, 2023
Thanks! This was handled in #439, it will be available in the next version, 0.0.9. 🎉
jpmckinney commented on Oct 23, 2023
Is 0.0.9 coming soon? 0.0.8 locks SQLAlchemy to a specific patch release, but the later patch releases have bug fixes that I need (version locking fixed in #519).