--- Begin Message ---
Source: python-wsgi-intercept
Version: 1.9.3-5
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20240615 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> make[1]: pyversions: No such file or directory
> py3versions: no X-Python3-Version in control file, using supported versions
> set -e ; set -x ; for i in 3.12 3.11 ; do \
> PYMAJOR=`echo $i | cut -d'.' -f1` ; \
> echo "===> Testing with python$i (python$PYMAJOR)" ; \
> WSGI_INTERCEPT_SKIP_NETWORK=true PYTHON=$i PYTHONPATH=. python$i -m
> pytest wsgi_intercept/tests ; \
> done
> + echo 3.12
> + cut -d. -f1
> + PYMAJOR=3
> + echo ===> Testing with python3.12 (python3)
> ===> Testing with python3.12 (python3)
> + WSGI_INTERCEPT_SKIP_NETWORK=true PYTHON=3.12 PYTHONPATH=. python3.12 -m
> pytest wsgi_intercept/tests
> ============================= test session starts
> ==============================
> platform linux -- Python 3.12.4, pytest-8.2.2, pluggy-1.5.0
> rootdir: /<<PKGBUILDDIR>>
> collected 80 items
>
> wsgi_intercept/tests/test_http_client.py .....ss [
> 8%]
> wsgi_intercept/tests/test_httplib2.py ........ [
> 18%]
> wsgi_intercept/tests/test_interceptor.py .................... [
> 43%]
> wsgi_intercept/tests/test_module_interceptor.py .. [
> 46%]
> wsgi_intercept/tests/test_requests.py .....FFsF.ss [
> 61%]
> wsgi_intercept/tests/test_response_headers.py .. [
> 63%]
> wsgi_intercept/tests/test_urllib.py .......ss [
> 75%]
> wsgi_intercept/tests/test_urllib3.py .....FFF.ss [
> 88%]
> wsgi_intercept/tests/test_wsgi_compliance.py .........
> [100%]
>
> =================================== FAILURES
> ===================================
> __________________________________ test_https
> __________________________________
>
> def test_https():
> with InstalledApp(wsgi_app.simple_app, host=HOST, port=443) as app:
> > resp =
> > requests.get('https://some_hopefully_nonexistant_domain:443/')
>
> wsgi_intercept/tests/test_requests.py:57:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /usr/lib/python3/dist-packages/requests/api.py:73: in get
> return request("get", url, params=params, **kwargs)
> /usr/lib/python3/dist-packages/requests/api.py:59: in request
> return session.request(method=method, url=url, **kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:589: in request
> resp = self.send(prep, **send_kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:703: in send
> r = adapter.send(request, **kwargs)
> /usr/lib/python3/dist-packages/requests/adapters.py:667: in send
> resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:770: in urlopen
> conn = self._get_conn(timeout=pool_timeout)
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:296: in _get_conn
> return conn or self._new_conn()
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:1071: in _new_conn
> return self.ConnectionCls(
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> self =
> <wsgi_intercept._urllib3.make_urllib3_override.<locals>.HTTPS_WSGIInterceptor
> object at 0x7fc8ad095af0>
> args = ()
> kwargs = {'assert_fingerprint': None, 'assert_hostname': None, 'blocksize':
> 16384, 'ca_cert_dir': None, ...}
>
> def __init__(self, *args, **kwargs):
> if 'strict' in kwargs and sys.version_info > (3, 0):
> kwargs.pop('strict')
> kwargs.pop('socket_options', None)
> kwargs.pop('key_password', None)
> kwargs.pop('server_hostname', None)
> if sys.version_info > (3, 12):
> kwargs.pop('key_file', None)
> kwargs.pop('cert_file', None)
> > WSGI_HTTPSConnection.__init__(self, *args, **kwargs)
> E TypeError: HTTPSConnection.__init__() got an unexpected keyword
> argument 'cert_reqs'
>
> wsgi_intercept/_urllib3.py:36: TypeError
> __________________ test_https_no_ssl_verification_intercepted
> __________________
>
> def test_https_no_ssl_verification_intercepted():
> with InstalledApp(wsgi_app.simple_app, host=HOST, port=443) as app:
> > resp =
> > requests.get('https://some_hopefully_nonexistant_domain:443/',
> verify=False)
>
> wsgi_intercept/tests/test_requests.py:64:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /usr/lib/python3/dist-packages/requests/api.py:73: in get
> return request("get", url, params=params, **kwargs)
> /usr/lib/python3/dist-packages/requests/api.py:59: in request
> return session.request(method=method, url=url, **kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:589: in request
> resp = self.send(prep, **send_kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:703: in send
> r = adapter.send(request, **kwargs)
> /usr/lib/python3/dist-packages/requests/adapters.py:667: in send
> resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:770: in urlopen
> conn = self._get_conn(timeout=pool_timeout)
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:296: in _get_conn
> return conn or self._new_conn()
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:1071: in _new_conn
> return self.ConnectionCls(
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> self =
> <wsgi_intercept._urllib3.make_urllib3_override.<locals>.HTTPS_WSGIInterceptor
> object at 0x7fc8ad0edd60>
> args = ()
> kwargs = {'assert_fingerprint': None, 'assert_hostname': None, 'blocksize':
> 16384, 'ca_cert_dir': None, ...}
>
> def __init__(self, *args, **kwargs):
> if 'strict' in kwargs and sys.version_info > (3, 0):
> kwargs.pop('strict')
> kwargs.pop('socket_options', None)
> kwargs.pop('key_password', None)
> kwargs.pop('server_hostname', None)
> if sys.version_info > (3, 12):
> kwargs.pop('key_file', None)
> kwargs.pop('cert_file', None)
> > WSGI_HTTPSConnection.__init__(self, *args, **kwargs)
> E TypeError: HTTPSConnection.__init__() got an unexpected keyword
> argument 'cert_reqs'
>
> wsgi_intercept/_urllib3.py:36: TypeError
> ___________________________ test_https_default_port
> ____________________________
>
> def test_https_default_port():
> with InstalledApp(wsgi_app.simple_app, host=HOST, port=443) as app:
> > resp = requests.get('https://some_hopefully_nonexistant_domain/')
>
> wsgi_intercept/tests/test_requests.py:80:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /usr/lib/python3/dist-packages/requests/api.py:73: in get
> return request("get", url, params=params, **kwargs)
> /usr/lib/python3/dist-packages/requests/api.py:59: in request
> return session.request(method=method, url=url, **kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:589: in request
> resp = self.send(prep, **send_kwargs)
> /usr/lib/python3/dist-packages/requests/sessions.py:703: in send
> r = adapter.send(request, **kwargs)
> /usr/lib/python3/dist-packages/requests/adapters.py:667: in send
> resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:770: in urlopen
> conn = self._get_conn(timeout=pool_timeout)
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:296: in _get_conn
> return conn or self._new_conn()
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:1071: in _new_conn
> return self.ConnectionCls(
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> self =
> <wsgi_intercept._urllib3.make_urllib3_override.<locals>.HTTPS_WSGIInterceptor
> object at 0x7fc8acfb4080>
> args = ()
> kwargs = {'assert_fingerprint': None, 'assert_hostname': None, 'blocksize':
> 16384, 'ca_cert_dir': None, ...}
>
> def __init__(self, *args, **kwargs):
> if 'strict' in kwargs and sys.version_info > (3, 0):
> kwargs.pop('strict')
> kwargs.pop('socket_options', None)
> kwargs.pop('key_password', None)
> kwargs.pop('server_hostname', None)
> if sys.version_info > (3, 12):
> kwargs.pop('key_file', None)
> kwargs.pop('cert_file', None)
> > WSGI_HTTPSConnection.__init__(self, *args, **kwargs)
> E TypeError: HTTPSConnection.__init__() got an unexpected keyword
> argument 'cert_reqs'
>
> wsgi_intercept/_urllib3.py:36: TypeError
> __________________________________ test_https
> __________________________________
>
> def test_https():
> with InstalledApp(wsgi_app.simple_app, host=HOST, port=443) as app:
> > resp = http.request(
> 'GET', 'https://some_hopefully_nonexistant_domain:443/')
>
> wsgi_intercept/tests/test_urllib3.py:59:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /usr/lib/python3/dist-packages/urllib3/_request_methods.py:110: in request
> return self.request_encode_url(
> /usr/lib/python3/dist-packages/urllib3/_request_methods.py:143: in
> request_encode_url
> return self.urlopen(method, url, **extra_kw)
> /usr/lib/python3/dist-packages/urllib3/poolmanager.py:443: in urlopen
> response = conn.urlopen(method, u.request_uri, **kw)
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:770: in urlopen
> conn = self._get_conn(timeout=pool_timeout)
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:296: in _get_conn
> return conn or self._new_conn()
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:1071: in _new_conn
> return self.ConnectionCls(
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> self =
> <wsgi_intercept._urllib3.make_urllib3_override.<locals>.HTTPS_WSGIInterceptor
> object at 0x7fc8acfb77d0>
> args = ()
> kwargs = {'assert_fingerprint': None, 'assert_hostname': None, 'blocksize':
> 16384, 'ca_cert_dir': None, ...}
>
> def __init__(self, *args, **kwargs):
> if 'strict' in kwargs and sys.version_info > (3, 0):
> kwargs.pop('strict')
> kwargs.pop('socket_options', None)
> kwargs.pop('key_password', None)
> kwargs.pop('server_hostname', None)
> if sys.version_info > (3, 12):
> kwargs.pop('key_file', None)
> kwargs.pop('cert_file', None)
> > WSGI_HTTPSConnection.__init__(self, *args, **kwargs)
> E TypeError: HTTPSConnection.__init__() got an unexpected keyword
> argument 'cert_reqs'
>
> wsgi_intercept/_urllib3.py:36: TypeError
> ___________________________ test_https_default_port
> ____________________________
>
> def test_https_default_port():
> with InstalledApp(wsgi_app.simple_app, host=HOST, port=443) as app:
> > resp = http.request(
> 'GET', 'https://some_hopefully_nonexistant_domain/')
>
> wsgi_intercept/tests/test_urllib3.py:67:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /usr/lib/python3/dist-packages/urllib3/_request_methods.py:110: in request
> return self.request_encode_url(
> /usr/lib/python3/dist-packages/urllib3/_request_methods.py:143: in
> request_encode_url
> return self.urlopen(method, url, **extra_kw)
> /usr/lib/python3/dist-packages/urllib3/poolmanager.py:443: in urlopen
> response = conn.urlopen(method, u.request_uri, **kw)
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:770: in urlopen
> conn = self._get_conn(timeout=pool_timeout)
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:296: in _get_conn
> return conn or self._new_conn()
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:1071: in _new_conn
> return self.ConnectionCls(
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> self =
> <wsgi_intercept._urllib3.make_urllib3_override.<locals>.HTTPS_WSGIInterceptor
> object at 0x7fc8ad0ed280>
> args = ()
> kwargs = {'assert_fingerprint': None, 'assert_hostname': None, 'blocksize':
> 16384, 'ca_cert_dir': None, ...}
>
> def __init__(self, *args, **kwargs):
> if 'strict' in kwargs and sys.version_info > (3, 0):
> kwargs.pop('strict')
> kwargs.pop('socket_options', None)
> kwargs.pop('key_password', None)
> kwargs.pop('server_hostname', None)
> if sys.version_info > (3, 12):
> kwargs.pop('key_file', None)
> kwargs.pop('cert_file', None)
> > WSGI_HTTPSConnection.__init__(self, *args, **kwargs)
> E TypeError: HTTPSConnection.__init__() got an unexpected keyword
> argument 'cert_reqs'
>
> wsgi_intercept/_urllib3.py:36: TypeError
> _____________________________ test_socket_options
> ______________________________
>
> def test_socket_options():
> http = urllib3.PoolManager(socket_options=[])
> with InstalledApp(wsgi_app.simple_app, host=HOST, port=80):
> http.request('GET', 'http://some_hopefully_nonexistant_domain/')
> with InstalledApp(wsgi_app.simple_app, host=HOST, port=443):
> > http.request('GET', 'https://some_hopefully_nonexistant_domain/')
>
> wsgi_intercept/tests/test_urllib3.py:80:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> /usr/lib/python3/dist-packages/urllib3/_request_methods.py:110: in request
> return self.request_encode_url(
> /usr/lib/python3/dist-packages/urllib3/_request_methods.py:143: in
> request_encode_url
> return self.urlopen(method, url, **extra_kw)
> /usr/lib/python3/dist-packages/urllib3/poolmanager.py:443: in urlopen
> response = conn.urlopen(method, u.request_uri, **kw)
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:770: in urlopen
> conn = self._get_conn(timeout=pool_timeout)
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:296: in _get_conn
> return conn or self._new_conn()
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:1071: in _new_conn
> return self.ConnectionCls(
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> self =
> <wsgi_intercept._urllib3.make_urllib3_override.<locals>.HTTPS_WSGIInterceptor
> object at 0x7fc8acfb4e00>
> args = ()
> kwargs = {'assert_fingerprint': None, 'assert_hostname': None, 'blocksize':
> 16384, 'ca_cert_dir': None, ...}
>
> def __init__(self, *args, **kwargs):
> if 'strict' in kwargs and sys.version_info > (3, 0):
> kwargs.pop('strict')
> kwargs.pop('socket_options', None)
> kwargs.pop('key_password', None)
> kwargs.pop('server_hostname', None)
> if sys.version_info > (3, 12):
> kwargs.pop('key_file', None)
> kwargs.pop('cert_file', None)
> > WSGI_HTTPSConnection.__init__(self, *args, **kwargs)
> E TypeError: HTTPSConnection.__init__() got an unexpected keyword
> argument 'cert_reqs'
>
> wsgi_intercept/_urllib3.py:36: TypeError
> =========================== short test summary info
> ============================
> FAILED wsgi_intercept/tests/test_requests.py::test_https - TypeError:
> HTTPSCo...
> FAILED
> wsgi_intercept/tests/test_requests.py::test_https_no_ssl_verification_intercepted
> FAILED wsgi_intercept/tests/test_requests.py::test_https_default_port -
> TypeE...
> FAILED wsgi_intercept/tests/test_urllib3.py::test_https - TypeError:
> HTTPSCon...
> FAILED wsgi_intercept/tests/test_urllib3.py::test_https_default_port -
> TypeEr...
> FAILED wsgi_intercept/tests/test_urllib3.py::test_socket_options -
> TypeError:...
> =================== 6 failed, 65 passed, 9 skipped in 1.21s
> ====================
> make[1]: *** [debian/rules:23: override_dh_auto_test] Error 1
The full build log is available from:
http://qa-logs.debian.net/2024/06/15/python-wsgi-intercept_1.9.3-5_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240615;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240615&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
--- End Message ---