xelita edited a comment on issue #19962:
URL: https://github.com/apache/airflow/issues/19962#issuecomment-984656869


   Thanks @ephraimbuddy for your quick answer but it fails in the same way. The 
error message is slighly different:
   <pre>
   Traceback (most recent call last):
     File 
"/home/airflow/.local/lib/python3.7/site-packages/airflow/logging_config.py", 
line 41, in configure_logging
       logging_config = import_string(logging_class_path)
     File 
"/home/airflow/.local/lib/python3.7/site-packages/airflow/utils/module_loading.py",
 line 32, in import_string
       module = import_module(module_path)
     File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in 
import_module
       return _bootstrap._gcd_import(name[level:], package, level)
     File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
     File "<frozen importlib._bootstrap>", line 983, in _find_and_load
     File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
     File "<frozen importlib._bootstrap>", line 219, in 
_call_with_frames_removed
     File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
     File "<frozen importlib._bootstrap>", line 983, in _find_and_load
     File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
   ModuleNotFoundError: No module named 'config'
   
   During handling of the above exception, another exception occurred:
   
   Traceback (most recent call last):
     File "/home/airflow/.local/bin/airflow", line 5, in <module>
       from airflow.__main__ import main
     File 
"/home/airflow/.local/lib/python3.7/site-packages/airflow/__init__.py", line 
46, in <module>
       settings.initialize()
     File 
"/home/airflow/.local/lib/python3.7/site-packages/airflow/settings.py", line 
483, in initialize
       LOGGING_CLASS_PATH = configure_logging()
     File 
"/home/airflow/.local/lib/python3.7/site-packages/airflow/logging_config.py", 
line 50, in configure_logging
       raise ImportError(f'Unable to load custom logging from 
{logging_class_path} due to {err}')
   ImportError: Unable to load custom logging from 
config.log_config.LOGGING_CONFIG due to No module named 'config'
   
   ERROR!!!: Too old Airflow version !
   The minimum Airflow version supported: 2.2.0. Only use this or higher!
   </pre>
   
   common-env entry in my docker-compose:
   <pre>
       &airflow-common-env
       #PYTHONPATH: /opt/airflow/config
       #AIRFLOW__LOGGING__REMOTE_LOGGING: 'true'
       AIRFLOW__LOGGING__LOGGING_CONFIG_CLASS: 
'config.log_config.LOGGING_CONFIG'
       AIRFLOW__CORE__EXECUTOR: CeleryExecutor
       AIRFLOW__CORE__SQL_ALCHEMY_CONN: 
postgresql+psycopg2://airflow:airflow@postgres/airflow
       AIRFLOW__CELERY__RESULT_BACKEND: 
db+postgresql://airflow:airflow@postgres/airflow
       AIRFLOW__CELERY__BROKER_URL: redis://:@redis:6379/0
       AIRFLOW__CORE__FERNET_KEY: ''
       AIRFLOW__CORE__DAGS_ARE_PAUSED_AT_CREATION: 'false'
       AIRFLOW__CORE__LOAD_EXAMPLES: 'false'
       AIRFLOW__API__AUTH_BACKEND: 'airflow.api.auth.backend.basic_auth'
       _PIP_ADDITIONAL_REQUIREMENTS: ${_PIP_ADDITIONAL_REQUIREMENTS:-}
     volumes:
       - ./dags:/opt/airflow/dags
       - ./logs:/opt/airflow/logs
       - ./plugins:/opt/airflow/plugins
       - ./config:/opt/airflow/config
     user: "${AIRFLOW_UID:-50000}:0"
     depends_on:
       &airflow-common-depends-on
       redis:
         condition: service_healthy
       postgres:
         condition: service_healthy
   </pre>


-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to