C:\Users\dell\AppData\Local\Programs\Python\Python310\lib\site-packages\airflow\__init__.py:35: 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 "C:\Users\dell\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\dell\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\dell\AppData\Local\Programs\Python\Python310\Scripts\airflow.exe\__main__.py", line 4, in
File "C:\Users\dell\AppData\Local\Programs\Python\Python310\lib\site-packages\airflow\__init__.py", line 73, in
settings.initialize()
File "C:\Users\dell\AppData\Local\Programs\Python\Python310\lib\site-packages\airflow\settings.py", line 536, in initialize
configure_orm()
File "C:\Users\dell\AppData\Local\Programs\Python\Python310\lib\site-packages\airflow\settings.py", line 238, in configure_orm
raise AirflowConfigException(
airflow.exceptions.AirflowConfigException: Cannot use relative path: `sqlite:///C:\Users\dell\airflow/airflow.db` to connect to sqlite. Please use absolute path such as `sqlite:////tmp/airflow.db`.
Я попробовал запустить команду init, а затем найти файл cfg, чтобы изменить SQLite на PostgreSQL, но мой файл cfg не создается.
Я использую Windows 11. Я загрузил пакет для Apache Airflow, но когда я пытаюсь запустить «airflow db init», я получаю следующую ошибку: [code]C:\Users\dell\AppData\Local\Programs\Python\Python310\lib\site-packages\airflow\__init__.py:35: 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 "C:\Users\dell\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\dell\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\dell\AppData\Local\Programs\Python\Python310\Scripts\airflow.exe\__main__.py", line 4, in File "C:\Users\dell\AppData\Local\Programs\Python\Python310\lib\site-packages\airflow\__init__.py", line 73, in settings.initialize() File "C:\Users\dell\AppData\Local\Programs\Python\Python310\lib\site-packages\airflow\settings.py", line 536, in initialize configure_orm() File "C:\Users\dell\AppData\Local\Programs\Python\Python310\lib\site-packages\airflow\settings.py", line 238, in configure_orm raise AirflowConfigException( airflow.exceptions.AirflowConfigException: Cannot use relative path: `sqlite:///C:\Users\dell\airflow/airflow.db` to connect to sqlite. Please use absolute path such as `sqlite:////tmp/airflow.db`. [/code] Я попробовал запустить команду init, а затем найти файл cfg, чтобы изменить SQLite на PostgreSQL, но мой файл cfg не создается.