You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Dian Fu (Jira)" <ji...@apache.org> on 2021/09/09 12:49:00 UTC
[jira] [Comment Edited] (FLINK-23345) Migrate to the next version
of Python `requests` when released
[ https://issues.apache.org/jira/browse/FLINK-23345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17412552#comment-17412552 ]
Dian Fu edited comment on FLINK-23345 at 9/9/21, 12:48 PM:
-----------------------------------------------------------
[~potiuk] Thanks a lot for sharing this information. Actually `requests` was not used in PyFlink (also not used in codepaths dependent in apache-beam) and it was just a transitive dependency from apache-beam. Since PyFlink only supports Python 3 and Requests 2.26.0 (without the mandatory `chardet` dependency) has been released for Python 3, personally I think there is nothing need to do at Flink side. I'm closing this ticket. Thanks again for letting us know about this.
was (Author: dianfu):
[~potiuk] Thanks a lot for sharing this information. Actually `requests` was not used in PyFlink and it was just a transitive dependency from apache-beam. Since PyFlink only supports Python 3 and Requests 2.26.0 (without the mandatory `chardet` dependency) has been released for Python 3, personally I think there is nothing need to do at Flink side. I'm closing this ticket. Thanks again for letting us know about this.
> Migrate to the next version of Python `requests` when released
> --------------------------------------------------------------
>
> Key: FLINK-23345
> URL: https://issues.apache.org/jira/browse/FLINK-23345
> Project: Flink
> Issue Type: Bug
> Components: API / Python
> Affects Versions: 1.14.0
> Reporter: Jarek Potiuk
> Priority: Blocker
>
> Hello Maintainers,
> I am a PMC member of Apache Airflow, and I wanted to give you a bit of heads-up with rather important migration to the upcoming version of `requests` library in your Python release.
> Since you are using `requests` library in your project (at least indirectly via apache-beam), you are affected.
> As discussed at length in https://issues.apache.org/jira/browse/LEGAL-572 we found out that the 'chardet` library used by `requests` library was a mandatory dependency to requests and since it has LGPL licence, we should not release any Apache Software with it.
> Since then (and since in Airflow we rely on requests heavily) we have been working with the requests maintainers and "charset-normalizer" maintainer to make it possible to replace `chardet` with MIT-licensed `charset-normalizer` instead so that requests library can be used in Python releases by Apache projects.
> This was a bumpy road but finally the PR by [~ash] has been merged: [https://github.com/psf/requests/pull/5797] and we hope soon a new version of requests library will be released.
> This is just a heads-up. I will let you know when it is released, but I have a kind requests as well - I might ask the maintainers to release a release candidate of requests and maybe you could help to test it before it is released, that would be some re-assurance for the maintainers of requests who are very concerned about stability of their releases.
> Let me know if you need any more information and whether you would like to help in testing the candidate when it is out.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)