Dev-iL commented on issue #28723:
URL: https://github.com/apache/airflow/issues/28723#issuecomment-1951118883
Not a deprecation but probably related to this effort: `DagBag` cannot be
imported with SQLA 2:
```python
>>> from airflow.models import DagBag
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/.../.venv/lib64/python3.9/site-packages/airflow/__init__.py",
line 68, in <module>
settings.initialize()
File "/home/.../.venv/lib64/python3.9/site-packages/airflow/settings.py",
line 544, in initialize
configure_orm()
File "/home/.../.venv/lib64/python3.9/site-packages/airflow/settings.py",
line 242, in configure_orm
engine = create_engine(SQL_ALCHEMY_CONN, connect_args=connect_args,
**engine_args, future=True)
File "<string>", line 2, in create_engine
File
"/home/.../.venv/lib64/python3.9/site-packages/sqlalchemy/util/deprecations.py",
line 281, in warned
return fn(*args, **kwargs) # type: ignore[no-any-return]
File
"/home/.../.venv/lib64/python3.9/site-packages/sqlalchemy/engine/create.py",
line 686, in create_engine
raise TypeError(
TypeError: Invalid argument(s) 'encoding' sent to create_engine(), using
configuration SQLiteDialect_pysqlite/QueuePool/Engine. Please check that the
keyword arguments are appropriate for this combination of components.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]