You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/12/02 14:04:41 UTC

[GitHub] [airflow] xelita commented on issue #19962: Unable to load custom logging from log_config.LOGGING_CONFIG due to No module named 'log_config'

xelita commented 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 a bit 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>
   


-- 
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-unsubscribe@airflow.apache.org

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