guan404ming commented on issue #60760:
URL: https://github.com/apache/airflow/issues/60760#issuecomment-3772562492

   This issue is fixed in main branch (commit b7e909f2ff). The fix moves 
`DEFAULT_ENGINE_ARGS` inside the function so the SQLAlchemy version check 
happens at runtime instead of module import time.                               
                                                                      
                                                                                
                                                                         
   Could you verify by running:                                                 
                                                                         
   ```bash                                                                      
                                                                         
   python -c "from airflow.utils.sqlalchemy import is_sqlalchemy_v1; from 
importlib import metadata; print(f'SQLA: {metadata.version(\"sqlalchemy\")}'); 
   print(f'is_v1: {is_sqlalchemy_v1()}')"
   ```                                                                          
                                  
                                                                                
                                                                         
   Workaround: clear .pyc cache files or set PYTHONDONTWRITEBYTECODE=1.


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