[
https://issues.apache.org/jira/browse/FLINK-38472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18117727#comment-18117727
]
Florian Vazelle commented on FLINK-38472:
-----------------------------------------
Fix by [https://github.com/apache/flink/pull/28550,] the next release (2.4.0)
pre-build 3.13 wheels (done by [https://github.com/apache/flink/pull/29017]).
> can not install apache-flink with python3.13 pemja==0.5.3 cannot be built
> -------------------------------------------------------------------------
>
> Key: FLINK-38472
> URL: https://issues.apache.org/jira/browse/FLINK-38472
> Project: Flink
> Issue Type: Bug
> Affects Versions: 2.1.0
> Environment: ubuntu 25.04
> uv 0.8.14
> Python 3.13.3
>
> Reporter: nicolas debeissat
> Priority: Blocker
> Labels: install, uv
>
> I launch following command with uv :
> {code:sh}
> uv add apache-flink
> {code}
> I have following result :
> {code:sh}
> Resolved 194 packages in 424ms
> × Failed to build `pemja==0.5.3`
> ├─▶ The build backend returned an error
> ╰─▶ Call to `setuptools.build_meta:_legacy_.build_wheel` failed (exit
> status: 1)
> [stderr]
> Traceback (most recent call last):
> File "<string>", line 14, in <module>
> requires = get_requires_for_build({})
> File
> "/home/nico/.cache/uv/builds-v0/.tmpaEGBRY/lib/python3.13/site-packages/setuptools/build_meta.py",
> line 331, in get_requires_for_build_wheel
> return self._get_build_requires(config_settings, requirements=[])
> ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File
> "/home/nico/.cache/uv/builds-v0/.tmpaEGBRY/lib/python3.13/site-packages/setuptools/build_meta.py",
> line 301, in _get_build_requires
> self.run_setup()
> ~~~~~~~~~~~~~~^^
> File
> "/home/nico/.cache/uv/builds-v0/.tmpaEGBRY/lib/python3.13/site-packages/setuptools/build_meta.py",
> line 512, in run_setup
> super().run_setup(setup_script=setup_script)
> ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
> File
> "/home/nico/.cache/uv/builds-v0/.tmpaEGBRY/lib/python3.13/site-packages/setuptools/build_meta.py",
> line 317, in run_setup
> exec(code, locals())
> ~~~~^^^^^^^^^^^^^^^^
> File "<string>", line 206, in <module>
> File "<string>", line 107, in get_java_lib_folders
> File "<frozen posixpath>", line 77, in join
> TypeError: expected str, bytes or os.PathLike object, not NoneType
> hint: This usually indicates a problem with the package or the build
> environment.
> help: If you want to add the package regardless of the failed resolution,
> provide the `--frozen` flag to skip locking and syncing.
> {code}
>
> Then I tried to install a newer version of pemja with :
> {code:sh}
> uv add pemja
> Resolved 161 packages in 58ms
> Installed 2 packages in 5ms
> + find-libpython==0.4.1
> + pemja==0.6.1
> {code}
>
> But the version of apache-flink which is proposed then is very old :
> {code:sh}
> uv add apache-flink
> Resolved 163 packages in 182ms
> Installed 2 packages in 9ms
> + apache-flink==1.9.3
> + py4j==0.10.8.1
> {code}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)