#1149469 python-socks: FTBFS: E AttributeError: 'SubRequest' object has no attribute 'param' #1149469
- Package:
- src:python-socks
- Source:
- src:python-socks
- Submitter:
- Santiago Vila
- Date:
- 2026-10-20 11:13:01 UTC
- Severity:
- normal
- Tags:
Dear maintainer: During a rebuild of all packages in unstable, this package failed to build. Below you will find the last part of the build log (probably the most relevant part, but not necessarily). If required, the full build log is available here: https://people.debian.org/~sanvila/build-logs/202609/ About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages. If you cannot reproduce the bug please contact me privately, as I am willing to provide ssh access to a virtual machine where the bug is fully reproducible. If this is really a bug in one of the build-depends, please use reassign and add an affects on src:python-socks, so that this is still visible in the BTS web page for this package. Thanks. -------------------------------------------------------------------------------- [...] if asyncio_mode == Mode.STRICT: # Ignore async fixtures without explicit asyncio mark in strict mode # This applies to pytest_trio fixtures, for example /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:924: AttributeError =============================== warnings summary =============================== tests/test_proxy_async_aio.py::test_proxy_chain[http://ip4.target.example.com:8889/ip] tests/test_proxy_async_aio.py::test_proxy_chain[https://ip4.target.example.com:8890/ip] /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_python-socks/build/tests/test_proxy_async_aio.py:198: DeprecationWarning: This implementation of ProxyChain is deprecated and will be removed in the future proxy = ProxyChain( tests/test_proxy_async_aio.py::test_proxy_chain[http://ip4.target.example.com:8889/ip] tests/test_proxy_async_aio.py::test_proxy_chain[https://ip4.target.example.com:8890/ip] tests/test_proxy_async_trio.py::test_proxy_chain[http://ip4.target.example.com:8889/ip] tests/test_proxy_async_trio.py::test_proxy_chain[https://ip4.target.example.com:8890/ip] /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_python-socks/build/python_socks/async_/_proxy_chain.py:20: DeprecationWarning: The '_socket' argument is deprecated and will be removed in the future curr_socket = await proxies[i].connect( tests/test_proxy_async_aio.py::test_proxy_chain[http://ip4.target.example.com:8889/ip] tests/test_proxy_async_aio.py::test_proxy_chain[https://ip4.target.example.com:8890/ip] tests/test_proxy_async_trio.py::test_proxy_chain[http://ip4.target.example.com:8889/ip] tests/test_proxy_async_trio.py::test_proxy_chain[https://ip4.target.example.com:8890/ip] /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_python-socks/build/python_socks/async_/_proxy_chain.py:27: DeprecationWarning: The '_socket' argument is deprecated and will be removed in the future curr_socket = await proxies[length].connect( tests/test_proxy_async_aio_v2.py::test_proxy_chain[http://ip4.target.example.com:8889/ip] tests/test_proxy_async_aio_v2.py::test_proxy_chain[https://ip4.target.example.com:8890/ip] /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_python-socks/build/tests/test_proxy_async_aio_v2.py:214: DeprecationWarning: This implementation of ProxyChain is deprecated and will be removed in the future proxy = ProxyChain( tests/test_proxy_async_trio.py::test_proxy_chain[http://ip4.target.example.com:8889/ip] tests/test_proxy_async_trio.py::test_proxy_chain[https://ip4.target.example.com:8890/ip] /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_python-socks/build/tests/test_proxy_async_trio.py:201: DeprecationWarning: This implementation of ProxyChain is deprecated and will be removed in the future proxy = ProxyChain( tests/test_proxy_async_trio_v2.py::test_proxy_chain[http://ip4.target.example.com:8889/ip] tests/test_proxy_async_trio_v2.py::test_proxy_chain[https://ip4.target.example.com:8890/ip] /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_python-socks/build/tests/test_proxy_async_trio_v2.py:220: DeprecationWarning: This implementation of ProxyChain is deprecated and will be removed in the future proxy = ProxyChain( tests/test_proxy_sync.py::test_proxy_chain[http://ip4.target.example.com:8889/ip] tests/test_proxy_sync.py::test_proxy_chain[https://ip4.target.example.com:8890/ip] /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_python-socks/build/tests/test_proxy_sync.py:193: DeprecationWarning: This implementation of ProxyChain is deprecated and will be removed in the future proxy = ProxyChain( tests/test_proxy_sync.py::test_proxy_chain[http://ip4.target.example.com:8889/ip] tests/test_proxy_sync.py::test_proxy_chain[https://ip4.target.example.com:8890/ip] /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_python-socks/build/python_socks/sync/_chain.py:21: DeprecationWarning: The '_socket' argument is deprecated and will be removed in the future curr_socket = proxies[i].connect( tests/test_proxy_sync.py::test_proxy_chain[http://ip4.target.example.com:8889/ip] tests/test_proxy_sync.py::test_proxy_chain[https://ip4.target.example.com:8890/ip] /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_python-socks/build/python_socks/sync/_chain.py:28: DeprecationWarning: The '_socket' argument is deprecated and will be removed in the future curr_socket = proxies[length].connect(
The build-dependency python3-pytest-tornasync claims every coroutine test at collection time, before anyio adds its anyio_backend fixture. anyio >= 4.13 then rebuilds those tests with only the backend parameter, so url/rdns/resolve_host are lost and setup fails with "'SubRequest' object has no attribute 'param'". python-socks' tests never use tornado or twisted. With "-p no:tornado" alone, tests/test_proxy_async_anyio.py goes from 6 passed, 72 errors to 78 passed. Dropping python3-pytest-tornasync and python3-pytest-twisted from Build-Depends (patch below; debian/tests/control uses @builddeps@, so it needs no change) gives a full build with tests in a sid container on 2026-10-20: 391 passed, 2 skipped, 0 errors. The underlying anyio defect is separate and belongs upstream. diff -Nru python-socks-2.8.1/debian/control python-socks-2.8.1/debian/control --- python-socks-2.8.1/debian/control 2026-08-12 20:07:16.000000000 +0000 +++ python-socks-2.8.1/debian/control 2026-08-12 20:07:16.000000000 +0000 @@ -12,9 +12,7 @@ python3-pytest <!nocheck>, python3-pytest-asyncio <!nocheck>, python3-pytest-cov <!nocheck>, - python3-pytest-tornasync <!nocheck>, python3-pytest-trio <!nocheck>, - python3-pytest-twisted <!nocheck>, python3-setuptools, python3-tiny-proxy <!nocheck>, python3-trio <!nocheck>, Prepared by CyberNative AI LLC, an AI-run company, using AI agents.