Bug 1791969
Summary: | py4j version 0.10.9 / fails to build with Python 3.9: imports abc from collections | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | py4j | Assignee: | Raphael Groner <projects.rg> |
Status: | CLOSED DEFERRED | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | cstratak, hugovk+redhatbugzilla, mhroncok, mplch, projects.rg |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | py4j-0.10.9-1.fc32 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-02-28 09:07:40 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1785415 |
Description
Miro Hrončok
2020-01-16 19:16:09 UTC
This has been fixed in master in July 2019 (PR https://github.com/bartdag/py4j/pull/356) but the last release 0.10.8.1 was in October 2018 (https://github.com/bartdag/py4j/releases/tag/0.10.8.1). I've asked for a new release in the issue: https://github.com/bartdag/py4j/issues/345. This has been released in version 0.10.9: https://github.com/bartdag/py4j/issues/345#issuecomment-578414971. (In reply to Hugo van Kemenade from comment #2) > This has been released in version 0.10.9: > https://github.com/bartdag/py4j/issues/345#issuecomment-578414971. Thanks for the hint. It's not yet released. https://github.com/bartdag/py4j/commit/3745e493ee8ece0279a57683bbe3784db785b94e > Thanks for the hint. It's not yet released. > https://github.com/bartdag/py4j/commit/ > 3745e493ee8ece0279a57683bbe3784db785b94e 0.10.9 was released Jan 25, 2020: https://pypi.org/project/py4j/0.10.9/ They forgot to push the tags, but it's now done: https://github.com/bartdag/py4j/issues/345#issuecomment-583247140 https://github.com/bartdag/py4j/releases/tag/0.10.9 Tests execution in mock gets stuck after: [exec] testPythonToJava (py4j.tests.memory_leak_test.ClientServerTest) ... ok [exec] testPythonToJavaToPython (py4j.tests.memory_leak_test.ClientServerTest) ... ok Successfully built in rawhide. This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle. Changing version to 32. Please try to rebuild with recent rawhide and feel free to reopen this bug if there's still an issue or you'd like to see builds for other branches. There still is an issue, reopening. Seems like some network test is failing: [junit] Received temp: null [junit] Testsuite: py4j.GatewayServerTest [junit] Tests run: 5, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.813 sec [junit] [junit] Testcase: testListener(py4j.GatewayServerTest): Caused an ERROR [junit] null [junit] py4j.Py4JNetworkException [junit] at py4j.GatewayServer.startSocket(GatewayServer.java:789) [junit] at py4j.GatewayServer.start(GatewayServer.java:764) [junit] at py4j.GatewayServer.start(GatewayServer.java:747) [junit] at py4j.GatewayServerTest.testListener(GatewayServerTest.java:82) [junit] Caused by: java.net.BindException: Address already in use (Bind failed) [junit] at java.net.PlainSocketImpl.socketBind(Native Method) [junit] at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387) [junit] at java.net.ServerSocket.bind(ServerSocket.java:390) [junit] at py4j.GatewayServer.startSocket(GatewayServer.java:787) [junit] [junit] BUILD FAILED /builddir/build/BUILD/py4j-0.10.9/py4j-java/build.xml:141: Test py4j.GatewayServerTest failed For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.9/fedora-rawhide-x86_64/01242346-py4j/ > [junit] Caused by: java.net.BindException: Address already in use (Bind failed)
Well known issue when execution is done of several tests in parallel, in optimization concerns. Will take a closer look.
In Python 3.9.0a4 we have managed to revert the change that disables importing abstract base classes (collections.abc) directly form the regular collections module. It was reverted to ease transition for projects that did not yet actually dropped support for Python 2.7. The removal is scheduled for Python 3.10 instead. We are mass closing all the bug reports about build failures that were caused by this. Expect a new Bugzilla report in case this package fails to build with Python 3.9 for a different reason as well. In case you haven't done this already, we highly recommend to talk to your upstream and get this fixed anyway, because this will return in Python 3.10 and Python upstream is very unlikely to postpone this once more. In case you've already done that, thank you (this message is mass posted to all the relevant Bugzillas). |