python-urllib3 fails to build with Python 3.10.0b1. =================================== FAILURES =================================== ________ TlsInTlsTestCase.test_tls_in_tls_makefile_raw_rw_binary[None] _________ self = <test.test_ssltransport.TlsInTlsTestCase object at 0x7f27807d5720> buffering = None @pytest.mark.timeout(PER_TEST_TIMEOUT) @pytest.mark.parametrize("buffering", [None, 0]) def test_tls_in_tls_makefile_raw_rw_binary(self, buffering): """ Uses makefile with read, write and binary modes without buffering. """ self.start_destination_server() self.start_proxy_server() sock = socket.create_connection( (self.proxy_server.host, self.proxy_server.port) ) with self.client_context.wrap_socket( sock, server_hostname="localhost" ) as proxy_sock: with SSLTransport( proxy_sock, self.client_context, server_hostname="localhost" ) as destination_sock: file = destination_sock.makefile("rwb", buffering) file.write(sample_request()) file.flush() response = bytearray(65536) > wrote = file.readinto(response) test/test_ssltransport.py:409: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.10/socket.py:705: in readinto return self._sock.recv_into(b) ../../BUILDROOT/python-urllib3-1.26.4-1.fc35.x86_64/usr/lib/python3.10/site-packages/urllib3/util/ssltransport.py:87: in recv_into return self.read(nbytes, buffer) ../../BUILDROOT/python-urllib3-1.26.4-1.fc35.x86_64/usr/lib/python3.10/site-packages/urllib3/util/ssltransport.py:73: in read return self._wrap_ssl_read(len, buffer) ../../BUILDROOT/python-urllib3-1.26.4-1.fc35.x86_64/usr/lib/python3.10/site-packages/urllib3/util/ssltransport.py:188: in _wrap_ssl_read return self._ssl_io_loop(self.sslobj.read, len, buffer) ../../BUILDROOT/python-urllib3-1.26.4-1.fc35.x86_64/usr/lib/python3.10/site-packages/urllib3/util/ssltransport.py:216: in _ssl_io_loop buf = self.socket.recv(SSL_BLOCKSIZE) /usr/lib64/python3.10/ssl.py:1256: in recv return self.read(buflen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <ssl.SSLSocket [closed] fd=25, family=AF_INET6, type=SOCK_STREAM, proto=6> len = 16384, buffer = None def read(self, len=1024, buffer=None): """Read up to LEN bytes and return them. Return zero-length string on EOF.""" self._checkClosed() if self._sslobj is None: raise ValueError("Read on closed or unwrapped SSL socket.") try: if buffer is not None: return self._sslobj.read(len, buffer) else: > return self._sslobj.read(len) E Failed: Timeout >60.0s /usr/lib64/python3.10/ssl.py:1131: Failed ----------------------------- Captured stderr call ----------------------------- +++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++ ~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-12 (139807586104896) ~~~~~~~~~~~~~~~~~~~~~ File "/usr/lib64/python3.10/threading.py", line 948, in _bootstrap self._bootstrap_inner() File "/usr/lib64/python3.10/threading.py", line 990, in _bootstrap_inner self.run() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 134, in run self.server = self._start_server() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 130, in _start_server self.socket_handler(sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 259, in proxy_handler self._read_write_loop(client_sock, upstream_sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 289, in _read_write_loop write_socket.send(b) File "/usr/lib64/python3.10/ssl.py", line 1203, in send return self._sslobj.write(data) ~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-10 (139807602890304) ~~~~~~~~~~~~~~~~~~~~~ File "/usr/lib64/python3.10/threading.py", line 948, in _bootstrap self._bootstrap_inner() File "/usr/lib64/python3.10/threading.py", line 990, in _bootstrap_inner self.run() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 134, in run self.server = self._start_server() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 130, in _start_server self.socket_handler(sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 259, in proxy_handler self._read_write_loop(client_sock, upstream_sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 288, in _read_write_loop b = read_socket.recv(chunks) File "/usr/lib64/python3.10/ssl.py", line 1256, in recv return self.read(buflen) File "/usr/lib64/python3.10/ssl.py", line 1137, in read return b'' ~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-9 (139807619675712) ~~~~~~~~~~~~~~~~~~~~~~ File "/usr/lib64/python3.10/threading.py", line 948, in _bootstrap self._bootstrap_inner() File "/usr/lib64/python3.10/threading.py", line 990, in _bootstrap_inner self.run() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 134, in run self.server = self._start_server() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 130, in _start_server self.socket_handler(sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 334, in socket_handler with cls.server_context.wrap_socket(sock, server_side=True) as ssock: File "/usr/lib64/python3.10/ssl.py", line 518, in wrap_socket return self.sslsocket_class._create( File "/usr/lib64/python3.10/ssl.py", line 1070, in _create self.do_handshake() File "/usr/lib64/python3.10/ssl.py", line 1339, in do_handshake self._sslobj.do_handshake() ~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-8 (139807611283008) ~~~~~~~~~~~~~~~~~~~~~~ File "/usr/lib64/python3.10/threading.py", line 948, in _bootstrap self._bootstrap_inner() File "/usr/lib64/python3.10/threading.py", line 990, in _bootstrap_inner self.run() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 134, in run self.server = self._start_server() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 130, in _start_server self.socket_handler(sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 259, in proxy_handler self._read_write_loop(client_sock, upstream_sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 288, in _read_write_loop b = read_socket.recv(chunks) File "/usr/lib64/python3.10/ssl.py", line 1203, in send return self._sslobj.write(data) ~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-1 (139807628068416) ~~~~~~~~~~~~~~~~~~~~~~ File "/usr/lib64/python3.10/threading.py", line 948, in _bootstrap self._bootstrap_inner() File "/usr/lib64/python3.10/threading.py", line 990, in _bootstrap_inner self.run() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 134, in run self.server = self._start_server() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 130, in _start_server self.socket_handler(sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 95, in socket_handler request = consume_socket(ssock) File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/testcase.py", line 22, in consume_socket b = sock.recv(chunks) File "/usr/lib64/python3.10/ssl.py", line 1256, in recv return self.read(buflen) File "/usr/lib64/python3.10/ssl.py", line 1137, in read return b'' +++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++ ______________ TlsInTlsTestCase.test_tls_in_tls_makefile_rw_text _______________ self = <test.test_ssltransport.TlsInTlsTestCase object at 0x7f278003fe20> @pytest.mark.skipif( platform.system() == "Windows", reason="Skipping windows due to text makefile support", ) @pytest.mark.timeout(PER_TEST_TIMEOUT) def test_tls_in_tls_makefile_rw_text(self): """ Creates a separate buffer for reading and writing using text mode and utf-8 encoding. """ self.start_destination_server() self.start_proxy_server() sock = socket.create_connection( (self.proxy_server.host, self.proxy_server.port) ) with self.client_context.wrap_socket( sock, server_hostname="localhost" ) as proxy_sock: with SSLTransport( proxy_sock, self.client_context, server_hostname="localhost" ) as destination_sock: read = destination_sock.makefile("r", encoding="utf-8") write = destination_sock.makefile("w", encoding="utf-8") write.write(sample_request(binary=False)) write.flush() > response = read.read() test/test_ssltransport.py:446: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib64/python3.10/socket.py:705: in readinto return self._sock.recv_into(b) ../../BUILDROOT/python-urllib3-1.26.4-1.fc35.x86_64/usr/lib/python3.10/site-packages/urllib3/util/ssltransport.py:87: in recv_into return self.read(nbytes, buffer) ../../BUILDROOT/python-urllib3-1.26.4-1.fc35.x86_64/usr/lib/python3.10/site-packages/urllib3/util/ssltransport.py:73: in read return self._wrap_ssl_read(len, buffer) ../../BUILDROOT/python-urllib3-1.26.4-1.fc35.x86_64/usr/lib/python3.10/site-packages/urllib3/util/ssltransport.py:188: in _wrap_ssl_read return self._ssl_io_loop(self.sslobj.read, len, buffer) ../../BUILDROOT/python-urllib3-1.26.4-1.fc35.x86_64/usr/lib/python3.10/site-packages/urllib3/util/ssltransport.py:216: in _ssl_io_loop buf = self.socket.recv(SSL_BLOCKSIZE) /usr/lib64/python3.10/ssl.py:1256: in recv return self.read(buflen) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <ssl.SSLSocket [closed] fd=32, family=AF_INET6, type=SOCK_STREAM, proto=6> len = 16384, buffer = None def read(self, len=1024, buffer=None): """Read up to LEN bytes and return them. Return zero-length string on EOF.""" self._checkClosed() if self._sslobj is None: raise ValueError("Read on closed or unwrapped SSL socket.") try: if buffer is not None: return self._sslobj.read(len, buffer) else: > return self._sslobj.read(len) E Failed: Timeout >60.0s /usr/lib64/python3.10/ssl.py:1131: Failed ----------------------------- Captured stderr call ----------------------------- +++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++ ~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-16 (139807091062336) ~~~~~~~~~~~~~~~~~~~~~ File "/usr/lib64/python3.10/threading.py", line 948, in _bootstrap self._bootstrap_inner() File "/usr/lib64/python3.10/threading.py", line 990, in _bootstrap_inner self.run() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 134, in run self.server = self._start_server() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 130, in _start_server self.socket_handler(sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 259, in proxy_handler self._read_write_loop(client_sock, upstream_sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 289, in _read_write_loop write_socket.send(b) File "/usr/lib64/python3.10/ssl.py", line 1203, in send return self._sslobj.write(data) ~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-14 (139807575615040) ~~~~~~~~~~~~~~~~~~~~~ File "/usr/lib64/python3.10/threading.py", line 948, in _bootstrap self._bootstrap_inner() File "/usr/lib64/python3.10/threading.py", line 990, in _bootstrap_inner self.run() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 134, in run self.server = self._start_server() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 130, in _start_server self.socket_handler(sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 259, in proxy_handler self._read_write_loop(client_sock, upstream_sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 288, in _read_write_loop b = read_socket.recv(chunks) File "/usr/lib64/python3.10/ssl.py", line 1256, in recv return self.read(buflen) File "/usr/lib64/python3.10/ssl.py", line 1131, in read return self._sslobj.read(len) ~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-12 (139807586104896) ~~~~~~~~~~~~~~~~~~~~~ File "/usr/lib64/python3.10/threading.py", line 948, in _bootstrap self._bootstrap_inner() File "/usr/lib64/python3.10/threading.py", line 990, in _bootstrap_inner self.run() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 134, in run self.server = self._start_server() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 130, in _start_server self.socket_handler(sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 259, in proxy_handler self._read_write_loop(client_sock, upstream_sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 289, in _read_write_loop write_socket.send(b) File "/usr/lib64/python3.10/ssl.py", line 1203, in send return self._sslobj.write(data) ~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-10 (139807602890304) ~~~~~~~~~~~~~~~~~~~~~ File "/usr/lib64/python3.10/threading.py", line 948, in _bootstrap self._bootstrap_inner() File "/usr/lib64/python3.10/threading.py", line 990, in _bootstrap_inner self.run() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 134, in run self.server = self._start_server() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 130, in _start_server self.socket_handler(sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 259, in proxy_handler self._read_write_loop(client_sock, upstream_sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 288, in _read_write_loop b = read_socket.recv(chunks) ~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-9 (139807619675712) ~~~~~~~~~~~~~~~~~~~~~~ File "/usr/lib64/python3.10/threading.py", line 948, in _bootstrap self._bootstrap_inner() File "/usr/lib64/python3.10/threading.py", line 990, in _bootstrap_inner self.run() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 134, in run self.server = self._start_server() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 130, in _start_server self.socket_handler(sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 334, in socket_handler with cls.server_context.wrap_socket(sock, server_side=True) as ssock: File "/usr/lib64/python3.10/ssl.py", line 518, in wrap_socket return self.sslsocket_class._create( File "/usr/lib64/python3.10/ssl.py", line 1070, in _create self.do_handshake() File "/usr/lib64/python3.10/ssl.py", line 1339, in do_handshake self._sslobj.do_handshake() ~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-8 (139807611283008) ~~~~~~~~~~~~~~~~~~~~~~ File "/usr/lib64/python3.10/threading.py", line 948, in _bootstrap self._bootstrap_inner() File "/usr/lib64/python3.10/threading.py", line 990, in _bootstrap_inner self.run() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 134, in run self.server = self._start_server() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 130, in _start_server self.socket_handler(sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 259, in proxy_handler self._read_write_loop(client_sock, upstream_sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 288, in _read_write_loop b = read_socket.recv(chunks) File "/usr/lib64/python3.10/ssl.py", line 1203, in send return self._sslobj.write(data) ~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-1 (139807628068416) ~~~~~~~~~~~~~~~~~~~~~~ File "/usr/lib64/python3.10/threading.py", line 948, in _bootstrap self._bootstrap_inner() File "/usr/lib64/python3.10/threading.py", line 990, in _bootstrap_inner self.run() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 134, in run self.server = self._start_server() File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/server.py", line 130, in _start_server self.socket_handler(sock) File "/builddir/build/BUILD/urllib3-1.26.4/test/test_ssltransport.py", line 95, in socket_handler request = consume_socket(ssock) File "/builddir/build/BUILD/urllib3-1.26.4/dummyserver/testcase.py", line 22, in consume_socket b = sock.recv(chunks) File "/usr/lib64/python3.10/ssl.py", line 1256, in recv return self.read(buflen) File "/usr/lib64/python3.10/ssl.py", line 1137, in read return b'' +++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++ For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/02214304-python-urllib3/ For all our attempts to build python-urllib3 with Python 3.10, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-urllib3/ 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.
This is a mass-posted update. Sorry if it is not 100% accurate to this bugzilla. The Python 3.10 rebuild is in progress in a Koji side tag. If you manage to fix the problem, please commit the fix in the rawhide branch, but don't build the package in regular rawhide. You can either build the package in the side tag, with: $ fedpkg build --target=f35-python Or you can the build and we will eventually build it for you. Note that the rebuild is still in progress, so not all (build) dependencies of this package might be available right away. Thanks. See also https://fedoraproject.org/wiki/Changes/Python3.10 If you have general questions about the rebuild, please use this mailing list thread: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/G47SGOYIQLRDTWGOSLSWERZSSHXDEDH5/
The f35-python side tag has been merged to Rawhide. From now on, build as you would normally build.
Dear Maintainer, your package has an open Fails To Build From Source bug for Fedora 35. Action is required from you. If you can fix your package to build, perform a build in koji, and either create an update in bodhi, or close this bug without creating an update, if updating is not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to acknowledge this. If you have already fixed this issue, please close this Bugzilla report. Following the policy for such packages [2], your package will be orphaned if this bug remains in NEW state more than 8 weeks (not sooner than 2021-07-26). A week before the mass branching of Fedora 36 according to the schedule [3], any packages not successfully rebuilt at least on Fedora 34 will be retired regardless of the status of this bug. [1] https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/ [2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/ [3] https://fedorapeople.org/groups/schedule/f-36/f-36-key-tasks.html
I'll try and look at this tomorrow.
FEDORA-2021-c44bdcbe53 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-c44bdcbe53
FEDORA-2021-c44bdcbe53 has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report.