0s autopkgtest [17:01:22]: starting date and time: 2025-11-17 17:01:22+0000 0s autopkgtest [17:01:22]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [17:01:22]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.r6nh23kw/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:pytibber --apt-upgrade pytibber --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=pytibber/0.32.2-1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@bos03-s390x-4.secgroup --name adt-resolute-s390x-pytibber-20251117-170122-juju-7f2275-prod-proposed-migration-environment-20-604b115d-5011-416a-9f3a-268a43dfe3f3 --image adt/ubuntu-resolute-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-proposed-migration-s390x -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 3s Creating nova instance adt-resolute-s390x-pytibber-20251117-170122-juju-7f2275-prod-proposed-migration-environment-20-604b115d-5011-416a-9f3a-268a43dfe3f3 from image adt/ubuntu-resolute-s390x-server-20251117.img (UUID a3a3e3b9-e6ba-478c-a5e9-fce6f0982a95)... 48s autopkgtest [17:02:10]: testbed dpkg architecture: s390x 49s autopkgtest [17:02:11]: testbed apt version: 3.1.11 49s autopkgtest [17:02:11]: @@@@@@@@@@@@@@@@@@@@ test bed setup 49s autopkgtest [17:02:11]: testbed release detected to be: None 50s autopkgtest [17:02:12]: updating testbed package index (apt update) 50s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [87.8 kB] 50s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 51s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 51s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 51s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [779 kB] 51s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [9852 B] 51s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [22.9 kB] 51s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [73.2 kB] 51s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x Packages [134 kB] 51s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/restricted s390x Packages [940 B] 51s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x Packages [488 kB] 51s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse s390x Packages [10.6 kB] 51s Fetched 1606 kB in 1s (1181 kB/s) 52s Reading package lists... 53s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 53s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 53s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 53s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 54s Reading package lists... 54s Reading package lists... 54s Building dependency tree... 54s Reading state information... 54s Calculating upgrade... 54s The following packages will be upgraded: 54s apt libapt-pkg7.0 libcrypt-dev libcrypt1 usbutils 54s 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 54s Need to get 2926 kB of archives. 54s After this operation, 50.2 kB of additional disk space will be used. 54s Get:1 http://ftpmaster.internal/ubuntu resolute/main s390x libcrypt-dev s390x 1:4.5.1-1 [127 kB] 54s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x libcrypt1 s390x 1:4.5.1-1 [96.1 kB] 55s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x libapt-pkg7.0 s390x 3.1.12 [1150 kB] 56s Get:4 http://ftpmaster.internal/ubuntu resolute/main s390x apt s390x 3.1.12 [1468 kB] 56s Get:5 http://ftpmaster.internal/ubuntu resolute/main s390x usbutils s390x 1:019-1 [85.6 kB] 56s dpkg-preconfigure: unable to re-open stdin: No such file or directory 57s Fetched 2926 kB in 2s (1296 kB/s) 57s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 61309 files and directories currently installed.) 57s Preparing to unpack .../libcrypt-dev_1%3a4.5.1-1_s390x.deb ... 57s Unpacking libcrypt-dev:s390x (1:4.5.1-1) over (1:4.4.38-1build1) ... 57s Preparing to unpack .../libcrypt1_1%3a4.5.1-1_s390x.deb ... 57s Unpacking libcrypt1:s390x (1:4.5.1-1) over (1:4.4.38-1build1) ... 57s Setting up libcrypt1:s390x (1:4.5.1-1) ... 57s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 61309 files and directories currently installed.) 57s Preparing to unpack .../libapt-pkg7.0_3.1.12_s390x.deb ... 57s Unpacking libapt-pkg7.0:s390x (3.1.12) over (3.1.11) ... 57s Preparing to unpack .../archives/apt_3.1.12_s390x.deb ... 57s Unpacking apt (3.1.12) over (3.1.11) ... 57s Preparing to unpack .../usbutils_1%3a019-1_s390x.deb ... 57s Unpacking usbutils (1:019-1) over (1:018-2) ... 57s Setting up usbutils (1:019-1) ... 57s Setting up libcrypt-dev:s390x (1:4.5.1-1) ... 57s Setting up libapt-pkg7.0:s390x (3.1.12) ... 57s Setting up apt (3.1.12) ... 57s Processing triggers for man-db (2.13.1-1) ... 59s Processing triggers for libc-bin (2.42-2ubuntu2) ... 59s autopkgtest [17:02:21]: upgrading testbed (apt dist-upgrade and autopurge) 60s Reading package lists... 60s Building dependency tree... 60s Reading state information... 60s Calculating upgrade... 60s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 61s Reading package lists... 61s Building dependency tree... 61s Reading state information... 61s Solving dependencies... 61s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 61s autopkgtest [17:02:23]: rebooting testbed after setup commands that affected boot 76s autopkgtest [17:02:38]: testbed running kernel: Linux 6.17.0-5-generic #5-Ubuntu SMP Mon Sep 22 08:56:47 UTC 2025 79s autopkgtest [17:02:41]: @@@@@@@@@@@@@@@@@@@@ apt-source pytibber 80s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/universe pytibber 0.32.2-1 (dsc) [2237 B] 80s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/universe pytibber 0.32.2-1 (tar) [29.4 kB] 80s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/universe pytibber 0.32.2-1 (diff) [2248 B] 80s gpgv: Signature made Mon Oct 13 17:41:24 2025 UTC 80s gpgv: using RSA key FB8ACFA78C726089C38AD0269605A1098C63B92A 80s gpgv: Can't check signature: No public key 80s dpkg-source: warning: cannot verify inline signature for ./pytibber_0.32.2-1.dsc: no acceptable signature found 80s autopkgtest [17:02:42]: testing package pytibber version 0.32.2-1 81s autopkgtest [17:02:43]: build not needed 81s autopkgtest [17:02:43]: test pybuild-autopkgtest: preparing testbed 81s Reading package lists... 81s Building dependency tree... 81s Reading state information... 81s Solving dependencies... 82s The following NEW packages will be installed: 82s autoconf automake autopoint autotools-dev build-essential cpp cpp-15 82s cpp-15-s390x-linux-gnu cpp-s390x-linux-gnu debhelper debugedit dh-autoreconf 82s dh-python dh-strip-nondeterminism dwz fonts-font-awesome fonts-lato g++ 82s g++-15 g++-15-s390x-linux-gnu g++-s390x-linux-gnu gcc gcc-15 82s gcc-15-s390x-linux-gnu gcc-s390x-linux-gnu gettext intltool-debian 82s libarchive-zip-perl libasan8 libcc1-0 libdebhelper-perl 82s libfile-stripnondeterminism-perl libgcc-15-dev libgomp1 libisl23 libitm1 82s libjs-jquery libjs-sphinxdoc libjs-underscore libmpc3 libstdc++-15-dev 82s libtool libubsan1 m4 po-debconf pybuild-plugin-autopkgtest 82s pybuild-plugin-pyproject python3-aiohappyeyeballs python3-aiohttp 82s python3-aiosignal python3-all python3-anyio python3-async-generator 82s python3-async-timeout python3-backoff python3-build python3-frozenlist 82s python3-gql python3-graphql-core python3-iniconfig python3-installer 82s python3-multidict python3-pluggy python3-propcache python3-pyproject-hooks 82s python3-pytest python3-pytest-asyncio python3-pytibber python3-sniffio 82s python3-websockets python3-wheel python3-yarl sphinx-rtd-theme-common 82s 0 upgraded, 73 newly installed, 0 to remove and 0 not upgraded. 82s Need to get 62.3 MB of archives. 82s After this operation, 202 MB of additional disk space will be used. 82s Get:1 http://ftpmaster.internal/ubuntu resolute/main s390x fonts-lato all 2.015-1 [2781 kB] 83s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x m4 s390x 1.4.20-2 [223 kB] 83s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x autoconf all 2.72-3.1ubuntu1 [384 kB] 83s Get:4 http://ftpmaster.internal/ubuntu resolute/main s390x autotools-dev all 20240727.1 [43.4 kB] 83s Get:5 http://ftpmaster.internal/ubuntu resolute/main s390x automake all 1:1.18.1-2 [581 kB] 84s Get:6 http://ftpmaster.internal/ubuntu resolute/main s390x autopoint all 0.23.2-1 [620 kB] 84s Get:7 http://ftpmaster.internal/ubuntu resolute/main s390x libisl23 s390x 0.27-1 [704 kB] 84s Get:8 http://ftpmaster.internal/ubuntu resolute/main s390x libmpc3 s390x 1.3.1-2 [57.4 kB] 84s Get:9 http://ftpmaster.internal/ubuntu resolute/main s390x cpp-15-s390x-linux-gnu s390x 15.2.0-7ubuntu1 [10.2 MB] 85s Get:10 http://ftpmaster.internal/ubuntu resolute/main s390x cpp-15 s390x 15.2.0-7ubuntu1 [1022 B] 85s Get:11 http://ftpmaster.internal/ubuntu resolute/main s390x cpp-s390x-linux-gnu s390x 4:15.2.0-4ubuntu1 [5746 B] 85s Get:12 http://ftpmaster.internal/ubuntu resolute/main s390x cpp s390x 4:15.2.0-4ubuntu1 [22.4 kB] 85s Get:13 http://ftpmaster.internal/ubuntu resolute/main s390x libcc1-0 s390x 15.2.0-7ubuntu1 [50.0 kB] 85s Get:14 http://ftpmaster.internal/ubuntu resolute/main s390x libgomp1 s390x 15.2.0-7ubuntu1 [154 kB] 85s Get:15 http://ftpmaster.internal/ubuntu resolute/main s390x libitm1 s390x 15.2.0-7ubuntu1 [30.9 kB] 85s Get:16 http://ftpmaster.internal/ubuntu resolute/main s390x libasan8 s390x 15.2.0-7ubuntu1 [2968 kB] 85s Get:17 http://ftpmaster.internal/ubuntu resolute/main s390x libubsan1 s390x 15.2.0-7ubuntu1 [1211 kB] 86s Get:18 http://ftpmaster.internal/ubuntu resolute/main s390x libgcc-15-dev s390x 15.2.0-7ubuntu1 [1045 kB] 86s Get:19 http://ftpmaster.internal/ubuntu resolute/main s390x gcc-15-s390x-linux-gnu s390x 15.2.0-7ubuntu1 [19.9 MB] 87s Get:20 http://ftpmaster.internal/ubuntu resolute/main s390x gcc-15 s390x 15.2.0-7ubuntu1 [513 kB] 87s Get:21 http://ftpmaster.internal/ubuntu resolute/main s390x gcc-s390x-linux-gnu s390x 4:15.2.0-4ubuntu1 [1208 B] 87s Get:22 http://ftpmaster.internal/ubuntu resolute/main s390x gcc s390x 4:15.2.0-4ubuntu1 [5018 B] 87s Get:23 http://ftpmaster.internal/ubuntu resolute/main s390x libstdc++-15-dev s390x 15.2.0-7ubuntu1 [2659 kB] 87s Get:24 http://ftpmaster.internal/ubuntu resolute/main s390x g++-15-s390x-linux-gnu s390x 15.2.0-7ubuntu1 [11.7 MB] 87s Get:25 http://ftpmaster.internal/ubuntu resolute/main s390x g++-15 s390x 15.2.0-7ubuntu1 [23.7 kB] 87s Get:26 http://ftpmaster.internal/ubuntu resolute/main s390x g++-s390x-linux-gnu s390x 4:15.2.0-4ubuntu1 [956 B] 87s Get:27 http://ftpmaster.internal/ubuntu resolute/main s390x g++ s390x 4:15.2.0-4ubuntu1 [1078 B] 87s Get:28 http://ftpmaster.internal/ubuntu resolute/main s390x build-essential s390x 12.12ubuntu1 [5090 B] 87s Get:29 http://ftpmaster.internal/ubuntu resolute/main s390x libdebhelper-perl all 13.24.2ubuntu1 [95.7 kB] 87s Get:30 http://ftpmaster.internal/ubuntu resolute/main s390x libtool all 2.5.4-7 [169 kB] 87s Get:31 http://ftpmaster.internal/ubuntu resolute/main s390x dh-autoreconf all 21 [12.5 kB] 87s Get:32 http://ftpmaster.internal/ubuntu resolute/main s390x libarchive-zip-perl all 1.68-1 [90.2 kB] 87s Get:33 http://ftpmaster.internal/ubuntu resolute/main s390x libfile-stripnondeterminism-perl all 1.15.0-1 [20.5 kB] 87s Get:34 http://ftpmaster.internal/ubuntu resolute/main s390x dh-strip-nondeterminism all 1.15.0-1 [5090 B] 87s Get:35 http://ftpmaster.internal/ubuntu resolute/main s390x debugedit s390x 1:5.2-3 [52.8 kB] 87s Get:36 http://ftpmaster.internal/ubuntu resolute/main s390x dwz s390x 0.16-2 [121 kB] 87s Get:37 http://ftpmaster.internal/ubuntu resolute/main s390x gettext s390x 0.23.2-1 [1062 kB] 87s Get:38 http://ftpmaster.internal/ubuntu resolute/main s390x intltool-debian all 0.35.0+20060710.6 [23.2 kB] 87s Get:39 http://ftpmaster.internal/ubuntu resolute/main s390x po-debconf all 1.0.21+nmu1 [233 kB] 87s Get:40 http://ftpmaster.internal/ubuntu resolute/main s390x debhelper all 13.24.2ubuntu1 [896 kB] 87s Get:41 http://ftpmaster.internal/ubuntu resolute/universe s390x dh-python all 6.20250414 [119 kB] 87s Get:42 http://ftpmaster.internal/ubuntu resolute/main s390x fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1 [516 kB] 87s Get:43 http://ftpmaster.internal/ubuntu resolute/main s390x libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 87s Get:44 http://ftpmaster.internal/ubuntu resolute/main s390x libjs-underscore all 1.13.4~dfsg+~1.11.4-3 [118 kB] 87s Get:45 http://ftpmaster.internal/ubuntu resolute/main s390x libjs-sphinxdoc all 8.2.3-1ubuntu2 [28.0 kB] 87s Get:46 http://ftpmaster.internal/ubuntu resolute/universe s390x pybuild-plugin-autopkgtest all 6.20250414 [1746 B] 87s Get:47 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pyproject-hooks all 1.2.0-1 [10.2 kB] 87s Get:48 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-wheel all 0.46.1-2 [22.1 kB] 87s Get:49 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-build all 1.2.2-4 [31.0 kB] 87s Get:50 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-installer all 0.7.0+dfsg1-3 [17.4 kB] 87s Get:51 http://ftpmaster.internal/ubuntu resolute/universe s390x pybuild-plugin-pyproject all 6.20250414 [1728 B] 87s Get:52 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-aiohappyeyeballs all 2.6.1-2 [11.1 kB] 87s Get:53 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-multidict s390x 6.4.3-1build1 [73.5 kB] 87s Get:54 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-propcache s390x 0.3.1-1build1 [56.4 kB] 87s Get:55 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-yarl s390x 1.22.0-1 [105 kB] 87s Get:56 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-async-timeout all 5.0.1-1 [6830 B] 87s Get:57 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-frozenlist s390x 1.8.0-1 [58.2 kB] 87s Get:58 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-aiosignal all 1.4.0-1 [5628 B] 87s Get:59 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-aiohttp s390x 3.11.16-1 [369 kB] 87s Get:60 http://ftpmaster.internal/ubuntu resolute/main s390x python3-all s390x 3.13.7-1 [886 B] 87s Get:61 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-sniffio all 1.3.1-1 [7262 B] 87s Get:62 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-anyio all 4.11.0-3 [72.6 kB] 87s Get:63 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-async-generator all 1.10-7 [18.1 kB] 87s Get:64 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-backoff all 2.2.1-2 [17.9 kB] 87s Get:65 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-graphql-core all 3.2.7-1 [125 kB] 87s Get:66 http://ftpmaster.internal/ubuntu resolute/main s390x sphinx-rtd-theme-common all 3.0.2+dfsg-3 [1013 kB] 87s Get:67 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-gql all 3.6.0~b4-1 [144 kB] 87s Get:68 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-iniconfig all 2.1.0-1 [6840 B] 87s Get:69 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pluggy all 1.6.0-1 [21.0 kB] 87s Get:70 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pytest all 8.3.5-2 [252 kB] 87s Get:71 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pytest-asyncio all 0.25.1-1 [17.0 kB] 87s Get:72 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-websockets s390x 15.0.1-1build1 [98.5 kB] 87s Get:73 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x python3-pytibber all 0.32.2-1 [14.9 kB] 88s Fetched 62.3 MB in 6s (10.7 MB/s) 88s Selecting previously unselected package fonts-lato. 88s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 61309 files and directories currently installed.) 88s Preparing to unpack .../00-fonts-lato_2.015-1_all.deb ... 88s Unpacking fonts-lato (2.015-1) ... 88s Selecting previously unselected package m4. 88s Preparing to unpack .../01-m4_1.4.20-2_s390x.deb ... 88s Unpacking m4 (1.4.20-2) ... 88s Selecting previously unselected package autoconf. 88s Preparing to unpack .../02-autoconf_2.72-3.1ubuntu1_all.deb ... 88s Unpacking autoconf (2.72-3.1ubuntu1) ... 88s Selecting previously unselected package autotools-dev. 88s Preparing to unpack .../03-autotools-dev_20240727.1_all.deb ... 88s Unpacking autotools-dev (20240727.1) ... 88s Selecting previously unselected package automake. 88s Preparing to unpack .../04-automake_1%3a1.18.1-2_all.deb ... 88s Unpacking automake (1:1.18.1-2) ... 88s Selecting previously unselected package autopoint. 88s Preparing to unpack .../05-autopoint_0.23.2-1_all.deb ... 88s Unpacking autopoint (0.23.2-1) ... 88s Selecting previously unselected package libisl23:s390x. 88s Preparing to unpack .../06-libisl23_0.27-1_s390x.deb ... 88s Unpacking libisl23:s390x (0.27-1) ... 88s Selecting previously unselected package libmpc3:s390x. 88s Preparing to unpack .../07-libmpc3_1.3.1-2_s390x.deb ... 88s Unpacking libmpc3:s390x (1.3.1-2) ... 88s Selecting previously unselected package cpp-15-s390x-linux-gnu. 88s Preparing to unpack .../08-cpp-15-s390x-linux-gnu_15.2.0-7ubuntu1_s390x.deb ... 88s Unpacking cpp-15-s390x-linux-gnu (15.2.0-7ubuntu1) ... 88s Selecting previously unselected package cpp-15. 88s Preparing to unpack .../09-cpp-15_15.2.0-7ubuntu1_s390x.deb ... 88s Unpacking cpp-15 (15.2.0-7ubuntu1) ... 88s Selecting previously unselected package cpp-s390x-linux-gnu. 88s Preparing to unpack .../10-cpp-s390x-linux-gnu_4%3a15.2.0-4ubuntu1_s390x.deb ... 88s Unpacking cpp-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 88s Selecting previously unselected package cpp. 88s Preparing to unpack .../11-cpp_4%3a15.2.0-4ubuntu1_s390x.deb ... 88s Unpacking cpp (4:15.2.0-4ubuntu1) ... 88s Selecting previously unselected package libcc1-0:s390x. 88s Preparing to unpack .../12-libcc1-0_15.2.0-7ubuntu1_s390x.deb ... 88s Unpacking libcc1-0:s390x (15.2.0-7ubuntu1) ... 88s Selecting previously unselected package libgomp1:s390x. 88s Preparing to unpack .../13-libgomp1_15.2.0-7ubuntu1_s390x.deb ... 88s Unpacking libgomp1:s390x (15.2.0-7ubuntu1) ... 88s Selecting previously unselected package libitm1:s390x. 88s Preparing to unpack .../14-libitm1_15.2.0-7ubuntu1_s390x.deb ... 88s Unpacking libitm1:s390x (15.2.0-7ubuntu1) ... 88s Selecting previously unselected package libasan8:s390x. 88s Preparing to unpack .../15-libasan8_15.2.0-7ubuntu1_s390x.deb ... 88s Unpacking libasan8:s390x (15.2.0-7ubuntu1) ... 88s Selecting previously unselected package libubsan1:s390x. 88s Preparing to unpack .../16-libubsan1_15.2.0-7ubuntu1_s390x.deb ... 88s Unpacking libubsan1:s390x (15.2.0-7ubuntu1) ... 88s Selecting previously unselected package libgcc-15-dev:s390x. 88s Preparing to unpack .../17-libgcc-15-dev_15.2.0-7ubuntu1_s390x.deb ... 88s Unpacking libgcc-15-dev:s390x (15.2.0-7ubuntu1) ... 89s Selecting previously unselected package gcc-15-s390x-linux-gnu. 89s Preparing to unpack .../18-gcc-15-s390x-linux-gnu_15.2.0-7ubuntu1_s390x.deb ... 89s Unpacking gcc-15-s390x-linux-gnu (15.2.0-7ubuntu1) ... 89s Selecting previously unselected package gcc-15. 89s Preparing to unpack .../19-gcc-15_15.2.0-7ubuntu1_s390x.deb ... 89s Unpacking gcc-15 (15.2.0-7ubuntu1) ... 89s Selecting previously unselected package gcc-s390x-linux-gnu. 89s Preparing to unpack .../20-gcc-s390x-linux-gnu_4%3a15.2.0-4ubuntu1_s390x.deb ... 89s Unpacking gcc-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 89s Selecting previously unselected package gcc. 89s Preparing to unpack .../21-gcc_4%3a15.2.0-4ubuntu1_s390x.deb ... 89s Unpacking gcc (4:15.2.0-4ubuntu1) ... 89s Selecting previously unselected package libstdc++-15-dev:s390x. 89s Preparing to unpack .../22-libstdc++-15-dev_15.2.0-7ubuntu1_s390x.deb ... 89s Unpacking libstdc++-15-dev:s390x (15.2.0-7ubuntu1) ... 89s Selecting previously unselected package g++-15-s390x-linux-gnu. 89s Preparing to unpack .../23-g++-15-s390x-linux-gnu_15.2.0-7ubuntu1_s390x.deb ... 89s Unpacking g++-15-s390x-linux-gnu (15.2.0-7ubuntu1) ... 89s Selecting previously unselected package g++-15. 89s Preparing to unpack .../24-g++-15_15.2.0-7ubuntu1_s390x.deb ... 89s Unpacking g++-15 (15.2.0-7ubuntu1) ... 89s Selecting previously unselected package g++-s390x-linux-gnu. 89s Preparing to unpack .../25-g++-s390x-linux-gnu_4%3a15.2.0-4ubuntu1_s390x.deb ... 89s Unpacking g++-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 89s Selecting previously unselected package g++. 89s Preparing to unpack .../26-g++_4%3a15.2.0-4ubuntu1_s390x.deb ... 89s Unpacking g++ (4:15.2.0-4ubuntu1) ... 89s Selecting previously unselected package build-essential. 89s Preparing to unpack .../27-build-essential_12.12ubuntu1_s390x.deb ... 89s Unpacking build-essential (12.12ubuntu1) ... 89s Selecting previously unselected package libdebhelper-perl. 89s Preparing to unpack .../28-libdebhelper-perl_13.24.2ubuntu1_all.deb ... 89s Unpacking libdebhelper-perl (13.24.2ubuntu1) ... 89s Selecting previously unselected package libtool. 89s Preparing to unpack .../29-libtool_2.5.4-7_all.deb ... 89s Unpacking libtool (2.5.4-7) ... 89s Selecting previously unselected package dh-autoreconf. 89s Preparing to unpack .../30-dh-autoreconf_21_all.deb ... 89s Unpacking dh-autoreconf (21) ... 89s Selecting previously unselected package libarchive-zip-perl. 89s Preparing to unpack .../31-libarchive-zip-perl_1.68-1_all.deb ... 89s Unpacking libarchive-zip-perl (1.68-1) ... 89s Selecting previously unselected package libfile-stripnondeterminism-perl. 89s Preparing to unpack .../32-libfile-stripnondeterminism-perl_1.15.0-1_all.deb ... 89s Unpacking libfile-stripnondeterminism-perl (1.15.0-1) ... 89s Selecting previously unselected package dh-strip-nondeterminism. 89s Preparing to unpack .../33-dh-strip-nondeterminism_1.15.0-1_all.deb ... 89s Unpacking dh-strip-nondeterminism (1.15.0-1) ... 89s Selecting previously unselected package debugedit. 89s Preparing to unpack .../34-debugedit_1%3a5.2-3_s390x.deb ... 89s Unpacking debugedit (1:5.2-3) ... 89s Selecting previously unselected package dwz. 89s Preparing to unpack .../35-dwz_0.16-2_s390x.deb ... 89s Unpacking dwz (0.16-2) ... 89s Selecting previously unselected package gettext. 89s Preparing to unpack .../36-gettext_0.23.2-1_s390x.deb ... 89s Unpacking gettext (0.23.2-1) ... 89s Selecting previously unselected package intltool-debian. 89s Preparing to unpack .../37-intltool-debian_0.35.0+20060710.6_all.deb ... 89s Unpacking intltool-debian (0.35.0+20060710.6) ... 89s Selecting previously unselected package po-debconf. 89s Preparing to unpack .../38-po-debconf_1.0.21+nmu1_all.deb ... 89s Unpacking po-debconf (1.0.21+nmu1) ... 89s Selecting previously unselected package debhelper. 89s Preparing to unpack .../39-debhelper_13.24.2ubuntu1_all.deb ... 89s Unpacking debhelper (13.24.2ubuntu1) ... 89s Selecting previously unselected package dh-python. 89s Preparing to unpack .../40-dh-python_6.20250414_all.deb ... 89s Unpacking dh-python (6.20250414) ... 89s Selecting previously unselected package fonts-font-awesome. 89s Preparing to unpack .../41-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1_all.deb ... 89s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1) ... 89s Selecting previously unselected package libjs-jquery. 89s Preparing to unpack .../42-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 89s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 89s Selecting previously unselected package libjs-underscore. 89s Preparing to unpack .../43-libjs-underscore_1.13.4~dfsg+~1.11.4-3_all.deb ... 89s Unpacking libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 89s Selecting previously unselected package libjs-sphinxdoc. 89s Preparing to unpack .../44-libjs-sphinxdoc_8.2.3-1ubuntu2_all.deb ... 89s Unpacking libjs-sphinxdoc (8.2.3-1ubuntu2) ... 89s Selecting previously unselected package pybuild-plugin-autopkgtest. 89s Preparing to unpack .../45-pybuild-plugin-autopkgtest_6.20250414_all.deb ... 89s Unpacking pybuild-plugin-autopkgtest (6.20250414) ... 89s Selecting previously unselected package python3-pyproject-hooks. 89s Preparing to unpack .../46-python3-pyproject-hooks_1.2.0-1_all.deb ... 89s Unpacking python3-pyproject-hooks (1.2.0-1) ... 89s Selecting previously unselected package python3-wheel. 89s Preparing to unpack .../47-python3-wheel_0.46.1-2_all.deb ... 89s Unpacking python3-wheel (0.46.1-2) ... 89s Selecting previously unselected package python3-build. 89s Preparing to unpack .../48-python3-build_1.2.2-4_all.deb ... 90s Unpacking python3-build (1.2.2-4) ... 90s Selecting previously unselected package python3-installer. 90s Preparing to unpack .../49-python3-installer_0.7.0+dfsg1-3_all.deb ... 90s Unpacking python3-installer (0.7.0+dfsg1-3) ... 90s Selecting previously unselected package pybuild-plugin-pyproject. 90s Preparing to unpack .../50-pybuild-plugin-pyproject_6.20250414_all.deb ... 90s Unpacking pybuild-plugin-pyproject (6.20250414) ... 90s Selecting previously unselected package python3-aiohappyeyeballs. 90s Preparing to unpack .../51-python3-aiohappyeyeballs_2.6.1-2_all.deb ... 90s Unpacking python3-aiohappyeyeballs (2.6.1-2) ... 90s Selecting previously unselected package python3-multidict. 90s Preparing to unpack .../52-python3-multidict_6.4.3-1build1_s390x.deb ... 90s Unpacking python3-multidict (6.4.3-1build1) ... 90s Selecting previously unselected package python3-propcache. 90s Preparing to unpack .../53-python3-propcache_0.3.1-1build1_s390x.deb ... 90s Unpacking python3-propcache (0.3.1-1build1) ... 90s Selecting previously unselected package python3-yarl. 90s Preparing to unpack .../54-python3-yarl_1.22.0-1_s390x.deb ... 90s Unpacking python3-yarl (1.22.0-1) ... 90s Selecting previously unselected package python3-async-timeout. 90s Preparing to unpack .../55-python3-async-timeout_5.0.1-1_all.deb ... 90s Unpacking python3-async-timeout (5.0.1-1) ... 90s Selecting previously unselected package python3-frozenlist. 90s Preparing to unpack .../56-python3-frozenlist_1.8.0-1_s390x.deb ... 90s Unpacking python3-frozenlist (1.8.0-1) ... 90s Selecting previously unselected package python3-aiosignal. 90s Preparing to unpack .../57-python3-aiosignal_1.4.0-1_all.deb ... 90s Unpacking python3-aiosignal (1.4.0-1) ... 90s Selecting previously unselected package python3-aiohttp. 90s Preparing to unpack .../58-python3-aiohttp_3.11.16-1_s390x.deb ... 90s Unpacking python3-aiohttp (3.11.16-1) ... 90s Selecting previously unselected package python3-all. 90s Preparing to unpack .../59-python3-all_3.13.7-1_s390x.deb ... 90s Unpacking python3-all (3.13.7-1) ... 90s Selecting previously unselected package python3-sniffio. 90s Preparing to unpack .../60-python3-sniffio_1.3.1-1_all.deb ... 90s Unpacking python3-sniffio (1.3.1-1) ... 90s Selecting previously unselected package python3-anyio. 90s Preparing to unpack .../61-python3-anyio_4.11.0-3_all.deb ... 90s Unpacking python3-anyio (4.11.0-3) ... 90s Selecting previously unselected package python3-async-generator. 90s Preparing to unpack .../62-python3-async-generator_1.10-7_all.deb ... 90s Unpacking python3-async-generator (1.10-7) ... 90s Selecting previously unselected package python3-backoff. 90s Preparing to unpack .../63-python3-backoff_2.2.1-2_all.deb ... 90s Unpacking python3-backoff (2.2.1-2) ... 90s Selecting previously unselected package python3-graphql-core. 90s Preparing to unpack .../64-python3-graphql-core_3.2.7-1_all.deb ... 90s Unpacking python3-graphql-core (3.2.7-1) ... 90s Selecting previously unselected package sphinx-rtd-theme-common. 90s Preparing to unpack .../65-sphinx-rtd-theme-common_3.0.2+dfsg-3_all.deb ... 90s Unpacking sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 90s Selecting previously unselected package python3-gql. 90s Preparing to unpack .../66-python3-gql_3.6.0~b4-1_all.deb ... 90s Unpacking python3-gql (3.6.0~b4-1) ... 90s Selecting previously unselected package python3-iniconfig. 90s Preparing to unpack .../67-python3-iniconfig_2.1.0-1_all.deb ... 90s Unpacking python3-iniconfig (2.1.0-1) ... 90s Selecting previously unselected package python3-pluggy. 90s Preparing to unpack .../68-python3-pluggy_1.6.0-1_all.deb ... 90s Unpacking python3-pluggy (1.6.0-1) ... 90s Selecting previously unselected package python3-pytest. 90s Preparing to unpack .../69-python3-pytest_8.3.5-2_all.deb ... 90s Unpacking python3-pytest (8.3.5-2) ... 90s Selecting previously unselected package python3-pytest-asyncio. 90s Preparing to unpack .../70-python3-pytest-asyncio_0.25.1-1_all.deb ... 90s Unpacking python3-pytest-asyncio (0.25.1-1) ... 90s Selecting previously unselected package python3-websockets. 90s Preparing to unpack .../71-python3-websockets_15.0.1-1build1_s390x.deb ... 90s Unpacking python3-websockets (15.0.1-1build1) ... 90s Selecting previously unselected package python3-pytibber. 90s Preparing to unpack .../72-python3-pytibber_0.32.2-1_all.deb ... 90s Unpacking python3-pytibber (0.32.2-1) ... 90s Setting up dh-python (6.20250414) ... 90s Setting up python3-iniconfig (2.1.0-1) ... 90s Setting up python3-sniffio (1.3.1-1) ... 90s Setting up fonts-lato (2.015-1) ... 90s Setting up python3-async-generator (1.10-7) ... 90s Setting up python3-anyio (4.11.0-3) ... 90s Setting up libarchive-zip-perl (1.68-1) ... 90s Setting up libdebhelper-perl (13.24.2ubuntu1) ... 90s Setting up m4 (1.4.20-2) ... 90s Setting up python3-all (3.13.7-1) ... 90s Setting up libgomp1:s390x (15.2.0-7ubuntu1) ... 90s Setting up python3-wheel (0.46.1-2) ... 91s Setting up python3-multidict (6.4.3-1build1) ... 91s Setting up python3-frozenlist (1.8.0-1) ... 91s Setting up python3-aiosignal (1.4.0-1) ... 91s Setting up python3-async-timeout (5.0.1-1) ... 91s Setting up autotools-dev (20240727.1) ... 91s Setting up python3-pyproject-hooks (1.2.0-1) ... 91s Setting up libmpc3:s390x (1.3.1-2) ... 91s Setting up autopoint (0.23.2-1) ... 91s Setting up python3-graphql-core (3.2.7-1) ... 91s Setting up python3-aiohappyeyeballs (2.6.1-2) ... 91s Setting up python3-installer (0.7.0+dfsg1-3) ... 91s Setting up autoconf (2.72-3.1ubuntu1) ... 91s Setting up python3-pluggy (1.6.0-1) ... 91s Setting up libubsan1:s390x (15.2.0-7ubuntu1) ... 91s Setting up dwz (0.16-2) ... 91s Setting up python3-propcache (0.3.1-1build1) ... 91s Setting up libasan8:s390x (15.2.0-7ubuntu1) ... 91s Setting up python3-backoff (2.2.1-2) ... 91s Setting up debugedit (1:5.2-3) ... 91s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 92s Setting up libisl23:s390x (0.27-1) ... 92s Setting up python3-build (1.2.2-4) ... 92s Setting up python3-yarl (1.22.0-1) ... 92s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1) ... 92s Setting up sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 92s Setting up libcc1-0:s390x (15.2.0-7ubuntu1) ... 92s Setting up libitm1:s390x (15.2.0-7ubuntu1) ... 92s Setting up libjs-underscore (1.13.4~dfsg+~1.11.4-3) ... 92s Setting up python3-websockets (15.0.1-1build1) ... 92s Setting up automake (1:1.18.1-2) ... 92s update-alternatives: using /usr/bin/automake-1.18 to provide /usr/bin/automake (automake) in auto mode 92s Setting up libfile-stripnondeterminism-perl (1.15.0-1) ... 92s Setting up gettext (0.23.2-1) ... 92s Setting up libgcc-15-dev:s390x (15.2.0-7ubuntu1) ... 92s Setting up pybuild-plugin-pyproject (6.20250414) ... 92s Setting up python3-pytest (8.3.5-2) ... 92s Setting up python3-aiohttp (3.11.16-1) ... 92s Setting up intltool-debian (0.35.0+20060710.6) ... 92s Setting up libstdc++-15-dev:s390x (15.2.0-7ubuntu1) ... 92s Setting up libjs-sphinxdoc (8.2.3-1ubuntu2) ... 92s Setting up python3-pytest-asyncio (0.25.1-1) ... 92s Setting up dh-strip-nondeterminism (1.15.0-1) ... 92s Setting up cpp-15-s390x-linux-gnu (15.2.0-7ubuntu1) ... 92s Setting up gcc-15-s390x-linux-gnu (15.2.0-7ubuntu1) ... 92s Setting up g++-15-s390x-linux-gnu (15.2.0-7ubuntu1) ... 92s Setting up cpp-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 92s Setting up po-debconf (1.0.21+nmu1) ... 92s Setting up gcc-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 92s Setting up python3-gql (3.6.0~b4-1) ... 92s Setting up cpp-15 (15.2.0-7ubuntu1) ... 92s Setting up cpp (4:15.2.0-4ubuntu1) ... 92s Setting up g++-s390x-linux-gnu (4:15.2.0-4ubuntu1) ... 92s Setting up python3-pytibber (0.32.2-1) ... 93s Setting up gcc-15 (15.2.0-7ubuntu1) ... 93s Setting up g++-15 (15.2.0-7ubuntu1) ... 93s Setting up libtool (2.5.4-7) ... 93s Setting up gcc (4:15.2.0-4ubuntu1) ... 93s Setting up dh-autoreconf (21) ... 93s Setting up g++ (4:15.2.0-4ubuntu1) ... 93s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 93s Setting up build-essential (12.12ubuntu1) ... 93s Setting up debhelper (13.24.2ubuntu1) ... 93s Setting up pybuild-plugin-autopkgtest (6.20250414) ... 93s Processing triggers for install-info (7.2-5) ... 93s Processing triggers for libc-bin (2.42-2ubuntu2) ... 93s Processing triggers for man-db (2.13.1-1) ... 95s autopkgtest [17:02:57]: test pybuild-autopkgtest: pybuild-autopkgtest 95s autopkgtest [17:02:57]: test pybuild-autopkgtest: [----------------------- 95s pybuild-autopkgtest 95s I: pybuild base:311: cd /tmp/autopkgtest.vewKIi/autopkgtest_tmp/build; python3.13 -m pytest -k "not test_logging_rt_subscribe" 95s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:207: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset. 95s The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session" 95s 95s warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET)) 95s ============================= test session starts ============================== 95s platform linux -- Python 3.13.9, pytest-8.3.5, pluggy-1.6.0 95s rootdir: /tmp/autopkgtest.vewKIi/autopkgtest_tmp/build 95s configfile: pyproject.toml 95s plugins: anyio-4.11.0, typeguard-4.4.2, asyncio-0.25.1 95s asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=None 95s collected 8 items / 1 deselected / 7 selected 95s 259s test/test_tibber.py FFFFFFF [100%] 259s 259s =================================== FAILURES =================================== 259s ____________________________ test_tibber_no_session ____________________________ 259s 259s self = , addr_infos = [] 259s req = 259s timeout = ClientTimeout(total=10, connect=None, sock_read=None, sock_connect=None, ceil_threshold=5) 259s client_error = 259s args = (functools.partial(, loop=<_UnixSelectorEventLoop running=False closed=False debug=False>),) 259s kwargs = {'server_hostname': 'api.tibber.com', 'ssl': } 259s 259s async def _wrap_create_connection( 259s self, 259s *args: Any, 259s addr_infos: List[aiohappyeyeballs.AddrInfoType], 259s req: ClientRequest, 259s timeout: "ClientTimeout", 259s client_error: Type[Exception] = ClientConnectorError, 259s **kwargs: Any, 259s ) -> Tuple[asyncio.Transport, ResponseHandler]: 259s try: 259s async with ceil_timeout( 259s timeout.sock_connect, ceil_threshold=timeout.ceil_threshold 259s ): 259s > sock = await aiohappyeyeballs.start_connection( 259s addr_infos=addr_infos, 259s local_addr_infos=self._local_addr_infos, 259s happy_eyeballs_delay=self._happy_eyeballs_delay, 259s interleave=self._interleave, 259s loop=self._loop, 259s ) 259s 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1115: 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:122: in start_connection 259s raise first_exception 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:73: in start_connection 259s sock = await _connect_sock( 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:208: in _connect_sock 259s await loop.sock_connect(sock, address) 259s /usr/lib/python3.13/asyncio/selector_events.py:641: in sock_connect 259s return await fut 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s 259s self = <_UnixSelectorEventLoop running=False closed=False debug=False> 259s fut = None, sock = 259s address = ('52.50.48.96', 443) 259s 259s def _sock_connect_cb(self, fut, sock, address): 259s if fut.done(): 259s return 259s 259s try: 259s err = sock.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR) 259s if err != 0: 259s # Jump to any except clause below. 259s > raise OSError(err, f'Connect call failed {address}') 259s E ConnectionRefusedError: [Errno 111] Connect call failed ('52.50.48.96', 443) 259s 259s /usr/lib/python3.13/asyncio/selector_events.py:681: ConnectionRefusedError 259s 259s The above exception was the direct cause of the following exception: 259s 259s @pytest.mark.asyncio 259s async def test_tibber_no_session(): 259s tibber_connection = tibber.Tibber( 259s user_agent="test", 259s ) 259s > await tibber_connection.update_info() 259s 259s test/test_tibber.py:20: 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s /usr/lib/python3/dist-packages/tibber/__init__.py:139: in update_info 259s if (data := await self.execute(INFO)) is None: 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:97: in execute 259s resp = await self.websession.post( 259s /usr/lib/python3/dist-packages/aiohttp/client.py:703: in _request 259s conn = await self._connector.connect( 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:548: in connect 259s proto = await self._create_connection(req, traces, timeout) 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1056: in _create_connection 259s _, proto = await self._create_direct_connection(req, traces, timeout) 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1400: in _create_direct_connection 259s raise last_exc 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1369: in _create_direct_connection 259s transp, proto = await self._wrap_create_connection( 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s 259s self = , addr_infos = [] 259s req = 259s timeout = ClientTimeout(total=10, connect=None, sock_read=None, sock_connect=None, ceil_threshold=5) 259s client_error = 259s args = (functools.partial(, loop=<_UnixSelectorEventLoop running=False closed=False debug=False>),) 259s kwargs = {'server_hostname': 'api.tibber.com', 'ssl': } 259s 259s async def _wrap_create_connection( 259s self, 259s *args: Any, 259s addr_infos: List[aiohappyeyeballs.AddrInfoType], 259s req: ClientRequest, 259s timeout: "ClientTimeout", 259s client_error: Type[Exception] = ClientConnectorError, 259s **kwargs: Any, 259s ) -> Tuple[asyncio.Transport, ResponseHandler]: 259s try: 259s async with ceil_timeout( 259s timeout.sock_connect, ceil_threshold=timeout.ceil_threshold 259s ): 259s sock = await aiohappyeyeballs.start_connection( 259s addr_infos=addr_infos, 259s local_addr_infos=self._local_addr_infos, 259s happy_eyeballs_delay=self._happy_eyeballs_delay, 259s interleave=self._interleave, 259s loop=self._loop, 259s ) 259s return await self._loop.create_connection(*args, **kwargs, sock=sock) 259s except cert_errors as exc: 259s raise ClientConnectorCertificateError(req.connection_key, exc) from exc 259s except ssl_errors as exc: 259s raise ClientConnectorSSLError(req.connection_key, exc) from exc 259s except OSError as exc: 259s if exc.errno is None and isinstance(exc, asyncio.TimeoutError): 259s raise 259s > raise client_error(req.connection_key, exc) from exc 259s E aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.tibber.com:443 ssl:default [Connect call failed ('52.50.48.96', 443)] 259s 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1130: ClientConnectorError 259s ------------------------------ Captured log call ------------------------------- 259s ERROR tibber:__init__.py:118 Error connecting to Tibber 259s Traceback (most recent call last): 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1115, in _wrap_create_connection 259s sock = await aiohappyeyeballs.start_connection( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<5 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 122, in start_connection 259s raise first_exception 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 73, in start_connection 259s sock = await _connect_sock( 259s ^^^^^^^^^^^^^^^^^^^^ 259s ...<6 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 208, in _connect_sock 259s await loop.sock_connect(sock, address) 259s File "/usr/lib/python3.13/asyncio/selector_events.py", line 641, in sock_connect 259s return await fut 259s ^^^^^^^^^ 259s File "/usr/lib/python3.13/asyncio/selector_events.py", line 681, in _sock_connect_cb 259s raise OSError(err, f'Connect call failed {address}') 259s ConnectionRefusedError: [Errno 111] Connect call failed ('52.50.48.96', 443) 259s 259s The above exception was the direct cause of the following exception: 259s 259s Traceback (most recent call last): 259s File "/usr/lib/python3/dist-packages/tibber/__init__.py", line 97, in execute 259s resp = await self.websession.post( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<7 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 703, in _request 259s conn = await self._connector.connect( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s req, traces=traces, timeout=real_timeout 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 548, in connect 259s proto = await self._create_connection(req, traces, timeout) 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1056, in _create_connection 259s _, proto = await self._create_direct_connection(req, traces, timeout) 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1400, in _create_direct_connection 259s raise last_exc 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1369, in _create_direct_connection 259s transp, proto = await self._wrap_create_connection( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<7 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1130, in _wrap_create_connection 259s raise client_error(req.connection_key, exc) from exc 259s aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.tibber.com:443 ssl:default [Connect call failed ('52.50.48.96', 443)] 259s _________________________________ test_tibber __________________________________ 259s 259s self = , addr_infos = [] 259s req = 259s timeout = ClientTimeout(total=10, connect=None, sock_read=None, sock_connect=None, ceil_threshold=5) 259s client_error = 259s args = (functools.partial(, loop=<_UnixSelectorEventLoop running=False closed=False debug=False>),) 259s kwargs = {'server_hostname': 'api.tibber.com', 'ssl': } 259s 259s async def _wrap_create_connection( 259s self, 259s *args: Any, 259s addr_infos: List[aiohappyeyeballs.AddrInfoType], 259s req: ClientRequest, 259s timeout: "ClientTimeout", 259s client_error: Type[Exception] = ClientConnectorError, 259s **kwargs: Any, 259s ) -> Tuple[asyncio.Transport, ResponseHandler]: 259s try: 259s async with ceil_timeout( 259s timeout.sock_connect, ceil_threshold=timeout.ceil_threshold 259s ): 259s > sock = await aiohappyeyeballs.start_connection( 259s addr_infos=addr_infos, 259s local_addr_infos=self._local_addr_infos, 259s happy_eyeballs_delay=self._happy_eyeballs_delay, 259s interleave=self._interleave, 259s loop=self._loop, 259s ) 259s 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1115: 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:122: in start_connection 259s raise first_exception 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:73: in start_connection 259s sock = await _connect_sock( 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:208: in _connect_sock 259s await loop.sock_connect(sock, address) 259s /usr/lib/python3.13/asyncio/selector_events.py:641: in sock_connect 259s return await fut 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s 259s self = <_UnixSelectorEventLoop running=False closed=False debug=False> 259s fut = None, sock = 259s address = ('108.128.250.37', 443) 259s 259s def _sock_connect_cb(self, fut, sock, address): 259s if fut.done(): 259s return 259s 259s try: 259s err = sock.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR) 259s if err != 0: 259s # Jump to any except clause below. 259s > raise OSError(err, f'Connect call failed {address}') 259s E ConnectionRefusedError: [Errno 111] Connect call failed ('108.128.250.37', 443) 259s 259s /usr/lib/python3.13/asyncio/selector_events.py:681: ConnectionRefusedError 259s 259s The above exception was the direct cause of the following exception: 259s 259s @pytest.mark.asyncio 259s async def test_tibber(): 259s async with aiohttp.ClientSession() as session: 259s tibber_connection = tibber.Tibber( 259s websession=session, 259s user_agent="test", 259s ) 259s > await tibber_connection.update_info() 259s 259s test/test_tibber.py:32: 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s /usr/lib/python3/dist-packages/tibber/__init__.py:139: in update_info 259s if (data := await self.execute(INFO)) is None: 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:97: in execute 259s resp = await self.websession.post( 259s /usr/lib/python3/dist-packages/aiohttp/client.py:703: in _request 259s conn = await self._connector.connect( 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:548: in connect 259s proto = await self._create_connection(req, traces, timeout) 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1056: in _create_connection 259s _, proto = await self._create_direct_connection(req, traces, timeout) 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1400: in _create_direct_connection 259s raise last_exc 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1369: in _create_direct_connection 259s transp, proto = await self._wrap_create_connection( 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s 259s self = , addr_infos = [] 259s req = 259s timeout = ClientTimeout(total=10, connect=None, sock_read=None, sock_connect=None, ceil_threshold=5) 259s client_error = 259s args = (functools.partial(, loop=<_UnixSelectorEventLoop running=False closed=False debug=False>),) 259s kwargs = {'server_hostname': 'api.tibber.com', 'ssl': } 259s 259s async def _wrap_create_connection( 259s self, 259s *args: Any, 259s addr_infos: List[aiohappyeyeballs.AddrInfoType], 259s req: ClientRequest, 259s timeout: "ClientTimeout", 259s client_error: Type[Exception] = ClientConnectorError, 259s **kwargs: Any, 259s ) -> Tuple[asyncio.Transport, ResponseHandler]: 259s try: 259s async with ceil_timeout( 259s timeout.sock_connect, ceil_threshold=timeout.ceil_threshold 259s ): 259s sock = await aiohappyeyeballs.start_connection( 259s addr_infos=addr_infos, 259s local_addr_infos=self._local_addr_infos, 259s happy_eyeballs_delay=self._happy_eyeballs_delay, 259s interleave=self._interleave, 259s loop=self._loop, 259s ) 259s return await self._loop.create_connection(*args, **kwargs, sock=sock) 259s except cert_errors as exc: 259s raise ClientConnectorCertificateError(req.connection_key, exc) from exc 259s except ssl_errors as exc: 259s raise ClientConnectorSSLError(req.connection_key, exc) from exc 259s except OSError as exc: 259s if exc.errno is None and isinstance(exc, asyncio.TimeoutError): 259s raise 259s > raise client_error(req.connection_key, exc) from exc 259s E aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.tibber.com:443 ssl:default [Connect call failed ('108.128.250.37', 443)] 259s 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1130: ClientConnectorError 259s ------------------------------ Captured log call ------------------------------- 259s ERROR tibber:__init__.py:118 Error connecting to Tibber 259s Traceback (most recent call last): 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1115, in _wrap_create_connection 259s sock = await aiohappyeyeballs.start_connection( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<5 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 122, in start_connection 259s raise first_exception 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 73, in start_connection 259s sock = await _connect_sock( 259s ^^^^^^^^^^^^^^^^^^^^ 259s ...<6 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 208, in _connect_sock 259s await loop.sock_connect(sock, address) 259s File "/usr/lib/python3.13/asyncio/selector_events.py", line 641, in sock_connect 259s return await fut 259s ^^^^^^^^^ 259s File "/usr/lib/python3.13/asyncio/selector_events.py", line 681, in _sock_connect_cb 259s raise OSError(err, f'Connect call failed {address}') 259s ConnectionRefusedError: [Errno 111] Connect call failed ('108.128.250.37', 443) 259s 259s The above exception was the direct cause of the following exception: 259s 259s Traceback (most recent call last): 259s File "/usr/lib/python3/dist-packages/tibber/__init__.py", line 97, in execute 259s resp = await self.websession.post( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<7 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 703, in _request 259s conn = await self._connector.connect( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s req, traces=traces, timeout=real_timeout 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 548, in connect 259s proto = await self._create_connection(req, traces, timeout) 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1056, in _create_connection 259s _, proto = await self._create_direct_connection(req, traces, timeout) 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1400, in _create_direct_connection 259s raise last_exc 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1369, in _create_direct_connection 259s transp, proto = await self._wrap_create_connection( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<7 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1130, in _wrap_create_connection 259s raise client_error(req.connection_key, exc) from exc 259s aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.tibber.com:443 ssl:default [Connect call failed ('108.128.250.37', 443)] 259s __________________________ test_tibber_invalid_token ___________________________ 259s 259s self = , addr_infos = [] 259s req = 259s timeout = ClientTimeout(total=10, connect=None, sock_read=None, sock_connect=None, ceil_threshold=5) 259s client_error = 259s args = (functools.partial(, loop=<_UnixSelectorEventLoop running=False closed=False debug=False>),) 259s kwargs = {'server_hostname': 'api.tibber.com', 'ssl': } 259s 259s async def _wrap_create_connection( 259s self, 259s *args: Any, 259s addr_infos: List[aiohappyeyeballs.AddrInfoType], 259s req: ClientRequest, 259s timeout: "ClientTimeout", 259s client_error: Type[Exception] = ClientConnectorError, 259s **kwargs: Any, 259s ) -> Tuple[asyncio.Transport, ResponseHandler]: 259s try: 259s async with ceil_timeout( 259s timeout.sock_connect, ceil_threshold=timeout.ceil_threshold 259s ): 259s > sock = await aiohappyeyeballs.start_connection( 259s addr_infos=addr_infos, 259s local_addr_infos=self._local_addr_infos, 259s happy_eyeballs_delay=self._happy_eyeballs_delay, 259s interleave=self._interleave, 259s loop=self._loop, 259s ) 259s 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1115: 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:122: in start_connection 259s raise first_exception 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:73: in start_connection 259s sock = await _connect_sock( 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:208: in _connect_sock 259s await loop.sock_connect(sock, address) 259s /usr/lib/python3.13/asyncio/selector_events.py:641: in sock_connect 259s return await fut 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s 259s self = <_UnixSelectorEventLoop running=False closed=False debug=False> 259s fut = None, sock = 259s address = ('52.50.48.96', 443) 259s 259s def _sock_connect_cb(self, fut, sock, address): 259s if fut.done(): 259s return 259s 259s try: 259s err = sock.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR) 259s if err != 0: 259s # Jump to any except clause below. 259s > raise OSError(err, f'Connect call failed {address}') 259s E ConnectionRefusedError: [Errno 111] Connect call failed ('52.50.48.96', 443) 259s 259s /usr/lib/python3.13/asyncio/selector_events.py:681: ConnectionRefusedError 259s 259s The above exception was the direct cause of the following exception: 259s 259s @pytest.mark.asyncio 259s async def test_tibber_invalid_token(): 259s async with aiohttp.ClientSession() as session: 259s tibber_connection = tibber.Tibber( 259s access_token="INVALID_TOKEN", 259s websession=session, 259s user_agent="test", 259s ) 259s with pytest.raises(InvalidLoginError, match="invalid token"): 259s > await tibber_connection.update_info() 259s 259s test/test_tibber.py:86: 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s /usr/lib/python3/dist-packages/tibber/__init__.py:139: in update_info 259s if (data := await self.execute(INFO)) is None: 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:97: in execute 259s resp = await self.websession.post( 259s /usr/lib/python3/dist-packages/aiohttp/client.py:703: in _request 259s conn = await self._connector.connect( 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:548: in connect 259s proto = await self._create_connection(req, traces, timeout) 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1056: in _create_connection 259s _, proto = await self._create_direct_connection(req, traces, timeout) 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1400: in _create_direct_connection 259s raise last_exc 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1369: in _create_direct_connection 259s transp, proto = await self._wrap_create_connection( 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s 259s self = , addr_infos = [] 259s req = 259s timeout = ClientTimeout(total=10, connect=None, sock_read=None, sock_connect=None, ceil_threshold=5) 259s client_error = 259s args = (functools.partial(, loop=<_UnixSelectorEventLoop running=False closed=False debug=False>),) 259s kwargs = {'server_hostname': 'api.tibber.com', 'ssl': } 259s 259s async def _wrap_create_connection( 259s self, 259s *args: Any, 259s addr_infos: List[aiohappyeyeballs.AddrInfoType], 259s req: ClientRequest, 259s timeout: "ClientTimeout", 259s client_error: Type[Exception] = ClientConnectorError, 259s **kwargs: Any, 259s ) -> Tuple[asyncio.Transport, ResponseHandler]: 259s try: 259s async with ceil_timeout( 259s timeout.sock_connect, ceil_threshold=timeout.ceil_threshold 259s ): 259s sock = await aiohappyeyeballs.start_connection( 259s addr_infos=addr_infos, 259s local_addr_infos=self._local_addr_infos, 259s happy_eyeballs_delay=self._happy_eyeballs_delay, 259s interleave=self._interleave, 259s loop=self._loop, 259s ) 259s return await self._loop.create_connection(*args, **kwargs, sock=sock) 259s except cert_errors as exc: 259s raise ClientConnectorCertificateError(req.connection_key, exc) from exc 259s except ssl_errors as exc: 259s raise ClientConnectorSSLError(req.connection_key, exc) from exc 259s except OSError as exc: 259s if exc.errno is None and isinstance(exc, asyncio.TimeoutError): 259s raise 259s > raise client_error(req.connection_key, exc) from exc 259s E aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.tibber.com:443 ssl:default [Connect call failed ('52.50.48.96', 443)] 259s 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1130: ClientConnectorError 259s ------------------------------ Captured log call ------------------------------- 259s ERROR tibber:__init__.py:118 Error connecting to Tibber 259s Traceback (most recent call last): 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1115, in _wrap_create_connection 259s sock = await aiohappyeyeballs.start_connection( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<5 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 122, in start_connection 259s raise first_exception 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 73, in start_connection 259s sock = await _connect_sock( 259s ^^^^^^^^^^^^^^^^^^^^ 259s ...<6 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 208, in _connect_sock 259s await loop.sock_connect(sock, address) 259s File "/usr/lib/python3.13/asyncio/selector_events.py", line 641, in sock_connect 259s return await fut 259s ^^^^^^^^^ 259s File "/usr/lib/python3.13/asyncio/selector_events.py", line 681, in _sock_connect_cb 259s raise OSError(err, f'Connect call failed {address}') 259s ConnectionRefusedError: [Errno 111] Connect call failed ('52.50.48.96', 443) 259s 259s The above exception was the direct cause of the following exception: 259s 259s Traceback (most recent call last): 259s File "/usr/lib/python3/dist-packages/tibber/__init__.py", line 97, in execute 259s resp = await self.websession.post( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<7 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 703, in _request 259s conn = await self._connector.connect( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s req, traces=traces, timeout=real_timeout 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 548, in connect 259s proto = await self._create_connection(req, traces, timeout) 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1056, in _create_connection 259s _, proto = await self._create_direct_connection(req, traces, timeout) 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1400, in _create_direct_connection 259s raise last_exc 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1369, in _create_direct_connection 259s transp, proto = await self._wrap_create_connection( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<7 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1130, in _wrap_create_connection 259s raise client_error(req.connection_key, exc) from exc 259s aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.tibber.com:443 ssl:default [Connect call failed ('52.50.48.96', 443)] 259s __________________________ test_tibber_invalid_query ___________________________ 259s 259s self = , addr_infos = [] 259s req = 259s timeout = ClientTimeout(total=10, connect=None, sock_read=None, sock_connect=None, ceil_threshold=5) 259s client_error = 259s args = (functools.partial(, loop=<_UnixSelectorEventLoop running=False closed=False debug=False>),) 259s kwargs = {'server_hostname': 'api.tibber.com', 'ssl': } 259s 259s async def _wrap_create_connection( 259s self, 259s *args: Any, 259s addr_infos: List[aiohappyeyeballs.AddrInfoType], 259s req: ClientRequest, 259s timeout: "ClientTimeout", 259s client_error: Type[Exception] = ClientConnectorError, 259s **kwargs: Any, 259s ) -> Tuple[asyncio.Transport, ResponseHandler]: 259s try: 259s async with ceil_timeout( 259s timeout.sock_connect, ceil_threshold=timeout.ceil_threshold 259s ): 259s > sock = await aiohappyeyeballs.start_connection( 259s addr_infos=addr_infos, 259s local_addr_infos=self._local_addr_infos, 259s happy_eyeballs_delay=self._happy_eyeballs_delay, 259s interleave=self._interleave, 259s loop=self._loop, 259s ) 259s 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1115: 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:122: in start_connection 259s raise first_exception 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:73: in start_connection 259s sock = await _connect_sock( 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:208: in _connect_sock 259s await loop.sock_connect(sock, address) 259s /usr/lib/python3.13/asyncio/selector_events.py:641: in sock_connect 259s return await fut 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s 259s self = <_UnixSelectorEventLoop running=False closed=False debug=False> 259s fut = None, sock = 259s address = ('52.50.48.96', 443) 259s 259s def _sock_connect_cb(self, fut, sock, address): 259s if fut.done(): 259s return 259s 259s try: 259s err = sock.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR) 259s if err != 0: 259s # Jump to any except clause below. 259s > raise OSError(err, f'Connect call failed {address}') 259s E ConnectionRefusedError: [Errno 111] Connect call failed ('52.50.48.96', 443) 259s 259s /usr/lib/python3.13/asyncio/selector_events.py:681: ConnectionRefusedError 259s 259s The above exception was the direct cause of the following exception: 259s 259s @pytest.mark.asyncio 259s async def test_tibber_invalid_query(): 259s async with aiohttp.ClientSession() as session: 259s tibber_connection = tibber.Tibber( 259s websession=session, 259s user_agent="test", 259s ) 259s 259s with pytest.raises(FatalHttpExceptionError, match="Syntax Error*"): 259s > await tibber_connection.execute("invalidquery") 259s 259s test/test_tibber.py:100: 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:97: in execute 259s resp = await self.websession.post( 259s /usr/lib/python3/dist-packages/aiohttp/client.py:703: in _request 259s conn = await self._connector.connect( 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:548: in connect 259s proto = await self._create_connection(req, traces, timeout) 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1056: in _create_connection 259s _, proto = await self._create_direct_connection(req, traces, timeout) 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1400: in _create_direct_connection 259s raise last_exc 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1369: in _create_direct_connection 259s transp, proto = await self._wrap_create_connection( 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s 259s self = , addr_infos = [] 259s req = 259s timeout = ClientTimeout(total=10, connect=None, sock_read=None, sock_connect=None, ceil_threshold=5) 259s client_error = 259s args = (functools.partial(, loop=<_UnixSelectorEventLoop running=False closed=False debug=False>),) 259s kwargs = {'server_hostname': 'api.tibber.com', 'ssl': } 259s 259s async def _wrap_create_connection( 259s self, 259s *args: Any, 259s addr_infos: List[aiohappyeyeballs.AddrInfoType], 259s req: ClientRequest, 259s timeout: "ClientTimeout", 259s client_error: Type[Exception] = ClientConnectorError, 259s **kwargs: Any, 259s ) -> Tuple[asyncio.Transport, ResponseHandler]: 259s try: 259s async with ceil_timeout( 259s timeout.sock_connect, ceil_threshold=timeout.ceil_threshold 259s ): 259s sock = await aiohappyeyeballs.start_connection( 259s addr_infos=addr_infos, 259s local_addr_infos=self._local_addr_infos, 259s happy_eyeballs_delay=self._happy_eyeballs_delay, 259s interleave=self._interleave, 259s loop=self._loop, 259s ) 259s return await self._loop.create_connection(*args, **kwargs, sock=sock) 259s except cert_errors as exc: 259s raise ClientConnectorCertificateError(req.connection_key, exc) from exc 259s except ssl_errors as exc: 259s raise ClientConnectorSSLError(req.connection_key, exc) from exc 259s except OSError as exc: 259s if exc.errno is None and isinstance(exc, asyncio.TimeoutError): 259s raise 259s > raise client_error(req.connection_key, exc) from exc 259s E aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.tibber.com:443 ssl:default [Connect call failed ('52.50.48.96', 443)] 259s 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1130: ClientConnectorError 259s ------------------------------ Captured log call ------------------------------- 259s ERROR tibber:__init__.py:118 Error connecting to Tibber 259s Traceback (most recent call last): 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1115, in _wrap_create_connection 259s sock = await aiohappyeyeballs.start_connection( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<5 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 122, in start_connection 259s raise first_exception 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 73, in start_connection 259s sock = await _connect_sock( 259s ^^^^^^^^^^^^^^^^^^^^ 259s ...<6 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 208, in _connect_sock 259s await loop.sock_connect(sock, address) 259s File "/usr/lib/python3.13/asyncio/selector_events.py", line 641, in sock_connect 259s return await fut 259s ^^^^^^^^^ 259s File "/usr/lib/python3.13/asyncio/selector_events.py", line 681, in _sock_connect_cb 259s raise OSError(err, f'Connect call failed {address}') 259s ConnectionRefusedError: [Errno 111] Connect call failed ('52.50.48.96', 443) 259s 259s The above exception was the direct cause of the following exception: 259s 259s Traceback (most recent call last): 259s File "/usr/lib/python3/dist-packages/tibber/__init__.py", line 97, in execute 259s resp = await self.websession.post( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<7 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 703, in _request 259s conn = await self._connector.connect( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s req, traces=traces, timeout=real_timeout 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 548, in connect 259s proto = await self._create_connection(req, traces, timeout) 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1056, in _create_connection 259s _, proto = await self._create_direct_connection(req, traces, timeout) 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1400, in _create_direct_connection 259s raise last_exc 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1369, in _create_direct_connection 259s transp, proto = await self._wrap_create_connection( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<7 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1130, in _wrap_create_connection 259s raise client_error(req.connection_key, exc) from exc 259s aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.tibber.com:443 ssl:default [Connect call failed ('52.50.48.96', 443)] 259s ___________________________ test_tibber_notification ___________________________ 259s 259s self = , addr_infos = [] 259s req = 259s timeout = ClientTimeout(total=10, connect=None, sock_read=None, sock_connect=None, ceil_threshold=5) 259s client_error = 259s args = (functools.partial(, loop=<_UnixSelectorEventLoop running=False closed=False debug=False>),) 259s kwargs = {'server_hostname': 'api.tibber.com', 'ssl': } 259s 259s async def _wrap_create_connection( 259s self, 259s *args: Any, 259s addr_infos: List[aiohappyeyeballs.AddrInfoType], 259s req: ClientRequest, 259s timeout: "ClientTimeout", 259s client_error: Type[Exception] = ClientConnectorError, 259s **kwargs: Any, 259s ) -> Tuple[asyncio.Transport, ResponseHandler]: 259s try: 259s async with ceil_timeout( 259s timeout.sock_connect, ceil_threshold=timeout.ceil_threshold 259s ): 259s > sock = await aiohappyeyeballs.start_connection( 259s addr_infos=addr_infos, 259s local_addr_infos=self._local_addr_infos, 259s happy_eyeballs_delay=self._happy_eyeballs_delay, 259s interleave=self._interleave, 259s loop=self._loop, 259s ) 259s 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1115: 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:122: in start_connection 259s raise first_exception 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:73: in start_connection 259s sock = await _connect_sock( 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:208: in _connect_sock 259s await loop.sock_connect(sock, address) 259s /usr/lib/python3.13/asyncio/selector_events.py:641: in sock_connect 259s return await fut 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s 259s self = <_UnixSelectorEventLoop running=False closed=False debug=False> 259s fut = None, sock = 259s address = ('52.50.48.96', 443) 259s 259s def _sock_connect_cb(self, fut, sock, address): 259s if fut.done(): 259s return 259s 259s try: 259s err = sock.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR) 259s if err != 0: 259s # Jump to any except clause below. 259s > raise OSError(err, f'Connect call failed {address}') 259s E ConnectionRefusedError: [Errno 111] Connect call failed ('52.50.48.96', 443) 259s 259s /usr/lib/python3.13/asyncio/selector_events.py:681: ConnectionRefusedError 259s 259s The above exception was the direct cause of the following exception: 259s 259s @pytest.mark.asyncio 259s async def test_tibber_notification(): 259s async with aiohttp.ClientSession() as session: 259s tibber_connection = tibber.Tibber( 259s websession=session, 259s user_agent="test", 259s ) 259s with pytest.raises(NotForDemoUserError, match="operation not allowed for demo user"): 259s > await tibber_connection.send_notification("Test title", "message") 259s 259s test/test_tibber.py:114: 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s /usr/lib/python3/dist-packages/tibber/__init__.py:188: in send_notification 259s res := await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:97: in execute 259s resp = await self.websession.post( 259s /usr/lib/python3/dist-packages/aiohttp/client.py:703: in _request 259s conn = await self._connector.connect( 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:548: in connect 259s proto = await self._create_connection(req, traces, timeout) 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1056: in _create_connection 259s _, proto = await self._create_direct_connection(req, traces, timeout) 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1400: in _create_direct_connection 259s raise last_exc 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1369: in _create_direct_connection 259s transp, proto = await self._wrap_create_connection( 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s 259s self = , addr_infos = [] 259s req = 259s timeout = ClientTimeout(total=10, connect=None, sock_read=None, sock_connect=None, ceil_threshold=5) 259s client_error = 259s args = (functools.partial(, loop=<_UnixSelectorEventLoop running=False closed=False debug=False>),) 259s kwargs = {'server_hostname': 'api.tibber.com', 'ssl': } 259s 259s async def _wrap_create_connection( 259s self, 259s *args: Any, 259s addr_infos: List[aiohappyeyeballs.AddrInfoType], 259s req: ClientRequest, 259s timeout: "ClientTimeout", 259s client_error: Type[Exception] = ClientConnectorError, 259s **kwargs: Any, 259s ) -> Tuple[asyncio.Transport, ResponseHandler]: 259s try: 259s async with ceil_timeout( 259s timeout.sock_connect, ceil_threshold=timeout.ceil_threshold 259s ): 259s sock = await aiohappyeyeballs.start_connection( 259s addr_infos=addr_infos, 259s local_addr_infos=self._local_addr_infos, 259s happy_eyeballs_delay=self._happy_eyeballs_delay, 259s interleave=self._interleave, 259s loop=self._loop, 259s ) 259s return await self._loop.create_connection(*args, **kwargs, sock=sock) 259s except cert_errors as exc: 259s raise ClientConnectorCertificateError(req.connection_key, exc) from exc 259s except ssl_errors as exc: 259s raise ClientConnectorSSLError(req.connection_key, exc) from exc 259s except OSError as exc: 259s if exc.errno is None and isinstance(exc, asyncio.TimeoutError): 259s raise 259s > raise client_error(req.connection_key, exc) from exc 259s E aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.tibber.com:443 ssl:default [Connect call failed ('52.50.48.96', 443)] 259s 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1130: ClientConnectorError 259s ------------------------------ Captured log call ------------------------------- 259s ERROR tibber:__init__.py:118 Error connecting to Tibber 259s Traceback (most recent call last): 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1115, in _wrap_create_connection 259s sock = await aiohappyeyeballs.start_connection( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<5 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 122, in start_connection 259s raise first_exception 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 73, in start_connection 259s sock = await _connect_sock( 259s ^^^^^^^^^^^^^^^^^^^^ 259s ...<6 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 208, in _connect_sock 259s await loop.sock_connect(sock, address) 259s File "/usr/lib/python3.13/asyncio/selector_events.py", line 641, in sock_connect 259s return await fut 259s ^^^^^^^^^ 259s File "/usr/lib/python3.13/asyncio/selector_events.py", line 681, in _sock_connect_cb 259s raise OSError(err, f'Connect call failed {address}') 259s ConnectionRefusedError: [Errno 111] Connect call failed ('52.50.48.96', 443) 259s 259s The above exception was the direct cause of the following exception: 259s 259s Traceback (most recent call last): 259s File "/usr/lib/python3/dist-packages/tibber/__init__.py", line 97, in execute 259s resp = await self.websession.post( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<7 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 703, in _request 259s conn = await self._connector.connect( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s req, traces=traces, timeout=real_timeout 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 548, in connect 259s proto = await self._create_connection(req, traces, timeout) 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1056, in _create_connection 259s _, proto = await self._create_direct_connection(req, traces, timeout) 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1400, in _create_direct_connection 259s raise last_exc 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1369, in _create_direct_connection 259s transp, proto = await self._wrap_create_connection( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<7 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1130, in _wrap_create_connection 259s raise client_error(req.connection_key, exc) from exc 259s aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.tibber.com:443 ssl:default [Connect call failed ('52.50.48.96', 443)] 259s ________________________ test_tibber_current_price_rank ________________________ 259s 259s self = , addr_infos = [] 259s req = 259s timeout = ClientTimeout(total=10, connect=None, sock_read=None, sock_connect=None, ceil_threshold=5) 259s client_error = 259s args = (functools.partial(, loop=<_UnixSelectorEventLoop running=False closed=False debug=False>),) 259s kwargs = {'server_hostname': 'api.tibber.com', 'ssl': } 259s 259s async def _wrap_create_connection( 259s self, 259s *args: Any, 259s addr_infos: List[aiohappyeyeballs.AddrInfoType], 259s req: ClientRequest, 259s timeout: "ClientTimeout", 259s client_error: Type[Exception] = ClientConnectorError, 259s **kwargs: Any, 259s ) -> Tuple[asyncio.Transport, ResponseHandler]: 259s try: 259s async with ceil_timeout( 259s timeout.sock_connect, ceil_threshold=timeout.ceil_threshold 259s ): 259s > sock = await aiohappyeyeballs.start_connection( 259s addr_infos=addr_infos, 259s local_addr_infos=self._local_addr_infos, 259s happy_eyeballs_delay=self._happy_eyeballs_delay, 259s interleave=self._interleave, 259s loop=self._loop, 259s ) 259s 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1115: 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:122: in start_connection 259s raise first_exception 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:73: in start_connection 259s sock = await _connect_sock( 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:208: in _connect_sock 259s await loop.sock_connect(sock, address) 259s /usr/lib/python3.13/asyncio/selector_events.py:641: in sock_connect 259s return await fut 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s 259s self = <_UnixSelectorEventLoop running=False closed=False debug=False> 259s fut = None, sock = 259s address = ('34.255.43.86', 443) 259s 259s def _sock_connect_cb(self, fut, sock, address): 259s if fut.done(): 259s return 259s 259s try: 259s err = sock.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR) 259s if err != 0: 259s # Jump to any except clause below. 259s > raise OSError(err, f'Connect call failed {address}') 259s E ConnectionRefusedError: [Errno 111] Connect call failed ('34.255.43.86', 443) 259s 259s /usr/lib/python3.13/asyncio/selector_events.py:681: ConnectionRefusedError 259s 259s The above exception was the direct cause of the following exception: 259s 259s @pytest.mark.asyncio 259s async def test_tibber_current_price_rank(): 259s async with aiohttp.ClientSession() as session: 259s tibber_connection = tibber.Tibber( 259s websession=session, 259s user_agent="test", 259s ) 259s > await tibber_connection.update_info() 259s 259s test/test_tibber.py:124: 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s /usr/lib/python3/dist-packages/tibber/__init__.py:139: in update_info 259s if (data := await self.execute(INFO)) is None: 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:97: in execute 259s resp = await self.websession.post( 259s /usr/lib/python3/dist-packages/aiohttp/client.py:703: in _request 259s conn = await self._connector.connect( 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:548: in connect 259s proto = await self._create_connection(req, traces, timeout) 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1056: in _create_connection 259s _, proto = await self._create_direct_connection(req, traces, timeout) 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1400: in _create_direct_connection 259s raise last_exc 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1369: in _create_direct_connection 259s transp, proto = await self._wrap_create_connection( 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s 259s self = , addr_infos = [] 259s req = 259s timeout = ClientTimeout(total=10, connect=None, sock_read=None, sock_connect=None, ceil_threshold=5) 259s client_error = 259s args = (functools.partial(, loop=<_UnixSelectorEventLoop running=False closed=False debug=False>),) 259s kwargs = {'server_hostname': 'api.tibber.com', 'ssl': } 259s 259s async def _wrap_create_connection( 259s self, 259s *args: Any, 259s addr_infos: List[aiohappyeyeballs.AddrInfoType], 259s req: ClientRequest, 259s timeout: "ClientTimeout", 259s client_error: Type[Exception] = ClientConnectorError, 259s **kwargs: Any, 259s ) -> Tuple[asyncio.Transport, ResponseHandler]: 259s try: 259s async with ceil_timeout( 259s timeout.sock_connect, ceil_threshold=timeout.ceil_threshold 259s ): 259s sock = await aiohappyeyeballs.start_connection( 259s addr_infos=addr_infos, 259s local_addr_infos=self._local_addr_infos, 259s happy_eyeballs_delay=self._happy_eyeballs_delay, 259s interleave=self._interleave, 259s loop=self._loop, 259s ) 259s return await self._loop.create_connection(*args, **kwargs, sock=sock) 259s except cert_errors as exc: 259s raise ClientConnectorCertificateError(req.connection_key, exc) from exc 259s except ssl_errors as exc: 259s raise ClientConnectorSSLError(req.connection_key, exc) from exc 259s except OSError as exc: 259s if exc.errno is None and isinstance(exc, asyncio.TimeoutError): 259s raise 259s > raise client_error(req.connection_key, exc) from exc 259s E aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.tibber.com:443 ssl:default [Connect call failed ('34.255.43.86', 443)] 259s 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1130: ClientConnectorError 259s ------------------------------ Captured log call ------------------------------- 259s ERROR tibber:__init__.py:118 Error connecting to Tibber 259s Traceback (most recent call last): 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1115, in _wrap_create_connection 259s sock = await aiohappyeyeballs.start_connection( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<5 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 122, in start_connection 259s raise first_exception 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 73, in start_connection 259s sock = await _connect_sock( 259s ^^^^^^^^^^^^^^^^^^^^ 259s ...<6 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 208, in _connect_sock 259s await loop.sock_connect(sock, address) 259s File "/usr/lib/python3.13/asyncio/selector_events.py", line 641, in sock_connect 259s return await fut 259s ^^^^^^^^^ 259s File "/usr/lib/python3.13/asyncio/selector_events.py", line 681, in _sock_connect_cb 259s raise OSError(err, f'Connect call failed {address}') 259s ConnectionRefusedError: [Errno 111] Connect call failed ('34.255.43.86', 443) 259s 259s The above exception was the direct cause of the following exception: 259s 259s Traceback (most recent call last): 259s File "/usr/lib/python3/dist-packages/tibber/__init__.py", line 97, in execute 259s resp = await self.websession.post( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<7 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 703, in _request 259s conn = await self._connector.connect( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s req, traces=traces, timeout=real_timeout 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 548, in connect 259s proto = await self._create_connection(req, traces, timeout) 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1056, in _create_connection 259s _, proto = await self._create_direct_connection(req, traces, timeout) 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1400, in _create_direct_connection 259s raise last_exc 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1369, in _create_direct_connection 259s transp, proto = await self._wrap_create_connection( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<7 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1130, in _wrap_create_connection 259s raise client_error(req.connection_key, exc) from exc 259s aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.tibber.com:443 ssl:default [Connect call failed ('34.255.43.86', 443)] 259s ________________________ test_tibber_get_historic_data _________________________ 259s 259s self = , addr_infos = [] 259s req = 259s timeout = ClientTimeout(total=10, connect=None, sock_read=None, sock_connect=None, ceil_threshold=5) 259s client_error = 259s args = (functools.partial(, loop=<_UnixSelectorEventLoop running=False closed=False debug=False>),) 259s kwargs = {'server_hostname': 'api.tibber.com', 'ssl': } 259s 259s async def _wrap_create_connection( 259s self, 259s *args: Any, 259s addr_infos: List[aiohappyeyeballs.AddrInfoType], 259s req: ClientRequest, 259s timeout: "ClientTimeout", 259s client_error: Type[Exception] = ClientConnectorError, 259s **kwargs: Any, 259s ) -> Tuple[asyncio.Transport, ResponseHandler]: 259s try: 259s async with ceil_timeout( 259s timeout.sock_connect, ceil_threshold=timeout.ceil_threshold 259s ): 259s > sock = await aiohappyeyeballs.start_connection( 259s addr_infos=addr_infos, 259s local_addr_infos=self._local_addr_infos, 259s happy_eyeballs_delay=self._happy_eyeballs_delay, 259s interleave=self._interleave, 259s loop=self._loop, 259s ) 259s 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1115: 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:122: in start_connection 259s raise first_exception 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:73: in start_connection 259s sock = await _connect_sock( 259s /usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py:208: in _connect_sock 259s await loop.sock_connect(sock, address) 259s /usr/lib/python3.13/asyncio/selector_events.py:641: in sock_connect 259s return await fut 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s 259s self = <_UnixSelectorEventLoop running=False closed=False debug=False> 259s fut = None, sock = 259s address = ('52.50.48.96', 443) 259s 259s def _sock_connect_cb(self, fut, sock, address): 259s if fut.done(): 259s return 259s 259s try: 259s err = sock.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR) 259s if err != 0: 259s # Jump to any except clause below. 259s > raise OSError(err, f'Connect call failed {address}') 259s E ConnectionRefusedError: [Errno 111] Connect call failed ('52.50.48.96', 443) 259s 259s /usr/lib/python3.13/asyncio/selector_events.py:681: ConnectionRefusedError 259s 259s The above exception was the direct cause of the following exception: 259s 259s @pytest.mark.asyncio 259s async def test_tibber_get_historic_data(): 259s async with aiohttp.ClientSession() as session: 259s tibber_connection = tibber.Tibber( 259s websession=session, 259s user_agent="test", 259s ) 259s > await tibber_connection.update_info() 259s 259s test/test_tibber.py:143: 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s /usr/lib/python3/dist-packages/tibber/__init__.py:139: in update_info 259s if (data := await self.execute(INFO)) is None: 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:109: in execute 259s return await self.execute( 259s /usr/lib/python3/dist-packages/tibber/__init__.py:97: in execute 259s resp = await self.websession.post( 259s /usr/lib/python3/dist-packages/aiohttp/client.py:703: in _request 259s conn = await self._connector.connect( 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:548: in connect 259s proto = await self._create_connection(req, traces, timeout) 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1056: in _create_connection 259s _, proto = await self._create_direct_connection(req, traces, timeout) 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1400: in _create_direct_connection 259s raise last_exc 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1369: in _create_direct_connection 259s transp, proto = await self._wrap_create_connection( 259s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 259s 259s self = , addr_infos = [] 259s req = 259s timeout = ClientTimeout(total=10, connect=None, sock_read=None, sock_connect=None, ceil_threshold=5) 259s client_error = 259s args = (functools.partial(, loop=<_UnixSelectorEventLoop running=False closed=False debug=False>),) 259s kwargs = {'server_hostname': 'api.tibber.com', 'ssl': } 259s 259s async def _wrap_create_connection( 259s self, 259s *args: Any, 259s addr_infos: List[aiohappyeyeballs.AddrInfoType], 259s req: ClientRequest, 259s timeout: "ClientTimeout", 259s client_error: Type[Exception] = ClientConnectorError, 259s **kwargs: Any, 259s ) -> Tuple[asyncio.Transport, ResponseHandler]: 259s try: 259s async with ceil_timeout( 259s timeout.sock_connect, ceil_threshold=timeout.ceil_threshold 259s ): 259s sock = await aiohappyeyeballs.start_connection( 259s addr_infos=addr_infos, 259s local_addr_infos=self._local_addr_infos, 259s happy_eyeballs_delay=self._happy_eyeballs_delay, 259s interleave=self._interleave, 259s loop=self._loop, 259s ) 259s return await self._loop.create_connection(*args, **kwargs, sock=sock) 259s except cert_errors as exc: 259s raise ClientConnectorCertificateError(req.connection_key, exc) from exc 259s except ssl_errors as exc: 259s raise ClientConnectorSSLError(req.connection_key, exc) from exc 259s except OSError as exc: 259s if exc.errno is None and isinstance(exc, asyncio.TimeoutError): 259s raise 259s > raise client_error(req.connection_key, exc) from exc 259s E aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.tibber.com:443 ssl:default [Connect call failed ('52.50.48.96', 443)] 259s 259s /usr/lib/python3/dist-packages/aiohttp/connector.py:1130: ClientConnectorError 259s ------------------------------ Captured log call ------------------------------- 259s ERROR tibber:__init__.py:118 Error connecting to Tibber 259s Traceback (most recent call last): 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1115, in _wrap_create_connection 259s sock = await aiohappyeyeballs.start_connection( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<5 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 122, in start_connection 259s raise first_exception 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 73, in start_connection 259s sock = await _connect_sock( 259s ^^^^^^^^^^^^^^^^^^^^ 259s ...<6 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohappyeyeballs/impl.py", line 208, in _connect_sock 259s await loop.sock_connect(sock, address) 259s File "/usr/lib/python3.13/asyncio/selector_events.py", line 641, in sock_connect 259s return await fut 259s ^^^^^^^^^ 259s File "/usr/lib/python3.13/asyncio/selector_events.py", line 681, in _sock_connect_cb 259s raise OSError(err, f'Connect call failed {address}') 259s ConnectionRefusedError: [Errno 111] Connect call failed ('52.50.48.96', 443) 259s 259s The above exception was the direct cause of the following exception: 259s 259s Traceback (most recent call last): 259s File "/usr/lib/python3/dist-packages/tibber/__init__.py", line 97, in execute 259s resp = await self.websession.post( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<7 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 703, in _request 259s conn = await self._connector.connect( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s req, traces=traces, timeout=real_timeout 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 548, in connect 259s proto = await self._create_connection(req, traces, timeout) 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1056, in _create_connection 259s _, proto = await self._create_direct_connection(req, traces, timeout) 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1400, in _create_direct_connection 259s raise last_exc 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1369, in _create_direct_connection 259s transp, proto = await self._wrap_create_connection( 259s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 259s ...<7 lines>... 259s ) 259s ^ 259s File "/usr/lib/python3/dist-packages/aiohttp/connector.py", line 1130, in _wrap_create_connection 259s raise client_error(req.connection_key, exc) from exc 259s aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host api.tibber.com:443 ssl:default [Connect call failed ('52.50.48.96', 443)] 259s =============================== warnings summary =============================== 259s ../../../../usr/lib/python3/dist-packages/gql/transport/websockets_base.py:11 259s /usr/lib/python3/dist-packages/gql/transport/websockets_base.py:11: DeprecationWarning: websockets.client.WebSocketClientProtocol is deprecated 259s from websockets.client import WebSocketClientProtocol 259s 259s ../../../../usr/lib/python3/dist-packages/websockets/legacy/__init__.py:6 259s /usr/lib/python3/dist-packages/websockets/legacy/__init__.py:6: DeprecationWarning: websockets.legacy is deprecated; see https://websockets.readthedocs.io/en/stable/howto/upgrade.html for upgrade instructions 259s warnings.warn( # deprecated in 14.0 - 2024-11-09 259s 259s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 259s =========================== short test summary info ============================ 259s FAILED test/test_tibber.py::test_tibber_no_session - aiohttp.client_exception... 259s FAILED test/test_tibber.py::test_tibber - aiohttp.client_exceptions.ClientCon... 259s FAILED test/test_tibber.py::test_tibber_invalid_token - aiohttp.client_except... 259s FAILED test/test_tibber.py::test_tibber_invalid_query - aiohttp.client_except... 259s FAILED test/test_tibber.py::test_tibber_notification - aiohttp.client_excepti... 259s FAILED test/test_tibber.py::test_tibber_current_price_rank - aiohttp.client_e... 259s FAILED test/test_tibber.py::test_tibber_get_historic_data - aiohttp.client_ex... 259s =========== 7 failed, 1 deselected, 2 warnings in 163.53s (0:02:43) ============ 259s E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.vewKIi/autopkgtest_tmp/build; python3.13 -m pytest -k "not test_logging_rt_subscribe" 259s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p 3.13 returned exit code 13 259s make: *** [/tmp/C6jRGzvOsW/run:4: pybuild-autopkgtest] Error 25 259s pybuild-autopkgtest: error: /tmp/C6jRGzvOsW/run pybuild-autopkgtest returned exit code 2 259s autopkgtest [17:05:41]: test pybuild-autopkgtest: -----------------------] 260s pybuild-autopkgtest FAIL non-zero exit status 25 260s autopkgtest [17:05:42]: test pybuild-autopkgtest: - - - - - - - - - - results - - - - - - - - - - 260s autopkgtest [17:05:42]: @@@@@@@@@@@@@@@@@@@@ summary 260s pybuild-autopkgtest FAIL non-zero exit status 25