Ashwanth369 opened a new issue #20738:
URL: https://github.com/apache/airflow/issues/20738


   ### Apache Airflow version
   
   2.2.2
   
   ### What happened
   
   I am working in building a project on top of airflow. One of the files uses 
the datetime.py file under the operators directory. It seems the file has this 
line:
   
   **import datetime**
   
   and because of this, I am encountering the circular import error:
   
   **AttributeError: partially initialized module 'datetime' has no attribute 
'date' (most likely due to a circular import).**
   
   I am also facing a similar issue because of the sqlalchemy.py file under the 
utils folder. Is there anyway to overcome this issue?
   
   ### What you expected to happen
   
   _No response_
   
   ### How to reproduce
   
   _No response_
   
   ### Operating System
   
   Ubuntu 20.04
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### 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