#1121532 python3-rt: Incompatible with python3-httpx from trixie

#1121532#5
Date:
2025-11-27 21:44:18 UTC
From:
To:
Dear Maintainer,

after upgrading to trixie, invoking the v2 REST API or RT
does not work anymore. It can be reproduced like this:

$ python3 -c 'from rt.rest2 import Rt ; Rt(url="https://anyurl/REST/2.0/")'
Traceback (most recent call last):
   File "<string>", line 1, in <module>
     from rt.rest2 import Rt ; Rt(url="https://anyurl/REST/2.0/")
                               ~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "/usr/lib/python3/dist-packages/rt/rest2.py", line 127, in __init__
     self.session = httpx.Client(timeout=http_timeout,
verify=verify_cert, proxies=proxy, auth=http_auth)

~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Client.__init__() got an unexpected keyword argument 'proxies'


This has already been fixed upstream in version 3.3.2:
https://github.com/python-rt/python-rt/commit/c19e0d93a

Is there a chance to have this fixed in Debian stable? Either by
upgrading to a newer version or by applying a trivial patch?


Versions of packages python3-rt depends on:
ii  libjs-sphinxdoc   8.1.3-5
ii  python3           3.13.5-1
ii  python3-httpx     0.28.1-1
ii  python3-requests  2.32.3+dfsg-5