wpromatt opened a new issue #18932:
URL: https://github.com/apache/airflow/issues/18932


   ### Apache Airflow version
   
   2.2.0 (latest released)
   
   ### Operating System
   
   all
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   Python 3.7
   
   ### What happened
   
   The versions of `flake8` and `importlib-metadata` specified in the 
constraints file are incompatible for python 3.7.
   
   In the [constraints 
file](https://raw.githubusercontent.com/apache/airflow/constraints-2.2.0/constraints-3.7.txt):
  we have `importlib-metadata==4.8.1` and `flake8==4.0.1`.
   
   `flake8==4.0.1`, however, requires `<4.3`:  `flake8 4.0.1 depends on 
importlib-metadata<4.3; python_version < "3.8"`
   
   ```
   The conflict is caused by:
       
apache-airflow[amazon,async,celery,docker,google,grpc,hashicorp,http,postgres,redis,slack,ssh,statsd]
 2.2.0 depends on importlib-metadata>=1.7; python_version < "3.9"
       flake8 4.0.1 depends on importlib-metadata<4.3; python_version < "3.8"
       The user requested (constraint) importlib-metadata==4.8.1
   ```
   
   ### What you expected to happen
   
   Installing dependencies using `--constraint 
https://raw.githubusercontent.com/apache/airflow/constraints-2.2.0/constraints-3.7.txt`
 should be possible without conflicts. 
   
   ### How to reproduce
   
   python3.7
   ```
   pip install 
'apache-airflow[async,amazon,celery,postgres,google,slack,http,redis,statsd,docker,grpc,hashicorp,ssh]==2.2.0'
 flake8 --constraint 
https://raw.githubusercontent.com/apache/airflow/constraints-2.2.0/constraints-3.7.txt
   ```
   
   output:
   ```
   ERROR: Cannot install 
apache-airflow[amazon,async,celery,docker,google,grpc,hashicorp,http,postgres,redis,slack,ssh,statsd]==2.2.0
 and flake8==4.0.1 because these package versions have conflicting dependencies.
   
   The conflict is caused by:
       
apache-airflow[amazon,async,celery,docker,google,grpc,hashicorp,http,postgres,redis,slack,ssh,statsd]
 2.2.0 depends on importlib-metadata>=1.7; python_version < "3.9"
       flake8 4.0.1 depends on importlib-metadata<4.3; python_version < "3.8"
       The user requested (constraint) importlib-metadata==4.8.1
   
   To fix this you could try to:
   1. loosen the range of package versions you've specified
   2. remove package versions to allow pip attempt to solve the dependency 
conflict
   ```
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] 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