==>(B Building on articuno(B ==>(B Checking for remote environment...(B ==>(B Syncing package to remote host...(B sending incremental file list created directory packages/python-niquests ./ .SRCINFO 1,080B 100% 0B/s 0:00:00 1,080B 100% 0B/s 0:00:00 (xfr#1, to-chk=7/9) .nvchecker.toml 52B 100% 52.0KB/s 0:00:00 52B 100% 52.0KB/s 0:00:00 (xfr#2, to-chk=6/9) LICENSE 646B 100% 646KB/s 0:00:00 646B 100% 646KB/s 0:00:00 (xfr#3, to-chk=5/9) PKGBUILD 1,761B 100% 1.76MB/s 0:00:00 1,761B 100% 1.76MB/s 0:00:00 (xfr#4, to-chk=4/9) REUSE.toml 437B 100% 437KB/s 0:00:00 437B 100% 437KB/s 0:00:00 (xfr#5, to-chk=3/9) python-niquests-3.21.3-1.log 750B 100% 750KB/s 0:00:00 750B 100% 750KB/s 0:00:00 (xfr#6, to-chk=2/9) LICENSES/ LICENSES/0BSD.txt -> ../LICENSE sent 2,869 bytes received 191 bytes 2,040.00 bytes/sec total size is 4,193 speedup is 1.37 ==>(B Running pkgctl build --arch riscv64 on remote host...(B ==> WARNING:(B invalid architecture: riscv64(B ==>(B Updating pacman database cache(B [?25l:: Synchronizing package databases... core downloading... extra downloading... multilib downloading... [?25h==>(B Building python-niquests(B  ->(B repo: extra(B  ->(B arch: riscv64(B  ->(B worker: felix-0(B ==>(B Building python-niquests for [extra] (riscv64)(B ]3008;start=987443d73cb347c2ba00601697a5d87d;user=felix;hostname=articuno.felixc.at;machineid=5c87428929f24fc498e0c27a9edd88e1;bootid=94c3e2d23398438d91f97f62079b4a7b;pid=4122974;comm=sudo;targetuser=root;type=session\Note: in a future version of systemd-nspawn the default set of permitted socket address families will be restricted to AF_INET, AF_INET6 and AF_UNIX. Use --restrict-address-families= to configure the set of permitted socket address families, or set RestrictAddressFamilies= in a .nspawn file. ]3008;start=91259edddcb740858197acf44b7c577d;user=root;hostname=articuno.felixc.at;machineid=5c87428929f24fc498e0c27a9edd88e1;bootid=94c3e2d23398438d91f97f62079b4a7b;pid=4123018;comm=systemd-nspawn;container=arch-nspawn-4123018;type=container\]11;?\]2;🔵 Container arch-nspawn-4123018 on articuno.felixc.at\[?25l:: Synchronizing package databases... core downloading... extra downloading... :: Starting full system upgrade... there is nothing to do [?25h[!p]104\[?7h]3008;end=91259edddcb740858197acf44b7c577d\==>(B Building in chroot for [extra] (riscv64)...(B ==>(B Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [felix-0]...(Bdone(B ]3008;start=37616b7f0c2945b1b2f0005c9a7e00cf;user=root;hostname=articuno.felixc.at;machineid=5c87428929f24fc498e0c27a9edd88e1;bootid=94c3e2d23398438d91f97f62079b4a7b;pid=4123232;comm=sudo;targetuser=felix;type=session\==>(B Making package: python-niquests 3.21.3-1 (Sat Nov 14 14:00:35 2026)(B ==>(B Retrieving sources...(B  ->(B Cloning niquests git repo...(B Cloning into bare repository '/var/cache/pacman/src/niquests'... remote: Enumerating objects: 30396, done. remote: Counting objects: 2% (1/37) remote: Counting objects: 5% (2/37) remote: Counting objects: 8% (3/37) remote: Counting objects: 10% (4/37) remote: Counting objects: 13% (5/37) remote: Counting objects: 16% (6/37) remote: Counting objects: 18% (7/37) remote: Counting objects: 21% (8/37) remote: Counting objects: 24% (9/37) remote: Counting objects: 27% (10/37) remote: Counting objects: 29% (11/37) remote: Counting objects: 32% (12/37) remote: Counting objects: 35% (13/37) remote: Counting objects: 37% (14/37) remote: Counting objects: 40% (15/37) remote: Counting objects: 43% (16/37) remote: Counting objects: 45% (17/37) remote: Counting objects: 48% (18/37) remote: Counting objects: 51% (19/37) remote: Counting objects: 54% (20/37) remote: Counting objects: 56% (21/37) remote: Counting objects: 59% (22/37) remote: Counting objects: 62% (23/37) remote: Counting objects: 64% (24/37) remote: Counting objects: 67% (25/37) remote: Counting objects: 70% (26/37) remote: Counting objects: 72% (27/37) remote: Counting objects: 75% (28/37) remote: Counting objects: 78% (29/37) remote: Counting objects: 81% (30/37) remote: Counting objects: 83% (31/37) remote: Counting objects: 86% (32/37) remote: Counting objects: 89% (33/37) remote: Counting objects: 91% (34/37) remote: Counting objects: 94% (35/37) remote: Counting objects: 97% (36/37) remote: Counting objects: 100% (37/37) remote: Counting objects: 100% (37/37), done. remote: Compressing objects: 4% (1/22) remote: Compressing objects: 9% (2/22) remote: Compressing objects: 13% (3/22) remote: Compressing objects: 18% (4/22) remote: Compressing objects: 22% (5/22) remote: Compressing objects: 27% (6/22) remote: Compressing objects: 31% (7/22) remote: Compressing objects: 36% (8/22) remote: Compressing objects: 40% (9/22) remote: Compressing objects: 45% (10/22) remote: Compressing objects: 50% (11/22) remote: Compressing objects: 54% (12/22) remote: Compressing objects: 59% (13/22) remote: Compressing objects: 63% (14/22) remote: Compressing objects: 68% (15/22) remote: Compressing objects: 72% (16/22) remote: Compressing objects: 77% (17/22) remote: Compressing objects: 81% (18/22) remote: Compressing objects: 86% (19/22) remote: Compressing objects: 90% (20/22) remote: Compressing objects: 95% (21/22) remote: Compressing objects: 100% (22/22) remote: Compressing objects: 100% (22/22), done. Receiving objects: 0% (1/30396) Receiving objects: 1% (304/30396) Receiving objects: 2% (608/30396), 320.00 KiB | 538.00 KiB/s Receiving objects: 3% (912/30396), 320.00 KiB | 538.00 KiB/s Receiving objects: 4% (1216/30396), 320.00 KiB | 538.00 KiB/s Receiving objects: 5% (1520/30396), 320.00 KiB | 538.00 KiB/s Receiving objects: 6% (1824/30396), 320.00 KiB | 538.00 KiB/s Receiving objects: 7% (2128/30396), 320.00 KiB | 538.00 KiB/s Receiving objects: 8% (2432/30396), 320.00 KiB | 538.00 KiB/s Receiving objects: 8% (2464/30396), 320.00 KiB | 538.00 KiB/s Receiving objects: 9% (2736/30396), 320.00 KiB | 538.00 KiB/s Receiving objects: 10% (3040/30396), 320.00 KiB | 538.00 KiB/s Receiving objects: 11% (3344/30396), 320.00 KiB | 538.00 KiB/s Receiving objects: 12% (3648/30396), 320.00 KiB | 538.00 KiB/s Receiving objects: 13% (3952/30396), 320.00 KiB | 538.00 KiB/s Receiving objects: 14% (4256/30396), 320.00 KiB | 538.00 KiB/s Receiving objects: 15% (4560/30396), 320.00 KiB | 538.00 KiB/s Receiving objects: 16% (4864/30396), 320.00 KiB | 538.00 KiB/s Receiving objects: 17% (5168/30396), 1.33 MiB | 1.20 MiB/s Receiving objects: 18% (5472/30396), 1.33 MiB | 1.20 MiB/s Receiving objects: 19% (5776/30396), 1.33 MiB | 1.20 MiB/s Receiving objects: 20% (6080/30396), 1.33 MiB | 1.20 MiB/s Receiving objects: 21% (6384/30396), 3.83 MiB | 2.41 MiB/s Receiving objects: 22% (6688/30396), 3.83 MiB | 2.41 MiB/s Receiving objects: 22% (6839/30396), 3.83 MiB | 2.41 MiB/s Receiving objects: 23% (6992/30396), 3.83 MiB | 2.41 MiB/s Receiving objects: 24% (7296/30396), 3.83 MiB | 2.41 MiB/s Receiving objects: 25% (7599/30396), 3.83 MiB | 2.41 MiB/s Receiving objects: 26% (7903/30396), 3.83 MiB | 2.41 MiB/s Receiving objects: 27% (8207/30396), 3.83 MiB | 2.41 MiB/s Receiving objects: 28% (8511/30396), 3.83 MiB | 2.41 MiB/s Receiving objects: 29% (8815/30396), 7.05 MiB | 3.38 MiB/s Receiving objects: 30% (9119/30396), 7.05 MiB | 3.38 MiB/s Receiving objects: 31% (9423/30396), 7.05 MiB | 3.38 MiB/s Receiving objects: 32% (9727/30396), 7.05 MiB | 3.38 MiB/s Receiving objects: 33% (10031/30396), 7.05 MiB | 3.38 MiB/s Receiving objects: 34% (10335/30396), 7.05 MiB | 3.38 MiB/s Receiving objects: 35% (10639/30396), 7.05 MiB | 3.38 MiB/s Receiving objects: 36% (10943/30396), 7.05 MiB | 3.38 MiB/s Receiving objects: 37% (11247/30396), 7.05 MiB | 3.38 MiB/s Receiving objects: 38% (11551/30396), 7.05 MiB | 3.38 MiB/s Receiving objects: 39% (11855/30396), 7.05 MiB | 3.38 MiB/s Receiving objects: 40% (12159/30396), 7.05 MiB | 3.38 MiB/s Receiving objects: 41% (12463/30396), 7.05 MiB | 3.38 MiB/s Receiving objects: 42% (12767/30396), 7.05 MiB | 3.38 MiB/s Receiving objects: 43% (13071/30396), 7.05 MiB | 3.38 MiB/s Receiving objects: 44% (13375/30396), 7.05 MiB | 3.38 MiB/s Receiving objects: 45% (13679/30396), 7.05 MiB | 3.38 MiB/s Receiving objects: 46% (13983/30396), 7.05 MiB | 3.38 MiB/s Receiving objects: 47% (14287/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 48% (14591/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 49% (14895/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 50% (15198/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 51% (15502/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 52% (15806/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 53% (16110/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 54% (16414/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 55% (16718/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 56% (17022/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 57% (17326/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 58% (17630/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 59% (17934/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 60% (18238/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 61% (18542/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 62% (18846/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 63% (19150/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 64% (19454/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 65% (19758/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 66% (20062/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 67% (20366/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 68% (20670/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 69% (20974/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 70% (21278/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 71% (21582/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 72% (21886/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 73% (22190/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 74% (22494/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 75% (22797/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 76% (23101/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 77% (23405/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 78% (23709/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 79% (24013/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 80% (24317/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 80% (24366/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 81% (24621/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 82% (24925/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 83% (25229/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 84% (25533/30396), 10.30 MiB | 3.98 MiB/s Receiving objects: 85% (25837/30396), 13.88 MiB | 4.47 MiB/s Receiving objects: 86% (26141/30396), 13.88 MiB | 4.47 MiB/s Receiving objects: 87% (26445/30396), 13.88 MiB | 4.47 MiB/s Receiving objects: 88% (26749/30396), 13.88 MiB | 4.47 MiB/s Receiving objects: 89% (27053/30396), 13.88 MiB | 4.47 MiB/s Receiving objects: 90% (27357/30396), 13.88 MiB | 4.47 MiB/s Receiving objects: 91% (27661/30396), 13.88 MiB | 4.47 MiB/s Receiving objects: 92% (27965/30396), 13.88 MiB | 4.47 MiB/s Receiving objects: 93% (28269/30396), 13.88 MiB | 4.47 MiB/s Receiving objects: 94% (28573/30396), 13.88 MiB | 4.47 MiB/s Receiving objects: 95% (28877/30396), 13.88 MiB | 4.47 MiB/s Receiving objects: 96% (29181/30396), 13.88 MiB | 4.47 MiB/s Receiving objects: 97% (29485/30396), 13.88 MiB | 4.47 MiB/s Receiving objects: 98% (29789/30396), 13.88 MiB | 4.47 MiB/s Receiving objects: 99% (30093/30396), 13.88 MiB | 4.47 MiB/s remote: Total 30396 (delta 22), reused 18 (delta 13), pack-reused 30359 (from 3) Receiving objects: 100% (30396/30396), 13.88 MiB | 4.47 MiB/s Receiving objects: 100% (30396/30396), 16.05 MiB | 4.57 MiB/s, done. Resolving deltas: 0% (0/19886) Resolving deltas: 1% (199/19886) Resolving deltas: 2% (398/19886) Resolving deltas: 3% (597/19886) Resolving deltas: 4% (796/19886) Resolving deltas: 5% (995/19886) Resolving deltas: 6% (1194/19886) Resolving deltas: 7% (1394/19886) Resolving deltas: 8% (1591/19886) Resolving deltas: 9% (1790/19886) Resolving deltas: 10% (1989/19886) Resolving deltas: 11% (2188/19886) Resolving deltas: 12% (2387/19886) Resolving deltas: 13% (2586/19886) Resolving deltas: 14% (2785/19886) Resolving deltas: 15% (2983/19886) Resolving deltas: 16% (3182/19886) Resolving deltas: 17% (3381/19886) Resolving deltas: 18% (3580/19886) Resolving deltas: 19% (3779/19886) Resolving deltas: 20% (3978/19886) Resolving deltas: 21% (4177/19886) Resolving deltas: 22% (4375/19886) Resolving deltas: 23% (4574/19886) Resolving deltas: 24% (4773/19886) Resolving deltas: 25% (4972/19886) Resolving deltas: 26% (5171/19886) Resolving deltas: 27% (5370/19886) Resolving deltas: 28% (5571/19886) Resolving deltas: 29% (5767/19886) Resolving deltas: 30% (5966/19886) Resolving deltas: 31% (6165/19886) Resolving deltas: 32% (6364/19886) Resolving deltas: 33% (6563/19886) Resolving deltas: 34% (6762/19886) Resolving deltas: 35% (6961/19886) Resolving deltas: 36% (7159/19886) Resolving deltas: 37% (7358/19886) Resolving deltas: 38% (7557/19886) Resolving deltas: 39% (7756/19886) Resolving deltas: 40% (7955/19886) Resolving deltas: 41% (8154/19886) Resolving deltas: 42% (8353/19886) Resolving deltas: 43% (8551/19886) Resolving deltas: 44% (8750/19886) Resolving deltas: 45% (8949/19886) Resolving deltas: 46% (9148/19886) Resolving deltas: 47% (9347/19886) Resolving deltas: 48% (9546/19886) Resolving deltas: 49% (9745/19886) Resolving deltas: 50% (9943/19886) Resolving deltas: 51% (10142/19886) Resolving deltas: 52% (10341/19886) Resolving deltas: 53% (10540/19886) Resolving deltas: 54% (10739/19886) Resolving deltas: 55% (10938/19886) Resolving deltas: 56% (11137/19886) Resolving deltas: 57% (11336/19886) Resolving deltas: 58% (11534/19886) Resolving deltas: 59% (11733/19886) Resolving deltas: 60% (11932/19886) Resolving deltas: 61% (12131/19886) Resolving deltas: 62% (12330/19886) Resolving deltas: 63% (12529/19886) Resolving deltas: 64% (12728/19886) Resolving deltas: 65% (12926/19886) Resolving deltas: 66% (13125/19886) Resolving deltas: 67% (13324/19886) Resolving deltas: 68% (13523/19886) Resolving deltas: 69% (13722/19886) Resolving deltas: 70% (13921/19886) Resolving deltas: 71% (14120/19886) Resolving deltas: 72% (14318/19886) Resolving deltas: 73% (14517/19886) Resolving deltas: 74% (14716/19886) Resolving deltas: 75% (14915/19886) Resolving deltas: 76% (15114/19886) Resolving deltas: 77% (15313/19886) Resolving deltas: 78% (15512/19886) Resolving deltas: 79% (15710/19886) Resolving deltas: 80% (15909/19886) Resolving deltas: 81% (16108/19886) Resolving deltas: 82% (16307/19886) Resolving deltas: 83% (16506/19886) Resolving deltas: 84% (16705/19886) Resolving deltas: 85% (16904/19886) Resolving deltas: 86% (17102/19886) Resolving deltas: 87% (17301/19886) Resolving deltas: 88% (17500/19886) Resolving deltas: 89% (17699/19886) Resolving deltas: 90% (17898/19886) Resolving deltas: 91% (18097/19886) Resolving deltas: 92% (18296/19886) Resolving deltas: 93% (18495/19886) Resolving deltas: 94% (18693/19886) Resolving deltas: 95% (18892/19886) Resolving deltas: 96% (19091/19886) Resolving deltas: 97% (19290/19886) Resolving deltas: 98% (19489/19886) Resolving deltas: 99% (19688/19886) Resolving deltas: 100% (19886/19886) Resolving deltas: 100% (19886/19886), done. ==>(B Validating source files with sha256sums...(B niquests ... Passed ]3008;end=37616b7f0c2945b1b2f0005c9a7e00cf\Note: in a future version of systemd-nspawn the default set of permitted socket address families will be restricted to AF_INET, AF_INET6 and AF_UNIX. Use --restrict-address-families= to configure the set of permitted socket address families, or set RestrictAddressFamilies= in a .nspawn file. ]3008;start=473d4b0c9f4745e38137004eed0cba94;user=root;hostname=articuno.felixc.at;machineid=5c87428929f24fc498e0c27a9edd88e1;bootid=94c3e2d23398438d91f97f62079b4a7b;pid=4124207;comm=systemd-nspawn;container=makechrootpkg-python-niquests.build.4122995;type=container\]11;?\]2;🔵 Container makechrootpkg-python-niquests.build.4122995 on articuno.felixc.at\]3008;start=2b734783d1444bd48ddaa34ab7688f16;user=root;hostname=makechrootpkg-python-niquests.build.4122995;machineid=a81d927f5901499b958d23e66db38f47;bootid=34ee58dc6582481f9852c1a97dfffb5a;pid=14;comm=sudo;targetuser=builduser;type=session\==>(B Making package: python-niquests 3.21.3-1 (Sat Nov 14 14:01:01 2026)(B ==>(B Checking runtime dependencies...(B ==>(B Installing missing dependencies...(B ]3008;start=c5981daf5493499387c75ee75712bee0;user=builduser;hostname=makechrootpkg-python-niquests.build.4122995;machineid=a81d927f5901499b958d23e66db38f47;bootid=34ee58dc6582481f9852c1a97dfffb5a;pid=887;comm=sudo;targetuser=root;type=session\[?25lresolving dependencies... looking for conflicting packages... Package (6) New Version Net Change Download Size extra/python-h11 0.16.0-2 0.29 MiB extra/python-jh2 5.0.15-1 1.96 MiB extra/python-qh3 2.1.0-1 5.57 MiB extra/python-charset-normalizer 3.5.1-1 0.63 MiB extra/python-urllib3-future 2.25.906-1 5.57 MiB 0.74 MiB extra/python-wassima 2.1.5-1 0.70 MiB 0.14 MiB Total Download Size: 0.88 MiB Total Installed Size: 14.73 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-urllib3-future-2.25.906-1-any downloading... python-wassima-2.1.5-1-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing python-charset-normalizer... installing python-h11... installing python-jh2... installing python-qh3... installing python-urllib3-future... Optional dependencies for python-urllib3-future python-brotli: Brotli decompression python-python-socks: SOCKS proxy support python-websockets: WebSocket support with compression python-wsproto: WebSocket support installing python-wassima... :: Running post-transaction hooks... (1/1) Arming ConditionNeedsUpdate... [?25h]3008;end=c5981daf5493499387c75ee75712bee0\==>(B Checking buildtime dependencies...(B ==>(B Installing missing dependencies...(B ]3008;start=5e9e145aa0f04a3cbbe63b36ed86948e;user=builduser;hostname=makechrootpkg-python-niquests.build.4122995;machineid=a81d927f5901499b958d23e66db38f47;bootid=34ee58dc6582481f9852c1a97dfffb5a;pid=952;comm=sudo;targetuser=root;type=session\[?25lresolving dependencies... looking for conflicting packages... Package (56) New Version Net Change Download Size extra/httpbin 0.10.4-1 0.35 MiB extra/perl-error 0.17031-1 0.04 MiB extra/perl-mailtools 2.22-3 0.10 MiB extra/perl-timedate 2.35-1 0.15 MiB extra/python-annotated-doc 0.0.6-1 0.02 MiB 0.01 MiB extra/python-annotated-types 0.8.0-1 0.12 MiB extra/python-anyio 4.16.0-1 2.29 MiB extra/python-blinker 1.9.0-4 0.08 MiB extra/python-brotlicffi 1.2.1.0-1 0.13 MiB extra/python-cffi 2.1.1-1 1.41 MiB extra/python-click 8.5.1-1 1.56 MiB extra/python-decorator 5.3.1-1 0.07 MiB extra/python-dotenv 1.2.4-1 0.18 MiB extra/python-editables 0.6-1 0.04 MiB extra/python-greenlet 3.5.6-1 0.47 MiB extra/python-idna 3.20-1 0.68 MiB extra/python-iniconfig 2.3.0-1 0.07 MiB extra/python-itsdangerous 2.2.0-2 0.15 MiB extra/python-jinja 1:3.1.6-3.1 2.04 MiB extra/python-markupsafe 3.0.4-1 0.09 MiB extra/python-opentelemetry-api 1.45.2-1 0.69 MiB extra/python-packaging 26.3-1 1.58 MiB extra/python-pathspec 1.1.1-1 0.47 MiB extra/python-pluggy 1.7.0-1 0.28 MiB extra/python-pycparser 3.12-1 0.90 MiB extra/python-pydantic 2.14.2-1 6.22 MiB extra/python-pydantic-core 3:2.50.2-1 5.45 MiB extra/python-pydantic-extra-types 2.11.2-1 1.06 MiB extra/python-pydantic-settings 2.16.3-1 0.99 MiB 0.17 MiB extra/python-pygments 2.21.0-1 15.59 MiB extra/python-pyopenssl 26.4.0-1 0.72 MiB extra/python-pyproject-hooks 1.3.3-1 0.11 MiB extra/python-starlette 1.10.0-1 1.15 MiB extra/python-tomlkit 0.15.2-1 0.85 MiB extra/python-trove-classifiers 2026.9.21.13-1 0.16 MiB extra/python-typing-inspection 0.4.5-1 0.13 MiB extra/python-typing_extensions 4.16.0-1 0.53 MiB extra/python-werkzeug 3.1.9-1 2.77 MiB extra/zlib-ng 2.3.3-1 0.23 MiB extra/git 2.56.1-1 32.08 MiB extra/python-aiofiles 25.1.0-2 0.12 MiB core/python-brotli 1.2.1-1 0.88 MiB extra/python-build 1.6.1-1 0.33 MiB extra/python-coverage 7.17.3-1 2.31 MiB 0.41 MiB extra/python-cryptography 50.0.2-2 6.12 MiB extra/python-fastapi 0.162.4-1 2.37 MiB 0.30 MiB extra/python-flask 3.1.3-2 1.13 MiB extra/python-hatchling 1.32.4-1 1.11 MiB extra/python-installer 1.1.0-1 0.21 MiB extra/python-pytest 1:9.2.0-1 5.21 MiB extra/python-pytest-asyncio 1.5.0-1 0.17 MiB 0.04 MiB extra/python-pytest-httpbin 2.1.0-2 0.04 MiB extra/python-python-socks 3.1.1-1 0.47 MiB extra/python-trustme 1.3.0-1 0.10 MiB extra/python-websockets 17.2-1 2.50 MiB extra/python-wsproto 1.3.2-1 0.28 MiB Total Download Size: 0.93 MiB Total Installed Size: 105.34 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... python-coverage-7.17.3-1-riscv64 downloading... python-fastapi-0.162.4-1-any downloading... python-pydantic-settings-2.16.3-1-any downloading... python-pytest-asyncio-1.5.0-1-any downloading... python-annotated-doc-0.0.6-1-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing perl-error... installing perl-timedate... installing perl-mailtools... installing zlib-ng... installing git... Optional dependencies for git git-zsh-completion: upstream zsh completion tk: gitk and git gui openssh: ssh transport and crypto man: show help with `git command --help` perl-libwww: git svn perl-term-readkey: git svn and interactive.singlekey setting perl-io-socket-ssl: git send-email TLS support perl-authen-sasl: git send-email TLS support perl-cgi: gitweb (web interface) support python: git svn & git p4 [installed] subversion: git svn org.freedesktop.secrets: keyring credential helper libsecret: libsecret credential helper [installed] less: the default pager for git installing python-packaging... installing python-pyproject-hooks... installing python-build... Optional dependencies for python-build python-pip: to use as the Python package installer (default) python-uv: to use as the Python package installer python-virtualenv: to use virtualenv for build isolation installing python-editables... installing python-pathspec... Optional dependencies for python-pathspec python-google-re2: re2 backend installing python-pluggy... installing python-tomlkit... installing python-trove-classifiers... installing python-hatchling... installing python-installer... installing python-aiofiles... installing python-brotli... installing python-coverage... installing python-pycparser... installing python-cffi... Optional dependencies for python-cffi python-setuptools: "limited api" version checking in cffi.setuptools_ext installing python-cryptography... installing python-annotated-doc... installing python-idna... installing python-typing_extensions... installing python-anyio... Optional dependencies for python-anyio python-outcome: trio backend python-pytest: pytest plugin [pending] python-trio: trio backend python-uvloop: use uvloop for asyncio backend installing python-annotated-types... installing python-typing-inspection... installing python-pydantic-core... installing python-pydantic... Optional dependencies for python-pydantic mypy: for type validation with mypy python-dotenv: for .env file support [pending] python-email-validator: for email validation python-hypothesis: for hypothesis plugin when using legacy v1 installing python-pydantic-extra-types... Optional dependencies for python-pydantic-extra-types python-cron-converter: for cron support python-pendulum: for datetime support python-phonenumbers: for phone number support python-pycountry: for country code support python-pymongo: for MongoDB support python-pytz: for timezone support python-semver: for semantic versioning support python-tzdata: for timezone support python-ulid: for ULID support installing python-click... installing python-dotenv... Optional dependencies for python-dotenv ipython: ipython support installing python-pydantic-settings... Optional dependencies for python-pydantic-settings python-pyyaml: for YAML support installing python-starlette... Optional dependencies for python-starlette python-itsdangerous: for session middleware support [pending] python-jinja: for jinja templates [pending] python-python-multipart: for form parsing python-pyyaml: for schema generator python-httpx2: for test client installing python-opentelemetry-api... installing python-fastapi... Optional dependencies for python-fastapi hypercorn: for Hypercorn as ASGI server python-email-validator: for email validation python-itsdangerous: for SessionMiddleware support [pending] python-jinja: for default starlette template configuration [pending] python-opentelemetry-sdk: OpenTelemetry instrumentation and telemetry processing python-opentelemetry-exporter-otlp-proto-http: export telemetry over OTLP/HTTP python-orjson: for ORJSONResponse python-python-multipart: for form parsing support python-pyyaml: for starlette SchemaGenerator support python-httpx: for TestClient support python-strawberry-graphql: for GraphQL support python-ujson: for faster JSON parsing and UJSONResponse uvicorn: for Uvicorn as ASGI server installing python-blinker... installing python-itsdangerous... installing python-markupsafe... installing python-jinja... Optional dependencies for python-jinja python-babel: for i18n support installing python-werkzeug... Optional dependencies for python-werkzeug python-watchdog: faster and more advanced reloader installing python-flask... Optional dependencies for python-flask python-asgiref: async functions and views python-cryptography: using ad-hoc certificates [installed] python-dotenv: loading env vars from files [installed] installing python-iniconfig... installing python-pygments... installing python-pytest... installing python-pytest-asyncio... installing python-decorator... installing python-brotlicffi... installing python-greenlet... installing httpbin... installing python-pytest-httpbin... installing python-python-socks... Optional dependencies for python-python-socks python-anyio: anyio support [installed] python-curio: curio support python-trio: trio support installing python-pyopenssl... installing python-trustme... installing python-websockets... Optional dependencies for python-websockets python-trio: trio backend support python-werkzeug: routing support [installed] installing python-wsproto... :: Running post-transaction hooks... (1/4) Creating system user accounts... Creating group 'git' with GID 969. Creating user 'git' (git daemon user) with UID 969 and GID 969. (2/4) Reloading system manager configuration... Skipped: Current root is not booted. (3/4) Arming ConditionNeedsUpdate... (4/4) Checking for old perl modules... WARNING: '/usr/lib/perl5/5.42' contains data from at least 1 packages which will NOT be used by the installed perl interpreter. -> Run the following command to get a list of affected packages: pacman -Qqo '/usr/lib/perl5/5.42' [?25h]3008;end=5e9e145aa0f04a3cbbe63b36ed86948e\==>(B Retrieving sources...(B ==> WARNING:(B Skipping all source file integrity checks.(B ==>(B Extracting sources...(B  ->(B Creating working copy of niquests git repo...(B Cloning into 'niquests'... done. Switched to a new branch 'makepkg' ==>(B Starting prepare()...(B ==>(B Starting build()...(B * Getting build dependencies for wheel... * Building wheel... Successfully built niquests-3.21.3-py3-none-any.whl ==>(B Starting check()...(B [2026-11-14 14:01:23,303] WARNING in core: flasgger is not installed; serving the static landing page at / and skipping the Swagger UI and /spec.json. ============================= test session starts ============================== platform linux -- Python 3.14.10, pytest-9.2.0, pluggy-1.7.0 rootdir: /build/python-niquests/src/niquests configfile: pyproject.toml testpaths: tests plugins: asyncio-1.5.0, anyio-4.16.0, httpbin-2.1.0 asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function collected 1077 items tests/test_adapter_ownership.py ........................................ [ 3%] ........................................................... [ 9%] tests/test_asgi.py ................. [ 10%] tests/test_async.py ..ssssssssssssssssssssssss.s [ 13%] tests/test_crl.py ssss [ 13%] tests/test_emscripten.py sssssssssssssssssssssssssssssssssssssssssssssss [ 18%] sssssssssssssssssssssssssssssssssss [ 21%] tests/test_help.py ... [ 21%] tests/test_hooks.py ......... [ 22%] tests/test_iter_lines.py ............................................... [ 26%] .. [ 27%] tests/test_live.py .Fs.....s.sss [ 28%] tests/test_lowlevel.py ...................... [ 30%] tests/test_multiplexed.py ssssssss. [ 31%] tests/test_ocsp.py ssss [ 31%] tests/test_rate_limiters.py .......................... [ 33%] tests/test_requests.py ................................................. [ 38%] ........................................................................ [ 45%] ......................................pytest-httpbin server hit an exception serving request: [SSL: TLSV1_ALERT_UNKNOWN_CA] tlsv1 alert unknown ca (_ssl.c:1085) attempting to ignore so the rest of the tests can run .................................. [ 51%] ........................................................................ [ 58%] .......X................................................................ [ 65%] ..............................................xx. [ 69%] tests/test_sse.py ss [ 69%] tests/test_structures.py ..................... [ 71%] tests/test_testserver.py .........s.... [ 73%] tests/test_utils.py .................................................... [ 77%] ........................................................................ [ 84%] ....................................................sssssssssssssssssss. [ 91%] ...................................... [ 94%] tests/test_wasi_async_components.py ssssssssssssssssssssssssssssssssssss [ 98%] ssssss [ 98%] tests/test_websocket.py ssss [ 99%] tests/test_wsgi.py ......... [100%] =================================== FAILURES =================================== ____________________ TestLiveStandardCase.test_ensure_ipv6 _____________________ self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. :return: New socket connection. """ super()._new_conn() backup_timeout: float | None = -1.0 # we want to purposely mitigate the following scenario: # "A server yield its support for HTTP/2 or HTTP/3 through Alt-Svc, but # it cannot connect to the alt-svc, thus confusing the end-user on why it # waits forever for the 2nd request." if ( self._max_tolerable_delay_for_upgrade is not None and self.socket_kind != socket.SOCK_DGRAM ): backup_timeout = self.timeout self.timeout = self._max_tolerable_delay_for_upgrade # it may be required to send some initial data, aka. magic header (PRI * HTTP/2..) try: > sock = self._resolver.create_connection( (self._dns_host, self.port or self.default_port), self.timeout, source_address=self.source_address, socket_options=self.socket_options, socket_kind=self.socket_kind, quic_upgrade_via_dns_rr=self.scheme == "https" and HttpVersion.h3 not in self._disabled_svn and self.socket_kind != socket.SOCK_DGRAM, timing_hook=lambda _: setattr(self, "_connect_timings", _), ech_config_hook=lambda _: setattr(self, "_ech_config", _), default_socket_family=self._socket_family, ) /usr/lib/python3.14/site-packages/urllib3_future/connection.py:228: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.14/site-packages/urllib3_future/contrib/resolver/protocols.py:339: in create_connection raise err _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = address = ('httpbingo.org', 443), timeout = 30, source_address = None socket_options = [(6, 1, 1, 'tcp')], socket_kind = quic_upgrade_via_dns_rr = True timing_hook = . at 0x3f89275010> ech_config_hook = . at 0x3f89274f60> default_socket_family = def create_connection( self, address: tuple[str, int], timeout: _TYPE_TIMEOUT_INTERNAL = _DEFAULT_TIMEOUT, source_address: tuple[str, int] | None = None, socket_options: _TYPE_SOCKET_OPTIONS | None = None, socket_kind: socket.SocketKind = socket.SOCK_STREAM, *, quic_upgrade_via_dns_rr: bool = False, timing_hook: ( typing.Callable[[tuple[timedelta, timedelta, datetime]], None] | None ) = None, ech_config_hook: typing.Callable[[bytes], None] | None = None, default_socket_family: socket.AddressFamily = socket.AF_UNSPEC, ) -> socket.socket: """Connect to *address* and return the socket object. Convenience function. Connect to *address* (a 2-tuple ``(host, port)``) and return the socket object. Passing the optional *timeout* parameter will set the timeout on the socket instance before attempting to connect. If no *timeout* is supplied, the global default timeout setting returned by :func:`socket.getdefaulttimeout` is used. If *source_address* is set it must be a tuple of (host, port) for the socket to bind as a source address before making the connection. An host of '' or port 0 tells the OS to use the default. """ host, port = address if host.startswith("["): host = host.strip("[]") err = None # Using the value from allowed_gai_family() in the context of getaddrinfo lets # us select whether to work with IPv4 DNS records, IPv6 records, or both. # The original create_connection function always returns all records. family = allowed_gai_family() if family != socket.AF_UNSPEC: default_socket_family = family if source_address is not None: if isinstance( ipaddress.ip_address(source_address[0]), ipaddress.IPv4Address ): default_socket_family = socket.AF_INET else: default_socket_family = socket.AF_INET6 try: host.encode("idna") except UnicodeError: raise LocationParseError(f"'{host}', label empty or too long") from None dt_pre_resolve = datetime.now(tz=timezone.utc) records = self.getaddrinfo( host, port, default_socket_family, socket_kind, quic_upgrade_via_dns_rr=quic_upgrade_via_dns_rr, ) delta_post_resolve = datetime.now(tz=timezone.utc) - dt_pre_resolve dt_pre_established = datetime.now(tz=timezone.utc) for res in records: af, socktype, proto, canonname, sa = res sock = None try: socket_cls = ( socket.socket if _with_attr_sock is _ORIGINAL_SOCKET else _with_attr_sock ) sock = socket_cls(af, socktype, proto) # we need to add this or reusing the same origin port will likely fail within # short period of time. kernel put port on wait shut. if source_address is not None: try: sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1) except ( OSError, AttributeError, ): # Defensive: Windows or very old OS? try: sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) except ( OSError, AttributeError, ): # Defensive: we can't do anything better than this. pass try: sock.setsockopt( socket.SOL_SOCKET, socket.SO_LINGER, struct.pack("ii", 1, 0) ) except (OSError, AttributeError): pass sock.bind(source_address) # attempt to leverage GRO when under Linux if socktype == socket.SOCK_DGRAM and sys.platform == "linux": try: sock.setsockopt(socket.SOL_UDP, UDP_LINUX_GRO, 1) except OSError: # Defensive: oh, well(...) anyway! pass # If provided, set socket level options before connecting. _set_socket_options(sock, socket_options) if timeout is not _DEFAULT_TIMEOUT: sock.settimeout(timeout) if self._unsafe_expose: self._sock_cursor = sock > sock.connect(sa) E OSError: [Errno 101] Network is unreachable /usr/lib/python3.14/site-packages/urllib3_future/contrib/resolver/protocols.py:305: OSError The above exception was the direct cause of the following exception: self = , method = 'GET' url = '/get', body = None headers = {'User-Agent': 'niquests/3.21.3', 'Accept-Encoding': 'gzip, deflate, br', 'Accept': '*/*', 'Connection': 'keep-alive'} retries = Retry(total=0, connect=None, read=False, redirect=None, status=None) redirect = False, assert_same_host = False timeout = Timeout(connect=30, read=30, total=None), pool_timeout = None release_conn = True, chunked = False, body_pos = None, preload_content = False decode_content = False on_post_connection = .on_post_connection at 0x3f89274930> on_upload_body = .handle_upload_progress at 0x3f89274a90> on_early_response = .early_response_hook at 0x3f89274ca0> extension = None, multiplexed = False, response_kw = {} def urlopen( self, method: str, url: str, body: _TYPE_BODY | None = None, headers: typing.Mapping[str, str] | None = None, retries: Retry | bool | int | None = None, redirect: bool = True, assert_same_host: bool = True, timeout: _TYPE_TIMEOUT = _DEFAULT_TIMEOUT, pool_timeout: int | None = None, release_conn: bool | None = None, chunked: bool = False, body_pos: _TYPE_BODY_POSITION | None = None, preload_content: bool = True, decode_content: bool = True, on_post_connection: typing.Callable[[ConnectionInfo], None] | None = None, on_upload_body: typing.Callable[[int, int | None, bool, bool], None] | None = None, on_early_response: typing.Callable[[HTTPResponse], None] | None = None, extension: ExtensionFromHTTP | None = None, multiplexed: bool = False, **response_kw: typing.Any, ) -> HTTPResponse | ResponsePromise: """ Get a connection from the pool and perform an HTTP request. This is the lowest level call for making a request, so you'll need to specify all the raw details. .. note:: More commonly, it's appropriate to use a convenience method such as :meth:`request`. .. note:: For streaming, use ``preload_content=False`` and consume or close the returned response. Returning connection ownership alone does not discard an unread body. :param method: HTTP request method (such as GET, POST, PUT, etc.) :param url: The URL to perform the request on. :param body: Data to send in the request body, either :class:`str`, :class:`bytes`, an iterable of :class:`str`/:class:`bytes`, or a file-like object. :param headers: Dictionary of custom headers to send, such as User-Agent, If-None-Match, etc. If None, pool headers are used. If provided, these headers completely replace any pool-specific headers. :param retries: Configure the number of retries to allow before raising a :class:`~urllib3.exceptions.MaxRetryError` exception. Pass ``None`` to use the pool's default retry configuration. Pass a :class:`~urllib3.util.retry.Retry` object for fine-grained control over different types of retries. An integer sets the total retry budget; allowed methods and other retry rules still apply. Pass zero to disable further attempts. If ``False``, then retries are disabled and any exception is raised immediately. Also, instead of raising a MaxRetryError on redirects, the redirect response will be returned. :type retries: :class:`~urllib3.util.retry.Retry`, False, or an int. :param redirect: If True, automatically handle redirects (status codes 301, 302, 303, 307, 308). Each redirect counts as a retry. Disabling retries will disable redirect, too. :param assert_same_host: If ``True``, will make sure that the host of the pool requests is consistent else will raise HostChangedError. When ``False``, you can use the pool on an HTTP proxy and request foreign hosts. :param timeout: If specified, overrides the default timeout for this one request. It may be a float (in seconds) or an instance of :class:`urllib3.util.Timeout`. :param pool_timeout: Maximum seconds to wait for connection acquisition. The default, None, has no acquisition deadline. This is separate from connect and read timeouts and can apply with either value of block. Raises EmptyPoolError if no connection becomes available in time. :param bool preload_content: If True, the response's body will be preloaded into memory. :param bool decode_content: If True, will attempt to decode the body based on the 'content-encoding' header. :param release_conn: Whether to return acquired connection ownership after receiving response headers. If None, defaults to preload_content. Reading the whole body normally releases ownership automatically. Consume, drain, or close an unused response; release_conn() alone does not consume or abort its unread body. :param bool chunked: If True, urllib3 will send the body using chunked transfer encoding. Otherwise, urllib3 will send the body using the standard content-length form. Defaults to False. :param int body_pos: Position to seek to in file-like body in the event of a retry or redirect. Typically this won't need to be set because urllib3 will auto-populate the value when needed. :param on_post_connection: Callable to be invoked that will inform you of the connection specifications for the request to be sent. See ``urllib3.ConnectionInfo`` class for more. :param on_upload_body: Callable that will be invoked upon body upload in order to be able to track the progress. The values are expressed in bytes. It is possible that the total isn't available, thus set to None. In order, arguments are: (total_sent, total_to_be_sent, completed, any_error) :param on_early_response: Callable that will be invoked upon early responses, can be invoked one or several times. All informational responses except HTTP/101 (Switching Protocol) are concerned here. The callback takes only one positional argument, the fully constructed HTTPResponse. Those responses never have bodies, only headers. :param multiplexed: Defer response retrieval on HTTP/2 or HTTP/3 and return a ResponsePromise for get_response(). Sending the request can still perform blocking I/O. HTTP/1.1 returns an immediate response. """ # Retrying must not decode IPv6 zone identifiers a second time. original_url = url parsed_url = parse_url(url) destination_scheme = parsed_url.scheme if headers is None: headers = self.headers if not isinstance(retries, Retry): retries = Retry.from_int(retries, redirect=redirect, default=self.retries) if release_conn is None: release_conn = True # Check host if assert_same_host and not self.is_same_host(url): raise HostChangedError(self, url, retries) # Ensure that the URL we're connecting to is properly encoded if url.startswith("/"): url = to_str(_encode_target(url)) else: url = to_str(parsed_url._replace(fragment=None).url) conn = None # Track whether `conn` needs to be released before # returning/raising/recursing. Update this variable if necessary, and # leave `release_conn` constant throughout the function. That way, if # the function recurses, the original value of `release_conn` will be # passed down into the recursive call, and its value will be respected. # # See issue #651 [1] for details. # # [1] release_this_conn = release_conn http_tunnel_required = connection_requires_http_tunnel( self.proxy, self.proxy_config, destination_scheme ) # Merge the proxy headers. Only done when not using HTTP CONNECT. We # have to copy the headers dict so we can safely change it without those # changes being reflected in anyone else's copy. if not http_tunnel_required: # Mapping implementations need not provide dict.copy(). headers = headers.copy() if hasattr(headers, "copy") else dict(headers) headers.update(self.proxy_headers) # Must keep the exception bound to a separate variable or else Python 3 # complains about UnboundLocalError. err = None # Keep track of whether we cleanly exited the except block. This # ensures we do proper cleanup in finally. clean_exit = False # Rewind body position, if needed. Record current position # for future rewinds in the event of a redirect/retry. body_pos = set_file_position(body, body_pos) try: # Request a connection from the queue. timeout_obj = self._get_timeout(timeout) try: conn = self._get_conn(timeout=pool_timeout, heb_timeout=timeout_obj) except TypeError: # Defensive: 3rd party conn hacks conn = self._get_conn(timeout=pool_timeout) conn.timeout = timeout_obj.connect_timeout # type: ignore[assignment] # Is this a closed/new connection that requires CONNECT tunnelling? if self.proxy is not None and http_tunnel_required and conn.is_closed: try: self._prepare_proxy(conn) except (BaseSSLError, OSError, SocketTimeout) as e: self._raise_timeout( err=e, url=self.proxy.url, timeout_value=conn.timeout ) raise # If we're going to release the connection in ``finally:``, then # the response doesn't need to know about the connection. Otherwise # it will also try to release it and we'll have a double-release # mess. response_conn = conn if not release_conn else None # Make the request on the HTTPConnection object > response = self._make_request( # type: ignore[call-overload,misc] conn, method, url, body=body, headers=headers, retries=retries, timeout=timeout_obj, chunked=chunked, response_conn=response_conn, preload_content=preload_content, decode_content=decode_content, enforce_content_length=True, on_post_connection=on_post_connection, on_upload_body=on_upload_body, on_early_response=on_early_response, multiplexed=multiplexed, extension=extension, ) /usr/lib/python3.14/site-packages/urllib3_future/connectionpool.py:1896: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.14/site-packages/urllib3_future/connectionpool.py:1381: in _make_request raise new_e /usr/lib/python3.14/site-packages/urllib3_future/connectionpool.py:1357: in _make_request self._validate_conn(conn) /usr/lib/python3.14/site-packages/urllib3_future/connectionpool.py:2560: in _validate_conn super()._validate_conn(conn) /usr/lib/python3.14/site-packages/urllib3_future/connectionpool.py:858: in _validate_conn conn.connect() /usr/lib/python3.14/site-packages/urllib3_future/connection.py:788: in connect self.sock = sock = self._new_conn() ^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _new_conn(self) -> socket.socket: """Establish a socket connection and set nodelay settings on it. :return: New socket connection. """ super()._new_conn() backup_timeout: float | None = -1.0 # we want to purposely mitigate the following scenario: # "A server yield its support for HTTP/2 or HTTP/3 through Alt-Svc, but # it cannot connect to the alt-svc, thus confusing the end-user on why it # waits forever for the 2nd request." if ( self._max_tolerable_delay_for_upgrade is not None and self.socket_kind != socket.SOCK_DGRAM ): backup_timeout = self.timeout self.timeout = self._max_tolerable_delay_for_upgrade # it may be required to send some initial data, aka. magic header (PRI * HTTP/2..) try: sock = self._resolver.create_connection( (self._dns_host, self.port or self.default_port), self.timeout, source_address=self.source_address, socket_options=self.socket_options, socket_kind=self.socket_kind, quic_upgrade_via_dns_rr=self.scheme == "https" and HttpVersion.h3 not in self._disabled_svn and self.socket_kind != socket.SOCK_DGRAM, timing_hook=lambda _: setattr(self, "_connect_timings", _), ech_config_hook=lambda _: setattr(self, "_ech_config", _), default_socket_family=self._socket_family, ) except socket.gaierror as e: raise NameResolutionError(self.host, self, e) from e except SocketTimeout as e: raise ConnectTimeoutError( self, f"Connection to {self.host} timed out. (connect timeout={self.timeout})", ) from e except OSError as e: > raise NewConnectionError( self, f"Failed to establish a new connection: {e}" ) from e E urllib3_future.exceptions.NewConnectionError: : Failed to establish a new connection: [Errno 101] Network is unreachable /usr/lib/python3.14/site-packages/urllib3_future/connection.py:249: NewConnectionError The above exception was the direct cause of the following exception: self = >> request = , stream = False timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict() on_post_connection = .on_post_connection at 0x3f89274930> on_upload_body = .handle_upload_progress at 0x3f89274a90> on_early_response = .on_early_response at 0x3f89274bf0> multiplexed = False def send( self, request: PreparedRequest, stream: bool = False, timeout: int | float | TimeoutSauce | None = None, verify: TLSVerifyType = True, cert: TLSClientCertType | None = None, proxies: ProxyType | None = None, on_post_connection: typing.Callable[[typing.Any], None] | None = None, on_upload_body: typing.Callable[[int, int | None, bool, bool], None] | None = None, on_early_response: typing.Callable[[Response], None] | None = None, multiplexed: bool = False, ) -> Response: """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest ` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) ` tuple. :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a path passed as a string or os.Pathlike object, in which case it must be a path to a CA bundle to use. Defaults to ``True``. It is also possible to put the certificates (directly) in a string or bytes. :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :param on_post_connection: (optional) A callable that contain a single positional argument for newly acquired connection. Useful to check acquired connection information. :param multiplexed: Determine if request shall be transmitted by leveraging the multiplexed aspect of the protocol if available. Return a lazy instance of Response pending its retrieval. """ assert request.url is not None and request.headers is not None and request.method is not None, ( "Tried to send a non-initialized PreparedRequest" ) try: proxy = select_proxy(request.url, proxies) if proxy: proxy = prepend_scheme_if_needed(proxy, "http") conn = self.get_connection(request.url, proxies) except LocationValueError as e: raise InvalidURL(e, request=request) # get_connection() leaves a manager hold on the selected host pool. # Keep its owner fixed across setup hooks, redirects, and failures. pools = self.proxy_manager[proxy].pools if proxy else self.poolmanager.pools try: # We enforce a check to avoid running out of capacity. if multiplexed and conn.is_saturated: # the pool is saturated = no more stream can be opened while not conn.is_idle: # we resolve everything pending low_resp = conn.get_response() if low_resp is not None: assert ( low_resp._fp is not None and hasattr(low_resp._fp, "from_promise") and low_resp._fp.from_promise is not None ) pools.forget(low_resp._fp.from_promise) response = low_resp._fp.from_promise.get_parameter("niquests_response") if response is not None: self._future_handler(response, low_resp) else: # we'll take any room available right away. if not conn.is_saturated: break if isinstance(conn, HTTPSConnectionPool): self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (bool(request.body) is False or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: if len(timeout) == 3: connect, read, total = timeout # type: ignore[assignment] else: connect, read = timeout # type: ignore[assignment] total = None timeout = TimeoutSauce(connect=connect, read=read, total=total) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) or (connect, read, total) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): pass else: timeout = TimeoutSauce(connect=timeout, read=timeout) if isinstance(request.body, (list, dict)): raise ValueError("Body contains unprepared native list or dict.") scheme = parse_scheme(request.url) extension = None if scheme is not None and scheme not in ("http", "https", "http+unix"): if "+" in scheme: scheme, implementation = tuple(scheme.split("+", maxsplit=1)) else: implementation = None extension = wrap_extension_for_http(load_extension(scheme, implementation=implementation))() def early_response_hook(early_response: BaseHTTPResponse) -> None: nonlocal on_early_response assert on_early_response is not None on_early_response(self.build_response(request, early_response)) try: > resp_or_promise = conn.urlopen( # type: ignore[call-overload,misc] method=request.method, url=url, body=request.body, headers=request.headers, redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=timeout, chunked=chunked, on_post_connection=on_post_connection, on_upload_body=on_upload_body, on_early_response=early_response_hook if on_early_response is not None else None, extension=extension, multiplexed=multiplexed, ) test-env/lib/python3.14/site-packages/niquests/adapters.py:935: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.14/site-packages/urllib3_future/connectionpool.py:1977: in urlopen retries = retries.increment( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = Retry(total=0, connect=None, read=False, redirect=None, status=None) method = 'GET', url = '/get', response = None error = NewConnectionError(': Failed to establish a new connection: [Errno 101] Network is unreachable') _pool = _stacktrace = def increment( self, method: str | None = None, url: str | None = None, response: HTTPResponse | AsyncHTTPResponse | None = None, error: Exception | None = None, _pool: ConnectionPool | AsyncConnectionPool | None = None, _stacktrace: TracebackType | None = None, ) -> Retry: """Return a new Retry object with incremented retry counters. :param response: A response object, or None, if the server did not return a response. :type response: :class:`~urllib3.response.HTTPResponse` :param Exception error: An error encountered during the request, or None if the response was received successfully. :return: A new ``Retry`` object. """ if self.total is False and error: if not isinstance(error, RecoverableError): # Disabled, indicate to re-raise the error. raise reraise(type(error), error, _stacktrace) total = self.total if total is not None and isinstance(error, RecoverableError) is False: total -= 1 connect = self.connect read = self.read redirect = self.redirect status_count = self.status other = self.other cause = "unknown" status = None redirect_location = None if error and self._is_connection_error(error): # Connect retry? if connect is False: raise reraise(type(error), error, _stacktrace) elif connect is not None: connect -= 1 elif error and self._is_read_error(error): # Read retry? if read is False or method is None or not self._is_method_retryable(method): raise reraise(type(error), error, _stacktrace) elif read is not None: read -= 1 elif error: # Other retry? if other is not None: other -= 1 elif response and response.get_redirect_location(): # Redirect retry? if redirect is not None: redirect -= 1 cause = "too many redirects" response_redirect_location = response.get_redirect_location() if response_redirect_location: redirect_location = response_redirect_location status = response.status else: # Incrementing because of a server error like a 500 in # status_forcelist and the given method is in the allowed_methods cause = ResponseError.GENERIC_ERROR if response and response.status: if status_count is not None: status_count -= 1 cause = ResponseError.SPECIFIC_ERROR.format(status_code=response.status) status = response.status history = self.history + ( RequestHistory(method, url, error, status, redirect_location), ) new_retry = self.new( total=total, connect=connect, read=read, redirect=redirect, status=status_count, other=other, history=history, ) if isinstance(error, RecoverableError) is False and new_retry.is_exhausted(): reason = error or ResponseError(cause) > raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E urllib3_future.exceptions.MaxRetryError: HTTPSConnectionPool(host='httpbingo.org', port=443): Max retries exceeded with url: /get (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 101] Network is unreachable')) /usr/lib/python3.14/site-packages/urllib3_future/util/retry.py:585: MaxRetryError During handling of the above exception, another exception occurred: self = @pytest.mark.usefixtures("requires_wan") def test_ensure_ipv6(self) -> None: if os.environ.get("CI", None) is not None: # GitHub hosted runner can't reach external IPv6... with pytest.raises(ConnectionError, match="No route to host|unreachable|timed out"): with Session(disable_ipv4=True, resolver="doh+google://") as s: s.get("https://httpbingo.org/get") return with Session(disable_ipv4=True, resolver="doh+google://") as s: > r = s.get("https://httpbingo.org/get") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_live.py:43: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ test-env/lib/python3.14/site-packages/niquests/sessions.py:846: in get return self.request( test-env/lib/python3.14/site-packages/niquests/sessions.py:790: in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ test-env/lib/python3.14/site-packages/niquests/sessions.py:1614: in send r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = >> request = , stream = False timeout = Timeout(connect=30, read=30, total=None), verify = True, cert = None proxies = OrderedDict() on_post_connection = .on_post_connection at 0x3f89274930> on_upload_body = .handle_upload_progress at 0x3f89274a90> on_early_response = .on_early_response at 0x3f89274bf0> multiplexed = False def send( self, request: PreparedRequest, stream: bool = False, timeout: int | float | TimeoutSauce | None = None, verify: TLSVerifyType = True, cert: TLSClientCertType | None = None, proxies: ProxyType | None = None, on_post_connection: typing.Callable[[typing.Any], None] | None = None, on_upload_body: typing.Callable[[int, int | None, bool, bool], None] | None = None, on_early_response: typing.Callable[[Response], None] | None = None, multiplexed: bool = False, ) -> Response: """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest ` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) ` tuple. :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a path passed as a string or os.Pathlike object, in which case it must be a path to a CA bundle to use. Defaults to ``True``. It is also possible to put the certificates (directly) in a string or bytes. :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :param on_post_connection: (optional) A callable that contain a single positional argument for newly acquired connection. Useful to check acquired connection information. :param multiplexed: Determine if request shall be transmitted by leveraging the multiplexed aspect of the protocol if available. Return a lazy instance of Response pending its retrieval. """ assert request.url is not None and request.headers is not None and request.method is not None, ( "Tried to send a non-initialized PreparedRequest" ) try: proxy = select_proxy(request.url, proxies) if proxy: proxy = prepend_scheme_if_needed(proxy, "http") conn = self.get_connection(request.url, proxies) except LocationValueError as e: raise InvalidURL(e, request=request) # get_connection() leaves a manager hold on the selected host pool. # Keep its owner fixed across setup hooks, redirects, and failures. pools = self.proxy_manager[proxy].pools if proxy else self.poolmanager.pools try: # We enforce a check to avoid running out of capacity. if multiplexed and conn.is_saturated: # the pool is saturated = no more stream can be opened while not conn.is_idle: # we resolve everything pending low_resp = conn.get_response() if low_resp is not None: assert ( low_resp._fp is not None and hasattr(low_resp._fp, "from_promise") and low_resp._fp.from_promise is not None ) pools.forget(low_resp._fp.from_promise) response = low_resp._fp.from_promise.get_parameter("niquests_response") if response is not None: self._future_handler(response, low_resp) else: # we'll take any room available right away. if not conn.is_saturated: break if isinstance(conn, HTTPSConnectionPool): self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (bool(request.body) is False or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: if len(timeout) == 3: connect, read, total = timeout # type: ignore[assignment] else: connect, read = timeout # type: ignore[assignment] total = None timeout = TimeoutSauce(connect=connect, read=read, total=total) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) or (connect, read, total) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): pass else: timeout = TimeoutSauce(connect=timeout, read=timeout) if isinstance(request.body, (list, dict)): raise ValueError("Body contains unprepared native list or dict.") scheme = parse_scheme(request.url) extension = None if scheme is not None and scheme not in ("http", "https", "http+unix"): if "+" in scheme: scheme, implementation = tuple(scheme.split("+", maxsplit=1)) else: implementation = None extension = wrap_extension_for_http(load_extension(scheme, implementation=implementation))() def early_response_hook(early_response: BaseHTTPResponse) -> None: nonlocal on_early_response assert on_early_response is not None on_early_response(self.build_response(request, early_response)) try: resp_or_promise = conn.urlopen( # type: ignore[call-overload,misc] method=request.method, url=url, body=request.body, headers=request.headers, redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=timeout, chunked=chunked, on_post_connection=on_post_connection, on_upload_body=on_upload_body, on_early_response=early_response_hook if on_early_response is not None else None, extension=extension, multiplexed=multiplexed, ) # branch for urllib3.future 2.5+ with advanced conn/multiplexing scheduler/mapper. aka. TrafficPolice. # we are bypassing the PoolManager.request to directly invoke the concerned HttpPool, so we missed # a required call to TrafficPolice::memorize(...). pools.memorize(resp_or_promise, conn) except (ProtocolError, OSError) as err: if "illegal header" in str(err).lower(): raise InvalidHeader(err, request=request) raise ConnectionError(err, request=request) except MaxRetryError as e: if isinstance(e.reason, ConnectTimeoutError): # TODO: Remove this in 3.0.0: see #2811 if not isinstance(e.reason, NewConnectionError): raise ConnectTimeout(e, request=request) if isinstance(e.reason, ResponseError): raise RetryError(e, request=request) if isinstance(e.reason, _ProxyError): raise ProxyError(e, request=request) if isinstance(e.reason, _SSLError): # This branch is for urllib3 v1.22 and later. raise SSLError(e, request=request) > raise ConnectionError(e, request=request) E niquests.exceptions.ConnectionError: HTTPSConnectionPool(host='httpbingo.org', port=443): Max retries exceeded with url: /get (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 101] Network is unreachable')) test-env/lib/python3.14/site-packages/niquests/adapters.py:980: ConnectionError =========================== short test summary info ============================ FAILED tests/test_live.py::TestLiveStandardCase::test_ensure_ipv6 - niquests.... = 1 failed, 877 passed, 196 skipped, 2 xfailed, 1 xpassed in 153.77s (0:02:33) = ==> ERROR:(B A failure occurred in check().(B  Aborting...(B ]3008;end=2b734783d1444bd48ddaa34ab7688f16\[!p]104\[?7h]3008;end=473d4b0c9f4745e38137004eed0cba94\==> ERROR:(B Build failed, check /var/lib/archbuild/extra-riscv64/felix-0/build(B [?12l[?25h[?12l[?25h]3008;end=987443d73cb347c2ba00601697a5d87d\[?12l[?25hreceiving incremental file list python-niquests-3.21.3-1-riscv64-build.log python-niquests-3.21.3-1-riscv64-check.log python-niquests-3.21.3-1-riscv64-prepare.log sent 81 bytes received 11,641 bytes 7,814.67 bytes/sec total size is 49,440 speedup is 4.22