julietab231 opened a new issue, #32720:
URL: https://github.com/apache/airflow/issues/32720

   ### Apache Airflow version
   
   Other Airflow 2 version (please specify below)
   
   ### What happened
   
   Airflow 2.6.2. 
   I have deployed an Airflow environment and have created a Python DAG script. 
However, the DAG is not visible in the web interface at 
[http://localhost:8080/home. ↗](http://localhost:8080/home.) Strangely, when 
the script contains a syntax error, Airflow displays an error message 
indicating that the DAG could not be loaded due to an import error.
   
   You can see the code [here](https://github.com/julietab231/SDG-Case-Study); 
I'm talking about 
[analysis.py](https://github.com/julietab231/SDG-Case-Study/blob/main/dags/analysis.py)
   
   ### What you think should happen instead
   
   he DAG should be visible in the Airflow web interface even when there are no 
syntax errors in the script. It is unclear why the DAG is not appearing in the 
web interface when the script is correct. This issue is causing confusion and 
making it difficult to manage DAGs in Airflow.
   
   ### How to reproduce
   
   Replicate the docker env of the 
[code](https://github.com/julietab231/SDG-Case-Study).
   
   ### Operating System
   
   Windows
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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