grpc fails to build with Python 3.10.0a7. 366 tests finished: 361 successful 5 unsuccessful 102 skipped 0 expected failures 0 unexpected successes Interrupted Tests: [] Errors/Failures: [91mchannelz._channelz_servicer_test.ChannelzServicerTest.test_invalid_query_get_channel[0m [1mtraceback:[0m Traceback (most recent call last): File "/builddir/build/BUILD/grpc-1.26.0/src/python/grpcio_tests/tests/channelz/_channelz_servicer_test.py", line 430, in test_invalid_query_get_channel self._channelz_stub.GetChannel( File "/builddir/build/BUILDROOT/grpc-1.26.0-15.fc35.x86_64/usr/lib64/python3.10/site-packages/grpc/_channel.py", line 824, in __call__ return _end_unary_response_blocking(state, call, False, None) File "/builddir/build/BUILDROOT/grpc-1.26.0-15.fc35.x86_64/usr/lib64/python3.10/site-packages/grpc/_channel.py", line 726, in _end_unary_response_blocking raise _InactiveRpcError(state) grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with: status = NOT_FOUND details = "Failed to get the channel, please ensure your channel_id==10000 is valid" debug_error_string = "{"created":"@1617992720.747410014","description":"Error received from peer ipv6:[::1]:41817","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"Failed to get the channel, please ensure your channel_id==10000 is valid","grpc_status":5}" > During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib64/python3.10/unittest/case.py", line 59, in testPartExecutor yield File "/usr/lib64/python3.10/unittest/case.py", line 592, in run self._callTestMethod(testMethod) File "/usr/lib64/python3.10/unittest/case.py", line 549, in _callTestMethod method() File "/builddir/build/BUILD/grpc-1.26.0/src/python/grpcio_tests/tests/channelz/_channelz_servicer_test.py", line 433, in test_invalid_query_get_channel self.assertIn('StatusCode.NOT_FOUND', str(e)) File "/usr/lib64/python3.10/unittest/case.py", line 1106, in assertIn self.fail(self._formatMessage(msg, standardMsg)) File "/usr/lib64/python3.10/unittest/case.py", line 669, in fail raise self.failureException(msg) AssertionError: 'StatusCode.NOT_FOUND' not found in '<_InactiveRpcError of RPC that terminated with:\n\tstatus = NOT_FOUND\n\tdetails = "Failed to get the channel, please ensure your channel_id==10000 is valid"\n\tdebug_error_string = "{"created":"@1617992720.747410014","description":"Error received from peer ipv6:[::1]:41817","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"Failed to get the channel, please ensure your channel_id==10000 is valid","grpc_status":5}"\n>' [1mstdout:[0m [1mstderr:[0m ERROR:grpc._common:Exception serializing message! Traceback (most recent call last): File "/builddir/build/BUILDROOT/grpc-1.26.0-15.fc35.x86_64/usr/lib64/python3.10/site-packages/grpc/_common.py", line 85, in _transform return transformer(message) File "/usr/lib/python3.10/site-packages/google/protobuf/internal/python_message.py", line 1093, in SerializeToString if not self.IsInitialized(): AttributeError: 'NoneType' object has no attribute 'IsInitialized' [91mchannelz._channelz_servicer_test.ChannelzServicerTest.test_invalid_query_get_server[0m [1mtraceback:[0m Traceback (most recent call last): File "/builddir/build/BUILD/grpc-1.26.0/src/python/grpcio_tests/tests/channelz/_channelz_servicer_test.py", line 421, in test_invalid_query_get_server self._channelz_stub.GetServer( File "/builddir/build/BUILDROOT/grpc-1.26.0-15.fc35.x86_64/usr/lib64/python3.10/site-packages/grpc/_channel.py", line 824, in __call__ return _end_unary_response_blocking(state, call, False, None) File "/builddir/build/BUILDROOT/grpc-1.26.0-15.fc35.x86_64/usr/lib64/python3.10/site-packages/grpc/_channel.py", line 726, in _end_unary_response_blocking raise _InactiveRpcError(state) grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with: status = NOT_FOUND details = "Failed to get the server, please ensure your server_id==10000 is valid" debug_error_string = "{"created":"@1617992720.784262467","description":"Error received from peer ipv6:[::1]:44443","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"Failed to get the server, please ensure your server_id==10000 is valid","grpc_status":5}" > During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib64/python3.10/unittest/case.py", line 59, in testPartExecutor yield File "/usr/lib64/python3.10/unittest/case.py", line 592, in run self._callTestMethod(testMethod) File "/usr/lib64/python3.10/unittest/case.py", line 549, in _callTestMethod method() File "/builddir/build/BUILD/grpc-1.26.0/src/python/grpcio_tests/tests/channelz/_channelz_servicer_test.py", line 424, in test_invalid_query_get_server self.assertIn('StatusCode.NOT_FOUND', str(e)) File "/usr/lib64/python3.10/unittest/case.py", line 1106, in assertIn self.fail(self._formatMessage(msg, standardMsg)) File "/usr/lib64/python3.10/unittest/case.py", line 669, in fail raise self.failureException(msg) AssertionError: 'StatusCode.NOT_FOUND' not found in '<_InactiveRpcError of RPC that terminated with:\n\tstatus = NOT_FOUND\n\tdetails = "Failed to get the server, please ensure your server_id==10000 is valid"\n\tdebug_error_string = "{"created":"@1617992720.784262467","description":"Error received from peer ipv6:[::1]:44443","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"Failed to get the server, please ensure your server_id==10000 is valid","grpc_status":5}"\n>' [1mstdout:[0m [1mstderr:[0m ERROR:grpc._common:Exception serializing message! Traceback (most recent call last): File "/builddir/build/BUILDROOT/grpc-1.26.0-15.fc35.x86_64/usr/lib64/python3.10/site-packages/grpc/_common.py", line 85, in _transform return transformer(message) File "/usr/lib/python3.10/site-packages/google/protobuf/internal/python_message.py", line 1093, in SerializeToString if not self.IsInitialized(): AttributeError: 'NoneType' object has no attribute 'IsInitialized' [91mchannelz._channelz_servicer_test.ChannelzServicerTest.test_invalid_query_get_server_sockets[0m [1mtraceback:[0m Traceback (most recent call last): File "/builddir/build/BUILD/grpc-1.26.0/src/python/grpcio_tests/tests/channelz/_channelz_servicer_test.py", line 457, in test_invalid_query_get_server_sockets self._channelz_stub.GetServerSockets( File "/builddir/build/BUILDROOT/grpc-1.26.0-15.fc35.x86_64/usr/lib64/python3.10/site-packages/grpc/_channel.py", line 824, in __call__ return _end_unary_response_blocking(state, call, False, None) File "/builddir/build/BUILDROOT/grpc-1.26.0-15.fc35.x86_64/usr/lib64/python3.10/site-packages/grpc/_channel.py", line 726, in _end_unary_response_blocking raise _InactiveRpcError(state) grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with: status = NOT_FOUND details = "Failed to get server sockets, please ensure your server_id==10000 and start_socket_id==0 and max_results==0 is valid" debug_error_string = "{"created":"@1617992720.825259467","description":"Error received from peer ipv6:[::1]:39783","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"Failed to get server sockets, please ensure your server_id==10000 and start_socket_id==0 and max_results==0 is valid","grpc_status":5}" > During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib64/python3.10/unittest/case.py", line 59, in testPartExecutor yield File "/usr/lib64/python3.10/unittest/case.py", line 592, in run self._callTestMethod(testMethod) File "/usr/lib64/python3.10/unittest/case.py", line 549, in _callTestMethod method() File "/builddir/build/BUILD/grpc-1.26.0/src/python/grpcio_tests/tests/channelz/_channelz_servicer_test.py", line 463, in test_invalid_query_get_server_sockets self.assertIn('StatusCode.NOT_FOUND', str(e)) File "/usr/lib64/python3.10/unittest/case.py", line 1106, in assertIn self.fail(self._formatMessage(msg, standardMsg)) File "/usr/lib64/python3.10/unittest/case.py", line 669, in fail raise self.failureException(msg) AssertionError: 'StatusCode.NOT_FOUND' not found in '<_InactiveRpcError of RPC that terminated with:\n\tstatus = NOT_FOUND\n\tdetails = "Failed to get server sockets, please ensure your server_id==10000 and start_socket_id==0 and max_results==0 is valid"\n\tdebug_error_string = "{"created":"@1617992720.825259467","description":"Error received from peer ipv6:[::1]:39783","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"Failed to get server sockets, please ensure your server_id==10000 and start_socket_id==0 and max_results==0 is valid","grpc_status":5}"\n>' [1mstdout:[0m [1mstderr:[0m ERROR:grpc._common:Exception serializing message! Traceback (most recent call last): File "/builddir/build/BUILDROOT/grpc-1.26.0-15.fc35.x86_64/usr/lib64/python3.10/site-packages/grpc/_common.py", line 85, in _transform return transformer(message) File "/usr/lib/python3.10/site-packages/google/protobuf/internal/python_message.py", line 1093, in SerializeToString if not self.IsInitialized(): AttributeError: 'NoneType' object has no attribute 'IsInitialized' [91mchannelz._channelz_servicer_test.ChannelzServicerTest.test_invalid_query_get_socket[0m [1mtraceback:[0m Traceback (most recent call last): File "/builddir/build/BUILD/grpc-1.26.0/src/python/grpcio_tests/tests/channelz/_channelz_servicer_test.py", line 448, in test_invalid_query_get_socket self._channelz_stub.GetSocket( File "/builddir/build/BUILDROOT/grpc-1.26.0-15.fc35.x86_64/usr/lib64/python3.10/site-packages/grpc/_channel.py", line 824, in __call__ return _end_unary_response_blocking(state, call, False, None) File "/builddir/build/BUILDROOT/grpc-1.26.0-15.fc35.x86_64/usr/lib64/python3.10/site-packages/grpc/_channel.py", line 726, in _end_unary_response_blocking raise _InactiveRpcError(state) grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with: status = NOT_FOUND details = "Failed to get the socket, please ensure your socket_id==10000 is valid" debug_error_string = "{"created":"@1617992720.860273522","description":"Error received from peer ipv6:[::1]:46291","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"Failed to get the socket, please ensure your socket_id==10000 is valid","grpc_status":5}" > During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib64/python3.10/unittest/case.py", line 59, in testPartExecutor yield File "/usr/lib64/python3.10/unittest/case.py", line 592, in run self._callTestMethod(testMethod) File "/usr/lib64/python3.10/unittest/case.py", line 549, in _callTestMethod method() File "/builddir/build/BUILD/grpc-1.26.0/src/python/grpcio_tests/tests/channelz/_channelz_servicer_test.py", line 451, in test_invalid_query_get_socket self.assertIn('StatusCode.NOT_FOUND', str(e)) File "/usr/lib64/python3.10/unittest/case.py", line 1106, in assertIn self.fail(self._formatMessage(msg, standardMsg)) File "/usr/lib64/python3.10/unittest/case.py", line 669, in fail raise self.failureException(msg) AssertionError: 'StatusCode.NOT_FOUND' not found in '<_InactiveRpcError of RPC that terminated with:\n\tstatus = NOT_FOUND\n\tdetails = "Failed to get the socket, please ensure your socket_id==10000 is valid"\n\tdebug_error_string = "{"created":"@1617992720.860273522","description":"Error received from peer ipv6:[::1]:46291","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"Failed to get the socket, please ensure your socket_id==10000 is valid","grpc_status":5}"\n>' [1mstdout:[0m [1mstderr:[0m ERROR:grpc._common:Exception serializing message! Traceback (most recent call last): File "/builddir/build/BUILDROOT/grpc-1.26.0-15.fc35.x86_64/usr/lib64/python3.10/site-packages/grpc/_common.py", line 85, in _transform return transformer(message) File "/usr/lib/python3.10/site-packages/google/protobuf/internal/python_message.py", line 1093, in SerializeToString if not self.IsInitialized(): AttributeError: 'NoneType' object has no attribute 'IsInitialized' [91mchannelz._channelz_servicer_test.ChannelzServicerTest.test_invalid_query_get_subchannel[0m [1mtraceback:[0m Traceback (most recent call last): File "/builddir/build/BUILD/grpc-1.26.0/src/python/grpcio_tests/tests/channelz/_channelz_servicer_test.py", line 439, in test_invalid_query_get_subchannel self._channelz_stub.GetSubchannel( File "/builddir/build/BUILDROOT/grpc-1.26.0-15.fc35.x86_64/usr/lib64/python3.10/site-packages/grpc/_channel.py", line 824, in __call__ return _end_unary_response_blocking(state, call, False, None) File "/builddir/build/BUILDROOT/grpc-1.26.0-15.fc35.x86_64/usr/lib64/python3.10/site-packages/grpc/_channel.py", line 726, in _end_unary_response_blocking raise _InactiveRpcError(state) grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with: status = NOT_FOUND details = "Failed to get the subchannel, please ensure your subchannel_id==10000 is valid" debug_error_string = "{"created":"@1617992720.899430013","description":"Error received from peer ipv6:[::1]:44609","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"Failed to get the subchannel, please ensure your subchannel_id==10000 is valid","grpc_status":5}" > During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib64/python3.10/unittest/case.py", line 59, in testPartExecutor yield File "/usr/lib64/python3.10/unittest/case.py", line 592, in run self._callTestMethod(testMethod) File "/usr/lib64/python3.10/unittest/case.py", line 549, in _callTestMethod method() File "/builddir/build/BUILD/grpc-1.26.0/src/python/grpcio_tests/tests/channelz/_channelz_servicer_test.py", line 442, in test_invalid_query_get_subchannel self.assertIn('StatusCode.NOT_FOUND', str(e)) File "/usr/lib64/python3.10/unittest/case.py", line 1106, in assertIn self.fail(self._formatMessage(msg, standardMsg)) File "/usr/lib64/python3.10/unittest/case.py", line 669, in fail raise self.failureException(msg) AssertionError: 'StatusCode.NOT_FOUND' not found in '<_InactiveRpcError of RPC that terminated with:\n\tstatus = NOT_FOUND\n\tdetails = "Failed to get the subchannel, please ensure your subchannel_id==10000 is valid"\n\tdebug_error_string = "{"created":"@1617992720.899430013","description":"Error received from peer ipv6:[::1]:44609","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"Failed to get the subchannel, please ensure your subchannel_id==10000 is valid","grpc_status":5}"\n>' [1mstdout:[0m [1mstderr:[0m ERROR:grpc._common:Exception serializing message! Traceback (most recent call last): File "/builddir/build/BUILDROOT/grpc-1.26.0-15.fc35.x86_64/usr/lib64/python3.10/site-packages/grpc/_common.py", line 85, in _transform return transformer(message) File "/usr/lib/python3.10/site-packages/google/protobuf/internal/python_message.py", line 1093, in SerializeToString if not self.IsInitialized(): AttributeError: 'NoneType' object has no attribute 'IsInitialized' Unexpected successes: [] Test failure For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/02124475-grpc/ For all our attempts to build grpc with Python 3.10, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/grpc/ 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.10: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/ Let us know here if you have any questions. Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10. A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon. We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.
I have verified that the update to grpc 1.37.0 (RHBZ#1794566) will resolve the Python 3.10 issues. See that bug for status; it is blocked on a dependent package fix, but the intent is to complete it in the next few weeks.
Sorry, I posted prematurely. I can’t build with Python 3.10 yet because python-google-auth isn’t yet available in the Python 3.10 COPR.
I triggered python-google-auth rebuild in COPR and the latest version of it is available now. To easily test grpc with Python 3.10. you can open PR to update grpc in dist-git and it will trigger rebuild in Python 3.10. COPR. It will be available here: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/builds/?dirname=python3.10:pr:3 (3 is number of opened PR in dist-git component).
Thanks, that helped! I am now working through a few remaining test failures; some from Python 3.10, some specific to arm and/or s390x. I am treating a working Python 3.10 build (even if I skip a few tests without understanding the real problem) as a precondition for merging the 1.37 update into Fedora 35. It’s a fussy package, and rebuilds take a long time, but it shoudn’t be too much longer.
FEDORA-2021-73491747ee has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report.