yougyoung94 opened a new issue, #32395:
URL: https://github.com/apache/airflow/issues/32395
### Apache Airflow version
Other Airflow 2 version (please specify below)
### What happened
Airflow Version: 2.4.3
Python Version: 3.9
I installed airflow via `pip install apache-airflow==2.4.3` but whenever I
tried to run airflow cli, it gave the following error
```
Traceback (most recent call last):
File "/usr/local/bin/airflow", line 5, in <module>
from airflow.__main__ import main
File "/usr/local/lib/python3.9/dist-packages/airflow/__init__.py", line
46, in <module>
settings.initialize()
File "/usr/local/lib/python3.9/dist-packages/airflow/settings.py", line
573, in initialize
configure_orm()
File "/usr/local/lib/python3.9/dist-packages/airflow/settings.py", line
276, in configure_orm
engine = create_engine(SQL_ALCHEMY_CONN, connect_args=connect_args,
**engine_args)
File "<string>", line 2, in create_engine
File
"/usr/local/lib/python3.9/dist-packages/sqlalchemy/util/deprecations.py", line
281, in warned
return fn(*args, **kwargs) # type: ignore[no-any-return]
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/engine/create.py",
line 680, 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.
```
### What you think should happen instead
airflow command must normally run
### How to reproduce
docker run -it --rm ubuntu:20.04
# Inside the contaier
apt-get update -y \
&& apt-get install software-properties-common=0.99.9.11 -y \
&& add-apt-repository ppa:deadsnakes/ppa \
&& apt-get install -y --no-install-recommends \
python3.9=* \
python3.9-dev=*
apt-get update -y && apt-get install python3-pip
pip install apache-airflow==2.4.3
airflow
# gives following error
```
Traceback (most recent call last):
File "/usr/local/bin/airflow", line 5, in <module>
from airflow.__main__ import main
File "/usr/local/lib/python3.9/dist-packages/airflow/__init__.py", line
46, in <module>
settings.initialize()
File "/usr/local/lib/python3.9/dist-packages/airflow/settings.py", line
573, in initialize
configure_orm()
File "/usr/local/lib/python3.9/dist-packages/airflow/settings.py", line
276, in configure_orm
engine = create_engine(SQL_ALCHEMY_CONN, connect_args=connect_args,
**engine_args)
File "<string>", line 2, in create_engine
File
"/usr/local/lib/python3.9/dist-packages/sqlalchemy/util/deprecations.py", line
281, in warned
return fn(*args, **kwargs) # type: ignore[no-any-return]
File "/usr/local/lib/python3.9/dist-packages/sqlalchemy/engine/create.py",
line 680, 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.
```
### Operating System
ubuntu:20.04
### Versions of Apache Airflow Providers
None
### Deployment
Other
### Deployment details
Ran in docker container
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]