Based on this link https://www.astronomer.io/guides/airflow-wsl/ Installed airflow successfully. When I run the “airflow initdb” cmd its returns an error like below. How can I fix this error?
"Traceback (most recent call last):
File "/home/user/.local/lib/python3.6/site-packages/airflow/configuration.py", line 632, in mkdir_p
os.makedirs(path)
File "/usr/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.6/os.py", line 210, in makedirs
makedirs(head, mode, exist_ok)
File "/usr/lib/python3.6/os.py", line 220, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/c'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user/.local/bin/airflow", line 25, in <module>
from airflow.configuration import conf
File "/home/user/.local/lib/python3.6/site-packages/airflow/__init__.py", line 31, in <module>
from airflow.utils.log.logging_mixin import LoggingMixin
File "/home/user/.local/lib/python3.6/site-packages/airflow/utils/__init__.py", line 24, in <module>
from .decorators import apply_defaults as _apply_defaults
File "/home/user/.local/lib/python3.6/site-packages/airflow/utils/decorators.py", line 36, in <module>
from airflow import settings
File "/home/user/.local/lib/python3.6/site-packages/airflow/settings.py", line 37, in <module>
from airflow.configuration import conf, AIRFLOW_HOME, WEBSERVER_CONFIG # NOQA F401
File "/home/user/.local/lib/python3.6/site-packages/airflow/configuration.py", line 656, in <module>
mkdir_p(AIRFLOW_HOME)
File "/home/user/.local/lib/python3.6/site-packages/airflow/configuration.py", line 638, in mkdir_p
'Error creating {}: {}'.format(path, exc.strerror))
airflow.exceptions.AirflowConfigException: Error creating /c/Users/admin/AirflowHome: Permission denied"