dstandish commented on PR #44086:
URL: https://github.com/apache/airflow/pull/44086#issuecomment-2483494507

   > What was the error?
   
   ```log
   Traceback (most recent call last):
     File "/home/airflow/.local/bin/airflow", line 8, in <module>
       sys.exit(main())
     File "/opt/airflow/airflow/__main__.py", line 62, in main
       args.func(args)
     File "/opt/airflow/airflow/cli/cli_config.py", line 48, in command
       func = import_string(import_path)
     File "/opt/airflow/airflow/utils/module_loading.py", line 39, in 
import_string
       module = import_module(module_path)
     File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in 
import_module
       return _bootstrap._gcd_import(name[level:], package, level)
     File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
     File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
     File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
     File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
     File "<frozen importlib._bootstrap_external>", line 850, in exec_module
     File "<frozen importlib._bootstrap>", line 228, in 
_call_with_frames_removed
     File "/opt/airflow/airflow/cli/commands/task_command.py", line 46, in 
<module>
       from airflow.models.dag import DAG, _run_inline_trigger
     File "/opt/airflow/airflow/models/dag.py", line 87, in <module>
       from airflow.models.baseoperator import BaseOperator
     File "/opt/airflow/airflow/models/baseoperator.py", line 80, in <module>
       from airflow.sdk import DAG, BaseOperator as TaskSDKBaseOperator, 
EdgeModifier as TaskSDKEdgeModifier
   ImportError: cannot import name 'DAG' from 'airflow.sdk' 
(/opt/airflow/task_sdk/src/airflow/sdk/__init__.py)
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to