You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Lee-W (via GitHub)" <gi...@apache.org> on 2023/05/18 10:28:49 UTC

[GitHub] [airflow] Lee-W commented on pull request #31379: fix(amazon): replace airflow.version.version with airflow.__version__ for avoiding circular import error

Lee-W commented on PR #31379:
URL: https://github.com/apache/airflow/pull/31379#issuecomment-1552853918

   then maybe we can try something like the following?
   
   ```python
   try:
       airflow_version = airflow.__version__)
   except ImportError:
       airflow_version = airflow.version.version
   
   if packaging.version.parse(airflow_version) < packaging.version.parse("2.4.0"):
   ... 
   ```


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org