You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "autophagy (via GitHub)" <gi...@apache.org> on 2025/05/22 12:12:42 UTC
[PR] [FLINK-37776][python] Drop python 3.8 support [flink]
autophagy opened a new pull request, #26590:
URL: https://github.com/apache/flink/pull/26590
## What is the purpose of the change
Python 3.8 is [reached end-of-life ](https://devguide.python.org/versions/) on 2024-10-07. This PR drops support for Python 3.8, making PyFlink's minimum Python version 3.9.
## Brief change log
- Dropped support for Python 3.8 in PyFlink.
- Corrected some out of date Python version dependency documentation.
## Verifying this change
This can be verified with the existing Python tests.
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): (no)
- The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (no)
- The serializers: (no)
- The runtime per-record code paths (performance sensitive): (no)
- Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no)
- The S3 file system connector: (no)
## Documentation
- Does this pull request introduce a new feature? (no)
- If yes, how is the feature documented? (not applicable)
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-37776][python] Drop python 3.8 support [flink]
Posted by "flinkbot (via GitHub)" <gi...@apache.org>.
flinkbot commented on PR #26590:
URL: https://github.com/apache/flink/pull/26590#issuecomment-2901020140
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "555f0beef3ca7d77a9acc8f25a2648c379c6845a",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "555f0beef3ca7d77a9acc8f25a2648c379c6845a",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 555f0beef3ca7d77a9acc8f25a2648c379c6845a UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run azure` re-run the last Azure build
</details>
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-37776][python] Drop python 3.8 support [flink]
Posted by "autophagy (via GitHub)" <gi...@apache.org>.
autophagy closed pull request #26590: [FLINK-37776][python] Drop python 3.8 support
URL: https://github.com/apache/flink/pull/26590
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-37776][python] Drop python 3.8 support [flink]
Posted by "davidradl (via GitHub)" <gi...@apache.org>.
davidradl commented on code in PR #26590:
URL: https://github.com/apache/flink/pull/26590#discussion_r2114054135
##########
docs/content.zh/docs/dev/python/installation.md:
##########
@@ -29,11 +29,11 @@ under the License.
## 环境要求
-<span class="label label-info">注意</span> PyFlink 需要 Python 3.7 以上版本(3.8, 3.9 或 3.10)。请运行以下命令,以确保 Python 版本满足要求。
+<span class="label label-info">注意</span> PyFlink 需要 Python 3.9 以上版本(3.9, 3.10, 3.11 或 3.12)。请运行以下命令,以确保 Python 版本满足要求。
```bash
$ python --version
-# the version printed here must be 3.8, 3.9 or 3.10
+# the version printed here must be 3.9, 3.10, 3.11 or 3.12
Review Comment:
I suggest that we document that Python versions will no longer be supported by Flink when the security support ends for that Python level. Is https://endoflife.date/python the definitive link for this - if it is then we should include the link in the docs.
so in 5 months we will deprecate 3.9.
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-37776][python] Drop python 3.8 support [flink]
Posted by "yuhrichard (via GitHub)" <gi...@apache.org>.
yuhrichard commented on code in PR #26590:
URL: https://github.com/apache/flink/pull/26590#discussion_r2718610971
##########
docs/content.zh/docs/dev/python/installation.md:
##########
@@ -29,11 +29,11 @@ under the License.
## 环境要求
-<span class="label label-info">注意</span> PyFlink 需要 Python 3.7 以上版本(3.8, 3.9 或 3.10)。请运行以下命令,以确保 Python 版本满足要求。
+<span class="label label-info">注意</span> PyFlink 需要 Python 3.9 以上版本(3.9, 3.10, 3.11 或 3.12)。请运行以下命令,以确保 Python 版本满足要求。
```bash
$ python --version
-# the version printed here must be 3.8, 3.9 or 3.10
+# the version printed here must be 3.9, 3.10, 3.11 or 3.12
Review Comment:
Hi @davidradl, pemja added 3.13 support [here](https://github.com/alibaba/pemja/pull/72). Any news on apache-flink 3.13 support? let me know if i should open an issue instead
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-37776][python] Drop python 3.8 support [flink]
Posted by "autophagy (via GitHub)" <gi...@apache.org>.
autophagy commented on PR #26590:
URL: https://github.com/apache/flink/pull/26590#issuecomment-2916399117
After some discussion on the [mailing list](https://lists.apache.org/thread/nr1mmzgtnp7g1w76s60dkb6jvobqyfnt), it seems like theres a decent consensus for just dropping 3.8 support, and not deprecating it first, since we're already 6 months out of EOL. Will reopen this PR.
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-37776][python] Drop python 3.8 support [flink]
Posted by "davidradl (via GitHub)" <gi...@apache.org>.
davidradl commented on code in PR #26590:
URL: https://github.com/apache/flink/pull/26590#discussion_r2114049551
##########
docs/content.zh/docs/dev/python/installation.md:
##########
@@ -29,11 +29,11 @@ under the License.
## 环境要求
-<span class="label label-info">注意</span> PyFlink 需要 Python 3.7 以上版本(3.8, 3.9 或 3.10)。请运行以下命令,以确保 Python 版本满足要求。
+<span class="label label-info">注意</span> PyFlink 需要 Python 3.9 以上版本(3.9, 3.10, 3.11 或 3.12)。请运行以下命令,以确保 Python 版本满足要求。
```bash
$ python --version
-# the version printed here must be 3.8, 3.9 or 3.10
+# the version printed here must be 3.9, 3.10, 3.11 or 3.12
Review Comment:
I am curious - why not 3.13? Should we not be recommending this level as it is the only one in active support? https://endoflife.date/python
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-37776][python] Drop python 3.8 support [flink]
Posted by "autophagy (via GitHub)" <gi...@apache.org>.
autophagy commented on code in PR #26590:
URL: https://github.com/apache/flink/pull/26590#discussion_r2114163442
##########
docs/content.zh/docs/dev/python/installation.md:
##########
@@ -29,11 +29,11 @@ under the License.
## 环境要求
-<span class="label label-info">注意</span> PyFlink 需要 Python 3.7 以上版本(3.8, 3.9 或 3.10)。请运行以下命令,以确保 Python 版本满足要求。
+<span class="label label-info">注意</span> PyFlink 需要 Python 3.9 以上版本(3.9, 3.10, 3.11 或 3.12)。请运行以下命令,以确保 Python 版本满足要求。
```bash
$ python --version
-# the version printed here must be 3.8, 3.9 or 3.10
+# the version printed here must be 3.9, 3.10, 3.11 or 3.12
Review Comment:
We will likely just deprecate 3.9 when it hits EOL, and give users time to migrate over before we remove it (likely after 6 months, like we are doing with Python 3.8).
It's a good point on the Python 2 deprecation - I'll make a discussion/ticket for encoding our deprecation/removal policy in the Python docs and mention this explicitly w/r/t 3.9.
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-37776][python] Drop python 3.8 support [flink]
Posted by "davidradl (via GitHub)" <gi...@apache.org>.
davidradl commented on code in PR #26590:
URL: https://github.com/apache/flink/pull/26590#discussion_r2114217710
##########
docs/content.zh/docs/dev/python/installation.md:
##########
@@ -29,11 +29,11 @@ under the License.
## 环境要求
-<span class="label label-info">注意</span> PyFlink 需要 Python 3.7 以上版本(3.8, 3.9 或 3.10)。请运行以下命令,以确保 Python 版本满足要求。
+<span class="label label-info">注意</span> PyFlink 需要 Python 3.9 以上版本(3.9, 3.10, 3.11 或 3.12)。请运行以下命令,以确保 Python 版本满足要求。
```bash
$ python --version
-# the version printed here must be 3.8, 3.9 or 3.10
+# the version printed here must be 3.9, 3.10, 3.11 or 3.12
Review Comment:
Thanks - I see https://github.com/alibaba/pemja/pull/50 is looking at supporting 3.13. I guess we wait for that.
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-37776][python] Drop python 3.8 support [flink]
Posted by "twalthr (via GitHub)" <gi...@apache.org>.
twalthr merged PR #26590:
URL: https://github.com/apache/flink/pull/26590
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-37776][python] Drop python 3.8 support [flink]
Posted by "davidradl (via GitHub)" <gi...@apache.org>.
davidradl commented on code in PR #26590:
URL: https://github.com/apache/flink/pull/26590#discussion_r2114049551
##########
docs/content.zh/docs/dev/python/installation.md:
##########
@@ -29,11 +29,11 @@ under the License.
## 环境要求
-<span class="label label-info">注意</span> PyFlink 需要 Python 3.7 以上版本(3.8, 3.9 或 3.10)。请运行以下命令,以确保 Python 版本满足要求。
+<span class="label label-info">注意</span> PyFlink 需要 Python 3.9 以上版本(3.9, 3.10, 3.11 或 3.12)。请运行以下命令,以确保 Python 版本满足要求。
```bash
$ python --version
-# the version printed here must be 3.8, 3.9 or 3.10
+# the version printed here must be 3.9, 3.10, 3.11 or 3.12
Review Comment:
I am curious - why not 3.13?
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-37776][python] Drop python 3.8 support [flink]
Posted by "autophagy (via GitHub)" <gi...@apache.org>.
autophagy commented on PR #26590:
URL: https://github.com/apache/flink/pull/26590#issuecomment-2909926442
Just going to close this for now - worth a discussion on the mailing list around deprecating/dropping old version support.
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-37776][python] Drop python 3.8 support [flink]
Posted by "autophagy (via GitHub)" <gi...@apache.org>.
autophagy commented on code in PR #26590:
URL: https://github.com/apache/flink/pull/26590#discussion_r2114153613
##########
docs/content.zh/docs/dev/python/installation.md:
##########
@@ -29,11 +29,11 @@ under the License.
## 环境要求
-<span class="label label-info">注意</span> PyFlink 需要 Python 3.7 以上版本(3.8, 3.9 或 3.10)。请运行以下命令,以确保 Python 版本满足要求。
+<span class="label label-info">注意</span> PyFlink 需要 Python 3.9 以上版本(3.9, 3.10, 3.11 或 3.12)。请运行以下命令,以确保 Python 版本满足要求。
```bash
$ python --version
-# the version printed here must be 3.8, 3.9 or 3.10
+# the version printed here must be 3.9, 3.10, 3.11 or 3.12
Review Comment:
We do not currently support 3.13. Currently one of our main dependencies, [pemja](https://github.com/alibaba/pemja) which is used for Python UDFs in threaded exec mode, only supports Python versions up to 3.12.
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [FLINK-37776][python] Drop python 3.8 support [flink]
Posted by "davidradl (via GitHub)" <gi...@apache.org>.
davidradl commented on code in PR #26590:
URL: https://github.com/apache/flink/pull/26590#discussion_r2114054135
##########
docs/content.zh/docs/dev/python/installation.md:
##########
@@ -29,11 +29,11 @@ under the License.
## 环境要求
-<span class="label label-info">注意</span> PyFlink 需要 Python 3.7 以上版本(3.8, 3.9 或 3.10)。请运行以下命令,以确保 Python 版本满足要求。
+<span class="label label-info">注意</span> PyFlink 需要 Python 3.9 以上版本(3.9, 3.10, 3.11 或 3.12)。请运行以下命令,以确保 Python 版本满足要求。
```bash
$ python --version
-# the version printed here must be 3.8, 3.9 or 3.10
+# the version printed here must be 3.9, 3.10, 3.11 or 3.12
Review Comment:
I suggest that we document that Python versions will no longer be supported by Flink when the security support ends for that Python level. Is https://endoflife.date/python the definitive link for this - if it is then we should include the link in the docs.
So in 5 months we will remove 3.9. The worry there is that 3.9 is the last release with Python 2 backward compatibility layers. Is there anything we can do to warn users that Python 2 programs will no longer work or be supported when we remove 3.9. Maybe some wording to encourage moving to Python 3 APIs.
--
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: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org