Hi Martjin and Luan, As of now, the main reason why PyFlink has not declared to support Python 3.9 is that the dependent apache-beam, and the versions of numpy and pyarrow that apache-beam depends on do not provide corresponding whl packages in Python 3.9. Users need source code installation, but source code installation is really difficult to install successfully, especially pyarrow. If you can successfully install these dependencies on python3.9 through source installation, as far as I know, you can successfully run the pyflink job. We are also upgrading the versions of these dependencies[1], and then we can easily provide support for python 3.9 and Mac M1.
[1] https://issues.apache.org/jira/browse/FLINK-25188 Best, Xingbo Martijn Visser <martijnvis...@apache.org> 于2022年4月5日周二 18:50写道: > Hi Luan, > > According to the documentation Python 3.9 is currently indeed not > supported. I briefly checked the Jira tickets and also couldn't find one > about adding support for this, so I've created > https://issues.apache.org/jira/browse/FLINK-27058 for that. > > @dian0511...@gmail.com <dian0511...@gmail.com> @hxbks...@gmail.co > <hxbks...@gmail.com>m can you let us know your thoughts on this? > Especially if it's "just" a matter of upgrading dependencies, since we also > have another PyFlink ticket for that because it currently can't compile on > Mac M1 [1] > > Best regards, > > Martijn Visser > https://twitter.com/MartijnVisser82 > https://github.com/MartijnVisser > > [1] https://issues.apache.org/jira/browse/FLINK-25188 > > > On Tue, 5 Apr 2022 at 11:40, Luan Cooper <gc.su...@gmail.com> wrote: > >> Hi >> >> currently I'll need to run pyflink udf on python 3.9 which is not >> supported >> right now >> >> I tried building >> - pyarrow==2.0.0 >> - apache-beam==2.27.0 >> on python 3.9 and test python jobs but failed >> >> Is there any discussions/git branch on python 3.9 before? (I didn't find >> any in this dev list) >> so I can continue working to fit 3.9 >> >