#1099399 nala is incompatible with python3-httpx>=0.28.0

#1099399#5
Date:
2025-03-03 07:02:59 UTC
From:
To:
Dear Maintainer,

Downloading packages via nala in sid is broken after a recent python3-httpx (0.27.2-1 -> 0.28.1-1) package upgrade.

Here's the error message:


│ /usr/lib/python3/dist-packages/nala/downloader.py:404 in            │
│ start_download                                                      │
│                                                                     │
│   401 │   │   if not self.pkg_urls:                                 │
│   402 │   │   │   return True                                       │
│   403 │   │   with Live(get_renderable=self._gen_table, refresh_per │
│ ❱ 404 │   │   │   async with AsyncClient(                           │
│   405 │   │   │   │   timeout=20,                                   │
│   406 │   │   │   │   proxies=self.proxy,                           │
│   407 │   │   │   │   follow_redirects=True,                        │
│                                                                     │
│ ╭─────────────────────────── locals ───────────────────────────╮    │
│ │ self = <nala.downloader.Downloader object at 0x7f7934f816a0> │    │
│ ╰──────────────────────────────────────────────────────────────╯    │
╰─────────────────────────────────────────────────────────────────────╯

TypeError: AsyncClient.__init__() got an unexpected keyword argument
'proxies'

#1099399#10
Date:
2025-03-03 10:20:17 UTC
From:
To:
Patch which addresses this issue is attached
#1099399#15
Date:
2025-03-03 10:40:25 UTC
From:
To:
OOPS, submitted an incomplete patch. Here's a good one:
#1099399#20
Date:
2025-03-21 18:18:40 UTC
From:
To:
Dear Maintainer,

debian testing updated python-httpx to version 0.28.1-1 which
deprecates some api nala 0.15.4 is still using.

there is already a fix upstream at this commit:
https://github.com/volitank/nala/commit/e12ce19c44ad96b1a3542744a196612025970985

#1099399#25
Date:
2025-05-03 10:10:43 UTC
From:
To:
Hi,

This is fixed in version nala-0.15.4+nmu1 which is overridden by
0.16.0 which also have the fix. Please check if its still
reproducible.