aru-trackunit commented on issue #65652:
URL: https://github.com/apache/airflow/issues/65652#issuecomment-4343974951

   When executing 
   `airflow dags list --columns dag_id,fileloc,owners,is_paused --output json`
   instead of json I get warnings first and then json in the stdout so it 
denies to purpose in relying on cli commands
   
   ```
   2026-04-29T13:11:43.800158Z [info     ] setup plugin 
alembic.autogenerate.schemas [alembic.runtime.plugins] loc=plugins.py:37
   2026-04-29T13:11:43.800261Z [info     ] setup plugin 
alembic.autogenerate.tables [alembic.runtime.plugins] loc=plugins.py:37
   2026-04-29T13:11:43.800346Z [info     ] setup plugin 
alembic.autogenerate.types [alembic.runtime.plugins] loc=plugins.py:37
   2026-04-29T13:11:43.800386Z [info     ] setup plugin 
alembic.autogenerate.constraints [alembic.runtime.plugins] loc=plugins.py:37
   2026-04-29T13:11:43.800431Z [info     ] setup plugin 
alembic.autogenerate.defaults [alembic.runtime.plugins] loc=plugins.py:37
   2026-04-29T13:11:43.800462Z [info     ] setup plugin 
alembic.autogenerate.comments [alembic.runtime.plugins] loc=plugins.py:37
   2026-04-29T13:11:43.861346Z [warning  ] Could not import graphviz. Rendering 
graph to the graphical format will not be possible. 
   You might need to install the graphviz package and necessary system packages.
   Run `pip install graphviz` to attempt to install it. [py.warnings] 
category=UserWarning 
filename=/home/airflow/.local/lib/python3.12/site-packages/airflow/cli/commands/dag_command.py
 lineno=50
   [{"dag_id": "dag_name"}]
   ```
   
   I would expect to only get:
   `[{"dag_id": "dag_name"}]`


-- 
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