Bug 1721931 - py4j fails to build with Python 3.8
Summary: py4j fails to build with Python 3.8
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: py4j
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Raphael Groner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON38
TreeView+ depends on / blocked
 
Reported: 2019-06-19 09:21 UTC by Miro Hrončok
Modified: 2019-07-29 23:11 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-07-29 23:11:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2019-06-19 09:21:44 UTC
py4j fails to build with Python 3.8.0b1.

+ ant -f py4j-java/build.xml java-test

BUILD FAILED
/builddir/build/BUILD/py4j-0.10.7/py4j-java/build.xml:141: Test py4j.GatewayServerTest failed

Total time: 6 seconds
error: Bad exit status from /var/tmp/rpm-tmp.egHEsw (%check)
Buildfile: /builddir/build/BUILD/py4j-0.10.7/py4j-java/build.xml

init:

build:
     [echo] py4j: /builddir/build/BUILD/py4j-0.10.7/py4j-java/build.xml

java-test:
    [junit] Testsuite: py4j.BufferGatewayTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.074 sec
    [junit] 
    [junit] Testsuite: py4j.ClientServerTest
    [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.791 sec
    [junit] 
    [junit] Testsuite: py4j.EchoClientTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.028 sec
    [junit] 
    [junit] ------------- Standard Output ---------------
    [junit] EchoServer started...
    [junit] Waiting for echo input.
    [junit] Echo received: yi7
    [junit] Reading commands
    [junit] Waiting for echo input.
    [junit] Echo received: x
    [junit] Waiting for echo input.
    [junit] Echo received: null
    [junit] Received temp: c
    [junit] Received temp: g
    [junit] Received temp: getExample
    [junit] Received temp: e
    [junit] yi7
    [junit] Reading commands
    [junit] Received temp: c
    [junit] Received temp: o1
    [junit] Received temp: method1
    [junit] Received temp: i1
    [junit] Received temp: btrue
    [junit] Received temp: e
    [junit] x
    [junit] Reading commands
    [junit] Received temp: null
    [junit] ------------- ---------------- ---------------
    [junit] Testsuite: py4j.EchoServerTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.525 sec
    [junit] 
    [junit] ------------- Standard Output ---------------
    [junit] EchoServer started...
    [junit] Waiting for echo input.
    [junit] Echo received: yi7
    [junit] Waiting for echo input.
    [junit] Echo received: x
    [junit] Waiting for echo input.
    [junit] Reading commands
    [junit] Echo received: null
    [junit] Received temp: c
    [junit] Received temp: t
    [junit] Received temp: getExample
    [junit] Received temp: e
    [junit] yi7
    [junit] Reading commands
    [junit] Received temp: c
    [junit] Received temp: o0
    [junit] Received temp: method1
    [junit] Received temp: i1
    [junit] Received temp: btrue
    [junit] Received temp: e
    [junit] x
    [junit] ------------- ---------------- ---------------
    [junit] Reading commands
    [junit] Received temp: null
    [junit] Testsuite: py4j.GatewayServerTest
    [junit] Tests run: 5, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.823 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:375)
    [junit] 	at py4j.GatewayServer.startSocket(GatewayServer.java:787)
    [junit] 
    [junit] 


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.egHEsw (%check)

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.8/fedora-rawhide-x86_64/00940036-py4j/

For all our attempts to build py4j with Python 3.8, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/py4j/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.8:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/

Let us know here if you have any questions.

Comment 1 Raphael Groner 2019-06-22 17:32:21 UTC
> [junit] Caused by: java.net.BindException: Address already in use (Bind failed)

Did you try again? Maybe test failure happens due to a temporary network issue.

Comment 2 Miro Hrončok 2019-06-23 09:56:38 UTC
Yes, I have reproduced this multiple times.

Comment 3 Raphael Groner 2019-07-19 21:40:26 UTC
Please retry with new version 0.10.8.1 (see bug #1721931) built successfully in rawhide and within local mock with your python38 repo.

Comment 4 Raphael Groner 2019-07-19 21:42:07 UTC
Please retry with new version 0.10.8.1 (see bug #1701163) built successfully in rawhide and within local mock with your python38 repo.

Comment 5 Raphael Groner 2019-07-25 01:55:45 UTC
> Please retry with new version 0.10.8.1

Any news for a rebuild?

Comment 6 Petr Viktorin (pviktori) 2019-07-25 08:50:55 UTC
I can confirm this built successfully now: https://copr.fedorainfracloud.org/coprs/g/python/python3.8/build/975503/

Sorry for the delay in reporting back!

Comment 7 Miro Hrončok 2019-07-29 17:47:33 UTC
It fails again now.

+ ant -f py4j-java/build.xml java-test

BUILD FAILED
/builddir/build/BUILD/py4j-0.10.8.1/py4j-java/build.xml:141: Test py4j.GatewayServerTest failed

Total time: 6 seconds
error: Bad exit status from /var/tmp/rpm-tmp.93GEBv (%check)
Buildfile: /builddir/build/BUILD/py4j-0.10.8.1/py4j-java/build.xml

init:

build:
     [echo] py4j: /builddir/build/BUILD/py4j-0.10.8.1/py4j-java/build.xml

java-test:
    [junit] Testsuite: py4j.BufferGatewayTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.066 sec
    [junit] 
    [junit] Testsuite: py4j.ClientServerTest
    [junit] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.788 sec
    [junit] 
    [junit] Testsuite: py4j.EchoClientTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.028 sec
    [junit] 
    [junit] ------------- Standard Output ---------------
    [junit] EchoServer started...
    [junit] Waiting for echo input.
    [junit] Echo received: yi7
    [junit] Waiting for echo input.
    [junit] Echo received: x
    [junit] Waiting for echo input.
    [junit] Echo received: null
    [junit] Reading commands
    [junit] Received temp: c
    [junit] Received temp: g
    [junit] Received temp: getExample
    [junit] Received temp: e
    [junit] yi7
    [junit] Reading commands
    [junit] Received temp: c
    [junit] Received temp: o1
    [junit] Received temp: method1
    [junit] Received temp: i1
    [junit] Received temp: btrue
    [junit] Received temp: e
    [junit] x
    [junit] Reading commands
    [junit] Received temp: null
    [junit] ------------- ---------------- ---------------
    [junit] Testsuite: py4j.EchoServerTest
    [junit] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.536 sec
    [junit] 
    [junit] ------------- Standard Output ---------------
    [junit] EchoServer started...
    [junit] Waiting for echo input.
    [junit] Echo received: yi7
    [junit] Waiting for echo input.
    [junit] Echo received: x
    [junit] Waiting for echo input.
    [junit] Reading commands
    [junit] Echo received: null
    [junit] Received temp: c
    [junit] Received temp: t
    [junit] Received temp: getExample
    [junit] Received temp: e
    [junit] yi7
    [junit] Reading commands
    [junit] Received temp: c
    [junit] Received temp: o0
    [junit] Received temp: method1
    [junit] Received temp: i1
    [junit] Received temp: btrue
    [junit] Received temp: e
    [junit] x
    [junit] ------------- ---------------- ---------------
    [junit] Reading commands
    [junit] Received temp: null
    [junit] Testsuite: py4j.GatewayServerTest
    [junit] Tests run: 5, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.817 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:375)
    [junit] 	at py4j.GatewayServer.startSocket(GatewayServer.java:787)
    [junit] 
    [junit] 


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.93GEBv (%check)

Comment 8 Miro Hrončok 2019-07-29 23:11:51 UTC
The build is just flaky.


Note You need to log in before you can comment on or make changes to this bug.