eladkal edited a comment on issue #14359: URL: https://github.com/apache/airflow/issues/14359#issuecomment-785410104
This is strange because it looks like you have different packaging versions? In any case I think the easiest way to solve this is not to use `current_airflow_version.major` as this works only with `packaging >= 20.0` https://github.com/pypa/packaging/blob/main/CHANGELOG.rst#200---2020-01-06 We don't have minimum requirement for [packaging](https://github.com/apache/airflow/blob/e33313302173b6bd872523ced233acc26ff9d6fe/setup.py#L635) So this just need to change https://github.com/apache/airflow/blob/e33313302173b6bd872523ced233acc26ff9d6fe/airflow/upgrade/rules/import_changes.py#L130 from: `if current_airflow_version.major >= 2:` to `if current_airflow_version >= Version("2.0.0"):` I'll PR shortly ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
