I intsalled the airflow through docker. When I tried to run a simple DAG. It is not importing the PythonOperato and giving me the below error.It has to do something with the SQL_ALCHEMY_CONN but couldn’t figure it out.
C:UsersbollaAppDataLocalProgramsPythonPython312Libsite-packagesairflow_init_.py:36: RuntimeWarning: Airflow currently can be run on POSIX-compliant Operating Systems. For development, it is regularly tested on fairly modern Linux Distros and recent versions of macOS. On Windows you can run it via WSL2 (Windows Subsystem for Linux 2) or via Linux Containers. The work to add Windows support is tracked via https://github.com/apache/airflow/issues/10388, but it is not a high priority.
warnings.warn(
OSError while attempting to symlink the latest log directory
Traceback (most recent call last):
File “”, line 198, in run_module_as_main
File “”, line 88, in run_code
File “C:UsersbollaAppDataLocalProgramsPythonPython312Scriptsairflow.exe_main.py”, line 4, in
File “C:UsersbollaAppDataLocalProgramsPythonPython312Libsite-packagesairflow_init.py”, line 74, in
settings.initialize()
File “C:UsersbollaAppDataLocalProgramsPythonPython312Libsite-packagesairflowsettings.py”, line 536, in initialize
configure_orm()
File “C:UsersbollaAppDataLocalProgramsPythonPython312Libsite-packagesairflowsettings.py”, line 238, in configure_orm
raise AirflowConfigException(
airflow.exceptions.AirflowConfigException: Cannot use relative path: sqlite:///C:UsersbollaPycharmProjectspythonProject.venvLibsite-packagesairflow/airflow.db
to connect to sqlite. Please use absolute path such as sqlite:////tmp/airflow.db
.
PS C:DockerDesktopWSLdocker-airflow-master> $ export AIRFLOW_HOME=~/airflow
Rohith Reddy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.