Source: python-wsgi-intercept
Version: 1.9.3-4
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20231212 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.1, pytest-7.4.3, pluggy-1.3.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:486: in send
>     resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:705: in urlopen
>     conn = self._get_conn(timeout=pool_timeout)
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:300: in _get_conn
>     return conn or self._new_conn()
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:1038: in _new_conn
>     conn = self.ConnectionCls(
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = 
> <wsgi_intercept._urllib3.make_urllib3_override.<locals>.HTTPS_WSGIInterceptor 
> object at 0x7f9ae3b7a6c0>
> args = ()
> kwargs = {'cert_file': None, 'host': 'some_hopefully_nonexistant_domain', 
> 'key_file': None, 'port': 443, ...}
> 
>     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)
> >       WSGI_HTTPSConnection.__init__(self, *args, **kwargs)
> E       TypeError: HTTPSConnection.__init__() got an unexpected keyword 
> argument 'cert_file'
> 
> wsgi_intercept/_urllib3.py:33: 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:486: in send
>     resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:705: in urlopen
>     conn = self._get_conn(timeout=pool_timeout)
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:300: in _get_conn
>     return conn or self._new_conn()
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:1038: in _new_conn
>     conn = self.ConnectionCls(
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = 
> <wsgi_intercept._urllib3.make_urllib3_override.<locals>.HTTPS_WSGIInterceptor 
> object at 0x7f9ae3b7a990>
> args = ()
> kwargs = {'cert_file': None, 'host': 'some_hopefully_nonexistant_domain', 
> 'key_file': None, 'port': 443, ...}
> 
>     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)
> >       WSGI_HTTPSConnection.__init__(self, *args, **kwargs)
> E       TypeError: HTTPSConnection.__init__() got an unexpected keyword 
> argument 'cert_file'
> 
> wsgi_intercept/_urllib3.py:33: 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:486: in send
>     resp = conn.urlopen(
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:705: in urlopen
>     conn = self._get_conn(timeout=pool_timeout)
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:300: in _get_conn
>     return conn or self._new_conn()
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:1038: in _new_conn
>     conn = self.ConnectionCls(
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = 
> <wsgi_intercept._urllib3.make_urllib3_override.<locals>.HTTPS_WSGIInterceptor 
> object at 0x7f9ae3b7a630>
> args = ()
> kwargs = {'cert_file': None, 'host': 'some_hopefully_nonexistant_domain', 
> 'key_file': None, 'port': 443, ...}
> 
>     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)
> >       WSGI_HTTPSConnection.__init__(self, *args, **kwargs)
> E       TypeError: HTTPSConnection.__init__() got an unexpected keyword 
> argument 'cert_file'
> 
> wsgi_intercept/_urllib3.py:33: 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.py:77: in request
>     return self.request_encode_url(
> /usr/lib/python3/dist-packages/urllib3/request.py:99: in request_encode_url
>     return self.urlopen(method, url, **extra_kw)
> /usr/lib/python3/dist-packages/urllib3/poolmanager.py:376: in urlopen
>     response = conn.urlopen(method, u.request_uri, **kw)
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:705: in urlopen
>     conn = self._get_conn(timeout=pool_timeout)
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:300: in _get_conn
>     return conn or self._new_conn()
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:1038: in _new_conn
>     conn = self.ConnectionCls(
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = 
> <wsgi_intercept._urllib3.make_urllib3_override.<locals>.HTTPS_WSGIInterceptor 
> object at 0x7f9ae3b6af30>
> args = ()
> kwargs = {'cert_file': None, 'host': 'some_hopefully_nonexistant_domain', 
> 'key_file': None, 'port': 443, ...}
> 
>     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)
> >       WSGI_HTTPSConnection.__init__(self, *args, **kwargs)
> E       TypeError: HTTPSConnection.__init__() got an unexpected keyword 
> argument 'cert_file'
> 
> wsgi_intercept/_urllib3.py:33: 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.py:77: in request
>     return self.request_encode_url(
> /usr/lib/python3/dist-packages/urllib3/request.py:99: in request_encode_url
>     return self.urlopen(method, url, **extra_kw)
> /usr/lib/python3/dist-packages/urllib3/poolmanager.py:376: in urlopen
>     response = conn.urlopen(method, u.request_uri, **kw)
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:705: in urlopen
>     conn = self._get_conn(timeout=pool_timeout)
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:300: in _get_conn
>     return conn or self._new_conn()
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:1038: in _new_conn
>     conn = self.ConnectionCls(
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = 
> <wsgi_intercept._urllib3.make_urllib3_override.<locals>.HTTPS_WSGIInterceptor 
> object at 0x7f9ae3b6b4a0>
> args = ()
> kwargs = {'cert_file': None, 'host': 'some_hopefully_nonexistant_domain', 
> 'key_file': None, 'port': 443, ...}
> 
>     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)
> >       WSGI_HTTPSConnection.__init__(self, *args, **kwargs)
> E       TypeError: HTTPSConnection.__init__() got an unexpected keyword 
> argument 'cert_file'
> 
> wsgi_intercept/_urllib3.py:33: 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.py:77: in request
>     return self.request_encode_url(
> /usr/lib/python3/dist-packages/urllib3/request.py:99: in request_encode_url
>     return self.urlopen(method, url, **extra_kw)
> /usr/lib/python3/dist-packages/urllib3/poolmanager.py:376: in urlopen
>     response = conn.urlopen(method, u.request_uri, **kw)
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:705: in urlopen
>     conn = self._get_conn(timeout=pool_timeout)
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:300: in _get_conn
>     return conn or self._new_conn()
> /usr/lib/python3/dist-packages/urllib3/connectionpool.py:1038: in _new_conn
>     conn = self.ConnectionCls(
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = 
> <wsgi_intercept._urllib3.make_urllib3_override.<locals>.HTTPS_WSGIInterceptor 
> object at 0x7f9ae3b78800>
> args = ()
> kwargs = {'cert_file': None, 'host': 'some_hopefully_nonexistant_domain', 
> 'key_file': None, 'port': 443, ...}
> 
>     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)
> >       WSGI_HTTPSConnection.__init__(self, *args, **kwargs)
> E       TypeError: HTTPSConnection.__init__() got an unexpected keyword 
> argument 'cert_file'
> 
> wsgi_intercept/_urllib3.py:33: 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 0.92s 
> ====================
> make[1]: *** [debian/rules:23: override_dh_auto_test] Error 1


The full build log is available from:
http://qa-logs.debian.net/2023/12/12/python-wsgi-intercept_1.9.3-4_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&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.

Reply via email to