potiuk commented on pull request #11950:
URL: https://github.com/apache/airflow/pull/11950#issuecomment-798995664


   
   > results in
   > `Error response from daemon: manifest for apache/airflow:python3.9-master 
not found: manifest unknown: manifest unknown`
   > Which makes sense since this is the pr trying to add 3.9...
   
   I believe this can be fixed by  setting `SKIP_CHECK_REMOTE_IMAGE` to `true` 
- there we should skip checking if the remote image exists.
   
   > Side question has there been any discussion on switching to another 
package management solution like [pipenv](https://github.com/pypa/pipenv) or 
[poetry](https://python-poetry.org). The reason I ask is it feels like there 
has been a lot of errors around package version conflicts slipping in lately. 
By using one of the above solutions airflow would have better management over 
this and it would prevent invalid package management changes from slipping in.
   
   Oh yeah. we tried all that. And about 2 years ago I wrote the email on the 
devlist which was pretty much "Let's use poetry - it will solve all our 
problems". That was 2 years ago.
   
   And those tools were all discarded as they did not work well in our complex 
case. We even have an entry specific about pip-tools and poetry in here 
https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#airflow-dependencies
 together with explanation why they would not work. Here is more context on why 
those tools do not work: 
https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#dependency-management
   
   There is nothing magical with what pipenv or poetry does. Both 'poetry' and 
'pip-tools'  are rather more opinionated than PIP. And that makes them actually 
less suitable for Airflow  - airflow is both a library and application and 
neither pip-tools nor poetry handle the case well). We had lots of discussions 
about this in the devlist. 
   
   I'd really love to see the solution of the problem with other tools where:
   
   * you do not limit airflow with 'install-requires' whtere you can freely 
keep a set of few hudred libraries that you can upgrade at will
   * but you can install the latest set of airflow + providers and be sure they 
are working together in a consistent way (no matter if some transitive 
dependencies were released recently).
   
   Happy to brainstorm on that - but rather that 'use XXX' I would love to see 
that someone implements it. I.e. "this is how the tool solves this two problems:
   
   a)  a user wants to install released version of Airlfow (say 2.0.2) with set 
of providers/extras (for example google/snowflake/amazon) and they got it 
working with non-conflicting requirements
   b) a user wants to upgrade most dependencies to a newer version as they need 
to write a DAG that uses newer version of the dependency.
   
   So far poetry/pip-tools can work well with a) but they fail miserably when 
you add b) to the mix. But I am happy to hear how it can be done :)
   
   
   > 
   > example of one I stumbled across while trying to fool with this was
   > `<debug>PackageInfo:</debug> Invalid constraint 
(googledatastore>=7.0.1,<7.1; python_version < "3.0" ; extra == "gcp") found in 
apache-beam-2.9.0 dependencies, skipping`
   > another example was #13093
   
   


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


Reply via email to