<86>Jun 1 08:28:34 userdel[1160386]: delete user 'rooter' <86>Jun 1 08:28:34 userdel[1160386]: removed group 'rooter' owned by 'rooter' <86>Jun 1 08:28:34 userdel[1160386]: removed shadow group 'rooter' owned by 'rooter' <86>Jun 1 08:28:34 groupadd[1160413]: group added to /etc/group: name=rooter, GID=1862 <86>Jun 1 08:28:34 groupadd[1160413]: group added to /etc/gshadow: name=rooter <86>Jun 1 08:28:34 groupadd[1160413]: new group: name=rooter, GID=1862 <86>Jun 1 08:28:34 useradd[1160436]: new user: name=rooter, UID=1862, GID=1862, home=/root, shell=/bin/bash, from=none <86>Jun 1 08:28:34 userdel[1160467]: delete user 'builder' <86>Jun 1 08:28:34 userdel[1160467]: removed group 'builder' owned by 'builder' <86>Jun 1 08:28:34 userdel[1160467]: removed shadow group 'builder' owned by 'builder' <86>Jun 1 08:28:34 groupadd[1160492]: group added to /etc/group: name=builder, GID=1863 <86>Jun 1 08:28:34 groupadd[1160492]: group added to /etc/gshadow: name=builder <86>Jun 1 08:28:34 groupadd[1160492]: new group: name=builder, GID=1863 <86>Jun 1 08:28:34 useradd[1160515]: new user: name=builder, UID=1863, GID=1863, home=/usr/src, shell=/bin/bash, from=none <13>Jun 1 08:28:39 rpmi: libtcl-8.6.13-alt1 sisyphus+310696.100.1.1 1669548256 installed <13>Jun 1 08:28:39 rpmi: libexpat-2.5.0-alt1 sisyphus+346180.200.2.1 1716349845 installed <13>Jun 1 08:28:39 rpmi: tcl-8.6.13-alt1 sisyphus+310696.100.1.1 1669548256 installed <13>Jun 1 08:28:39 rpmi: libncurses6-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Jun 1 08:28:39 rpmi: libtinfo-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Jun 1 08:28:39 rpmi: libncurses-devel-6.3.20220618-alt4 sisyphus+327286.4600.14.1 1711486782 installed <13>Jun 1 08:28:39 rpmi: libmpdec3-2.5.1-alt3 sisyphus+314490.500.5.1 1675432033 installed <13>Jun 1 08:28:39 rpmi: libusb-1.0.27-alt1 sisyphus+347412.100.1.1 1714739652 installed <13>Jun 1 08:28:39 rpmi: libhidapi-0.12.0-alt1_1 sisyphus+303213.100.1.1 1657034193 installed <13>Jun 1 08:28:39 rpmi: libgdbm-1.8.3-alt10 sisyphus+346222.200.3.2 1716468406 installed <13>Jun 1 08:28:39 rpmi: libcares-1.28.1-alt1 sisyphus+344335.100.1.1 1712210536 installed <13>Jun 1 08:28:39 rpmi: libb2-0.98.1-alt1_1 sisyphus+291614.100.1.1 1638962878 installed <13>Jun 1 08:28:39 rpmi: libpng16-1.6.42-alt2 sisyphus+339555.100.1.1 1706781690 installed <13>Jun 1 08:28:39 rpmi: libbrotlicommon-1.1.0-alt1 sisyphus+328501.100.1.1 1693598420 installed <13>Jun 1 08:28:39 rpmi: libbrotlidec-1.1.0-alt1 sisyphus+328501.100.1.1 1693598420 installed <13>Jun 1 08:28:39 rpmi: libgraphite2-1.3.14-alt2.1 sisyphus+279571.100.1.2 1626605157 installed <13>Jun 1 08:28:39 rpmi: libharfbuzz-8.5.0-alt1 sisyphus+348492.100.1.2 1716199302 installed <13>Jun 1 08:28:39 rpmi: libfreetype-2.13.2-alt1 sisyphus+328677.100.1.1 1693834346 installed <13>Jun 1 08:28:39 rpmi: libfontconfig1-2.14.2-alt8 sisyphus+328444.100.1.1 1693553407 installed <13>Jun 1 08:28:39 rpmi: libXdmcp-1.1.5-alt1 sisyphus+343583.700.1.1 1711441073 installed <13>Jun 1 08:28:39 rpmi: libXau-1.0.11-alt1 sisyphus+311428.100.1.1 1670577440 installed <13>Jun 1 08:28:39 rpmi: libxcb-1.17.0-alt1 sisyphus+345308.200.1.1 1713342009 installed <13>Jun 1 08:28:39 rpmi: libX11-locales-3:1.8.8-alt1 sisyphus+343583.100.1.1 1711440719 installed <13>Jun 1 08:28:39 rpmi: libX11-3:1.8.8-alt1 sisyphus+343583.100.1.1 1711440722 installed <13>Jun 1 08:28:39 rpmi: libXrender-0.9.11-alt1 sisyphus+308841.100.1.1 1666436131 installed <13>Jun 1 08:28:39 rpmi: libXft-2.3.8-alt1 sisyphus+331490.400.1.1 1697023273 installed <13>Jun 1 08:28:39 rpmi: libtk-8.6.13-alt1 sisyphus+310696.200.1.1 1669548528 installed <13>Jun 1 08:28:40 rpmi: tk-8.6.13-alt1 sisyphus+310696.200.1.1 1669548528 installed <13>Jun 1 08:28:40 rpmi: tcl-tix-8.4.3-alt4 sisyphus+277292.300.2.1 1625442551 installed <13>Jun 1 08:28:40 rpmi: libp11-kit-1:0.25.3-alt2 sisyphus+336533.100.1.1 1702645575 installed <13>Jun 1 08:28:40 rpmi: libtasn1-4.19.0-alt3 sisyphus+327816.100.1.1 1692802618 installed <13>Jun 1 08:28:40 rpmi: rpm-macros-alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Jun 1 08:28:40 rpmi: alternatives-0.5.2-alt2 sisyphus+315270.200.2.1 1676457367 installed <13>Jun 1 08:28:40 rpmi: ca-certificates-2024.02.24-alt1 sisyphus+341362.100.1.1 1708791001 installed <13>Jun 1 08:28:40 rpmi: ca-trust-0.2.0-alt1 sisyphus+344843.100.1.1 1712743326 installed <13>Jun 1 08:28:40 rpmi: p11-kit-trust-1:0.25.3-alt2 sisyphus+336533.100.1.1 1702645575 installed <13>Jun 1 08:28:40 rpmi: libcrypto3-3.1.5-alt3 sisyphus+349593.100.1.1 1716831322 installed <13>Jun 1 08:28:40 rpmi: libssl3-3.1.5-alt3 sisyphus+349593.100.1.1 1716831322 installed <13>Jun 1 08:28:40 rpmi: python3-3.12.2-alt1 sisyphus+341702.200.1.1 1709232959 installed <13>Jun 1 08:28:41 rpmi: python3-base-3.12.2-alt1 sisyphus+341702.200.1.1 1709232959 installed <13>Jun 1 08:28:41 rpmi: python3-module-idna-3.7-alt1 sisyphus+345659.100.1.1 1713798399 installed <13>Jun 1 08:28:41 rpmi: python3-module-attrs-23.2.0-alt1 sisyphus+338876.100.1.2 1706109385 installed <13>Jun 1 08:28:41 rpmi: python3-module-certifi-2023.5.7-alt1 sisyphus+322622.100.1.1 1686217855 installed <13>Jun 1 08:28:41 rpmi: python3-module-Pygments-2.18.0-alt1 sisyphus+347552.100.1.1 1714992955 installed <13>Jun 1 08:28:41 rpmi: python3-module-sniffio-1.3.1-alt1 sisyphus+341424.100.1.1 1708941879 installed <13>Jun 1 08:28:41 rpmi: python3-module-pkg_resources-1:70.0.0-alt1 sisyphus+349080.100.2.1 1716802752 installed <13>Jun 1 08:28:41 rpmi: python3-module-zope.interface-6.4-alt1 sisyphus+348184.100.1.1 1715858755 installed <13>Jun 1 08:28:41 rpmi: python3-module-click-8.1.7-alt1 sisyphus+327424.100.2.1 1695395098 installed <13>Jun 1 08:28:41 rpmi: python3-module-incremental-22.10.0-alt1 sisyphus+312706.100.1.1 1672404273 installed <13>Jun 1 08:28:41 rpmi: python3-module-outcome-1.3.0-alt1 sisyphus+332382.100.1.1 1697882349 installed <13>Jun 1 08:28:41 rpmi: python3-module-hyperlink-21.0.0-alt1.1 sisyphus+304836.100.1.1 1659710964 installed <13>Jun 1 08:28:41 rpmi: libpython3-3.12.2-alt1 sisyphus+341702.200.1.1 1709232959 installed <13>Jun 1 08:28:41 rpmi: python3-module-py3dephell-0.1.0-alt2 sisyphus+328191.600.5.1 1693609196 installed <13>Jun 1 08:28:41 rpmi: python3-module-appdirs-1.4.4-alt1 sisyphus+267613.300.2.1 1620039159 installed <13>Jun 1 08:28:41 rpmi: python3-module-argcomplete-2.0.0-alt1 sisyphus+297796.100.1.1 1649076986 installed <13>Jun 1 08:28:41 rpmi: python3-module-six-1.16.0-alt2 sisyphus+324249.100.1.1 1688484676 installed <13>Jun 1 08:28:41 rpmi: python3-module-pycparser-2.21-alt1.1 sisyphus+309935.7300.4.1 1668527005 installed <13>Jun 1 08:28:41 rpmi: python3-module-cffi-1.16.0-alt1 sisyphus+333513.10400.71.1 1704540321 installed <13>Jun 1 08:28:41 rpmi: python3-module-cryptography-42.0.5-alt1 sisyphus+341498.100.1.1 1709027854 installed <13>Jun 1 08:28:41 rpmi: python3-module-openssl-24.0.0-alt1 sisyphus+340924.100.1.1 1708214977 installed <13>Jun 1 08:28:41 rpmi: python3-module-pycares-4.4.0-alt1 sisyphus+347421.100.1.1 1714743573 installed <13>Jun 1 08:28:41 rpmi: python3-module-zombie-imp-0.0.2-alt1 sisyphus+339293.100.1.1 1706537230 installed <13>Jun 1 08:28:41 rpmi: python3-module-cython-hidapi-0.14.0-alt1.1 sisyphus+333513.54340.73.1 1704649757 installed <13>Jun 1 08:28:41 rpmi: python3-module-serial-3.5-alt2 sisyphus+281995.100.1.1 1628172783 installed <13>Jun 1 08:28:41 rpmi: python3-modules-tkinter-3.12.2-alt1 sisyphus+341702.200.1.1 1709232959 installed <13>Jun 1 08:28:41 rpmi: python3-module-typing_extensions-4.12.0-alt1 sisyphus+349048.100.1.1 1716541452 installed <13>Jun 1 08:28:41 rpmi: python3-module-constantly-15.1.0-alt7 sisyphus+338906.100.1.1 1706107088 installed <13>Jun 1 08:28:41 rpmi: python3-module-hyperframe-6.0.1-alt1 sisyphus+270376.300.2.1 1618957001 installed <13>Jun 1 08:28:41 rpmi: python3-module-hpack-4.0.0-alt1 sisyphus+270376.200.1.1 1618956626 installed <13>Jun 1 08:28:41 rpmi: python3-module-h2-4.1.0-alt1 sisyphus+325714.100.2.2 1690478873 installed <13>Jun 1 08:28:41 rpmi: python3-module-priority-2.0.0-alt3 sisyphus+338701.100.1.2 1705988383 installed <13>Jun 1 08:28:41 rpmi: python3-module-twisted-logger-22.10.0-alt3 sisyphus+341870.100.1.1 1709406646 installed <13>Jun 1 08:28:41 rpmi: python3-module-twisted-web-22.10.0-alt3 sisyphus+341870.100.1.1 1709406646 installed <13>Jun 1 08:28:41 rpmi: python3-module-twisted-words-22.10.0-alt3 sisyphus+341870.100.1.1 1709406646 installed <13>Jun 1 08:28:41 rpmi: python3-module-automat-22.10.0-alt1 sisyphus+322927.200.2.1 1686736914 installed <13>Jun 1 08:28:42 rpmi: python3-module-twisted-core-22.10.0-alt3 sisyphus+341870.100.1.1 1709406646 installed <13>Jun 1 08:28:42 rpmi: python3-module-twisted-names-22.10.0-alt3 sisyphus+341870.100.1.1 1709406646 installed <13>Jun 1 08:28:42 rpmi: python3-module-bottle-1:0.12.25-alt1 sisyphus+316623.100.1.1 1678651894 installed <13>Jun 1 08:28:42 rpmi: python3-module-bson-4.7.2-alt1 sisyphus+349226.100.1.1 1716626319 installed <13>Jun 1 08:28:42 rpmi: python3-module-charset-normalizer-3.2.0-alt1 sisyphus+347396.200.2.1 1714733144 installed <13>Jun 1 08:28:42 rpmi: python3-module-wcwidth-0.2.13-alt1 sisyphus+341792.100.2.1 1709543329 installed <13>Jun 1 08:28:42 rpmi: python3-module-prettytable-2.1.0-alt1 sisyphus+269172.200.1.1 1617824839 installed <13>Jun 1 08:28:42 rpmi: python3-module-urllib3-2:2.2.1-alt1 sisyphus+341073.200.1.1 1708356525 installed <13>Jun 1 08:28:42 rpmi: python3-module-requests-2.32.3-alt1 sisyphus+349946.100.1.1 1717059877 installed <13>Jun 1 08:28:42 rpmi: python3-module-pymongo-4.7.2-alt1 sisyphus+349226.100.1.1 1716626319 installed <13>Jun 1 08:28:42 rpmi: python3-module-servicemanager-2.0.7-alt1 sisyphus+275998.100.1.1 1624811123 installed <13>Jun 1 08:28:42 rpmi: python3-module-execnet-2.1.1-alt1 sisyphus+344737.100.1.1 1712657795 installed <13>Jun 1 08:28:42 rpmi: python3-module-iniconfig-2.0.0-alt1 sisyphus+314076.200.3.1 1674737275 installed <13>Jun 1 08:28:42 rpmi: python3-module-packaging-24.0-alt1 sisyphus+342487.100.2.1 1710407438 installed <13>Jun 1 08:28:42 rpmi: python3-module-pluggy-1.5.0-alt1 sisyphus+345632.100.2.1 1713864244 installed <13>Jun 1 08:28:42 rpmi: python3-module-pytest-8.0.2-alt1 sisyphus+341429.100.2.1 1709025013 installed <13>Jun 1 08:28:42 rpmi: python3-module-h11-0.14.0-alt1 sisyphus+312690.100.1.1 1672395335 installed <13>Jun 1 08:28:42 rpmi: python3-module-socksio-1.0.0-alt1 sisyphus+295017.1500.2.1 1644498004 installed <13>Jun 1 08:28:42 rpmi: python3-module-httpcore-1.0.5-alt1 sisyphus+347570.100.1.1 1715005713 installed <13>Jun 1 08:28:42 rpmi: python3-module-mdurl-0.1.2-alt1 sisyphus+318894.1000.3.1 1682420700 installed <13>Jun 1 08:28:42 rpmi: python3-module-markdown-it-3.0.0-alt1 sisyphus+324665.100.1.1 1689081992 installed <13>Jun 1 08:28:42 rpmi: python3-module-rich-13.7.1-alt1 sisyphus+341675.100.1.1 1709202925 installed <13>Jun 1 08:28:42 rpmi: tests-for-installed-python3-pkgs-0.1.25-alt1 sisyphus+344685.100.1.1 1712595070 installed <13>Jun 1 08:28:42 rpmi: rpm-build-python3-0.1.25-alt1 sisyphus+344685.100.1.1 1712595070 installed <13>Jun 1 08:28:43 rpmi: python3-dev-3.12.2-alt1 sisyphus+341702.200.1.1 1709232959 installed <13>Jun 1 08:28:43 rpmi: python3-module-setuptools-1:70.0.0-alt1 sisyphus+349080.100.2.1 1716802752 installed <13>Jun 1 08:28:43 rpmi: python3-module-httpx-0.27.0-alt1 sisyphus+347574.100.1.1 1715005951 installed <13>Jun 1 08:28:43 rpmi: python3-module-flaky-3.8.1-alt1 sisyphus+344119.100.1.1 1711967596 installed <13>Jun 1 08:28:43 rpmi: python3-module-pytest-asyncio-0.23.7-alt1 sisyphus+348493.100.2.1 1716200839 installed <13>Jun 1 08:28:43 rpmi: python3-module-pytest-xdist-3.6.1-alt1 sisyphus+347405.100.1.1 1714737453 installed <13>Jun 1 08:28:43 rpmi: python3-module-tornado-6.4.0-alt1 sisyphus+338807.100.1.1 1706060382 installed <13>Jun 1 08:28:43 rpmi: python3-module-anyio-4.4.0-alt1 sisyphus+349455.100.1.1 1716788507 installed <13>Jun 1 08:28:43 rpmi: python3-module-cachetools-5.3.3-alt1 sisyphus+341516.100.1.1 1709037059 installed <13>Jun 1 08:28:43 rpmi: python3-module-pytz-1:2023.3.post1-alt1 sisyphus+335112.100.1.1 1700900843 installed <13>Jun 1 08:28:43 rpmi: python3-module-wheel-0.43.0-alt1 sisyphus+342546.200.3.1 1710867409 installed Building target platforms: i586 Building for target i586 Wrote: /usr/src/in/nosrpm/python3-module-telegram-bot-21.0.1-alt1.nosrc.rpm (w1.gzdio) <13>Jun 1 08:28:46 rpmi: python3-module-pyproject-installer-0.5.3-alt1 sisyphus+344989.100.3.1 1713974805 installed Installing python3-module-telegram-bot-21.0.1-alt1.src.rpm Building target platforms: i586 Building for target i586 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.78273 + umask 022 + /usr/bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf python3-module-telegram-bot-21.0.1 + echo 'Source #0 (python3-module-telegram-bot-21.0.1-alt1.tar):' Source #0 (python3-module-telegram-bot-21.0.1-alt1.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/python3-module-telegram-bot-21.0.1-alt1.tar + cd python3-module-telegram-bot-21.0.1 + /bin/chmod -c -Rf u+rwX,go-w . + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.78273 + umask 022 + /usr/bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-telegram-bot-21.0.1 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + /usr/bin/python3 -m pyproject_installer -v build INFO : pyproject_installer.build_cmd._build : Building wheel INFO : pyproject_installer.build_cmd._build : Source tree: /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1 INFO : pyproject_installer.build_cmd._build : Output dir: /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/dist DEBUG : pyproject_installer.lib.build_backend : Validating source path DEBUG : pyproject_installer.lib.build_backend : Checking for PEP517 spec DEBUG : pyproject_installer.lib.build_backend : Parsing configuration file: /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/pyproject.toml INFO : pyproject_installer.lib.build_backend : build-system was not found, using defaults INFO : backend_caller.py : Calling hook build_wheel in subprocess INFO : backend_caller.py : Build backend: setuptools.build_meta:__legacy__ INFO : backend_caller.py : Hook args: ['/usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/dist'] INFO : backend_caller.py : Hook kwargs: {'config_settings': None} INFO : root : running bdist_wheel INFO : root : running build INFO : root : running build_py INFO : root : creating build INFO : root : creating build/lib INFO : root : creating build/lib/telegram INFO : root : copying telegram/warnings.py -> build/lib/telegram INFO : root : copying telegram/helpers.py -> build/lib/telegram INFO : root : copying telegram/error.py -> build/lib/telegram INFO : root : copying telegram/constants.py -> build/lib/telegram INFO : root : copying telegram/_writeaccessallowed.py -> build/lib/telegram INFO : root : copying telegram/_webhookinfo.py -> build/lib/telegram INFO : root : copying telegram/_webappinfo.py -> build/lib/telegram INFO : root : copying telegram/_webappdata.py -> build/lib/telegram INFO : root : copying telegram/_videochat.py -> build/lib/telegram INFO : root : copying telegram/_version.py -> build/lib/telegram INFO : root : copying telegram/_userprofilephotos.py -> build/lib/telegram INFO : root : copying telegram/_user.py -> build/lib/telegram INFO : root : copying telegram/_update.py -> build/lib/telegram INFO : root : copying telegram/_telegramobject.py -> build/lib/telegram INFO : root : copying telegram/_switchinlinequerychosenchat.py -> build/lib/telegram INFO : root : copying telegram/_story.py -> build/lib/telegram INFO : root : copying telegram/_shared.py -> build/lib/telegram INFO : root : copying telegram/_sentwebappmessage.py -> build/lib/telegram INFO : root : copying telegram/_replykeyboardremove.py -> build/lib/telegram INFO : root : copying telegram/_replykeyboardmarkup.py -> build/lib/telegram INFO : root : copying telegram/_reply.py -> build/lib/telegram INFO : root : copying telegram/_reaction.py -> build/lib/telegram INFO : root : copying telegram/_proximityalerttriggered.py -> build/lib/telegram INFO : root : copying telegram/_poll.py -> build/lib/telegram INFO : root : copying telegram/_messagereactionupdated.py -> build/lib/telegram INFO : root : copying telegram/_messageorigin.py -> build/lib/telegram INFO : root : copying telegram/_messageid.py -> build/lib/telegram INFO : root : copying telegram/_messageentity.py -> build/lib/telegram INFO : root : copying telegram/_messageautodeletetimerchanged.py -> build/lib/telegram INFO : root : copying telegram/_message.py -> build/lib/telegram INFO : root : copying telegram/_menubutton.py -> build/lib/telegram INFO : root : copying telegram/_loginurl.py -> build/lib/telegram INFO : root : copying telegram/_linkpreviewoptions.py -> build/lib/telegram INFO : root : copying telegram/_keyboardbuttonrequest.py -> build/lib/telegram INFO : root : copying telegram/_keyboardbuttonpolltype.py -> build/lib/telegram INFO : root : copying telegram/_keyboardbutton.py -> build/lib/telegram INFO : root : copying telegram/_giveaway.py -> build/lib/telegram INFO : root : copying telegram/_forumtopic.py -> build/lib/telegram INFO : root : copying telegram/_forcereply.py -> build/lib/telegram INFO : root : copying telegram/_dice.py -> build/lib/telegram INFO : root : copying telegram/_choseninlineresult.py -> build/lib/telegram INFO : root : copying telegram/_chatpermissions.py -> build/lib/telegram INFO : root : copying telegram/_chatmemberupdated.py -> build/lib/telegram INFO : root : copying telegram/_chatmember.py -> build/lib/telegram INFO : root : copying telegram/_chatlocation.py -> build/lib/telegram INFO : root : copying telegram/_chatjoinrequest.py -> build/lib/telegram INFO : root : copying telegram/_chatinvitelink.py -> build/lib/telegram INFO : root : copying telegram/_chatboost.py -> build/lib/telegram INFO : root : copying telegram/_chatadministratorrights.py -> build/lib/telegram INFO : root : copying telegram/_chat.py -> build/lib/telegram INFO : root : copying telegram/_callbackquery.py -> build/lib/telegram INFO : root : copying telegram/_botname.py -> build/lib/telegram INFO : root : copying telegram/_botdescription.py -> build/lib/telegram INFO : root : copying telegram/_botcommandscope.py -> build/lib/telegram INFO : root : copying telegram/_botcommand.py -> build/lib/telegram INFO : root : copying telegram/_bot.py -> build/lib/telegram INFO : root : copying telegram/__main__.py -> build/lib/telegram INFO : root : copying telegram/__init__.py -> build/lib/telegram INFO : root : creating build/lib/telegram/request INFO : root : copying telegram/request/_requestparameter.py -> build/lib/telegram/request INFO : root : copying telegram/request/_requestdata.py -> build/lib/telegram/request INFO : root : copying telegram/request/_httpxrequest.py -> build/lib/telegram/request INFO : root : copying telegram/request/_baserequest.py -> build/lib/telegram/request INFO : root : copying telegram/request/__init__.py -> build/lib/telegram/request INFO : root : creating build/lib/telegram/ext INFO : root : copying telegram/ext/filters.py -> build/lib/telegram/ext INFO : root : copying telegram/ext/_updater.py -> build/lib/telegram/ext INFO : root : copying telegram/ext/_picklepersistence.py -> build/lib/telegram/ext INFO : root : copying telegram/ext/_jobqueue.py -> build/lib/telegram/ext INFO : root : copying telegram/ext/_extbot.py -> build/lib/telegram/ext INFO : root : copying telegram/ext/_dictpersistence.py -> build/lib/telegram/ext INFO : root : copying telegram/ext/_defaults.py -> build/lib/telegram/ext INFO : root : copying telegram/ext/_contexttypes.py -> build/lib/telegram/ext INFO : root : copying telegram/ext/_callbackdatacache.py -> build/lib/telegram/ext INFO : root : copying telegram/ext/_callbackcontext.py -> build/lib/telegram/ext INFO : root : copying telegram/ext/_baseupdateprocessor.py -> build/lib/telegram/ext INFO : root : copying telegram/ext/_baseratelimiter.py -> build/lib/telegram/ext INFO : root : copying telegram/ext/_basepersistence.py -> build/lib/telegram/ext INFO : root : copying telegram/ext/_applicationbuilder.py -> build/lib/telegram/ext INFO : root : copying telegram/ext/_application.py -> build/lib/telegram/ext INFO : root : copying telegram/ext/_aioratelimiter.py -> build/lib/telegram/ext INFO : root : copying telegram/ext/__init__.py -> build/lib/telegram/ext INFO : root : creating build/lib/telegram/_utils INFO : root : copying telegram/_utils/warnings_transition.py -> build/lib/telegram/_utils INFO : root : copying telegram/_utils/warnings.py -> build/lib/telegram/_utils INFO : root : copying telegram/_utils/types.py -> build/lib/telegram/_utils INFO : root : copying telegram/_utils/strings.py -> build/lib/telegram/_utils INFO : root : copying telegram/_utils/repr.py -> build/lib/telegram/_utils INFO : root : copying telegram/_utils/markup.py -> build/lib/telegram/_utils INFO : root : copying telegram/_utils/logging.py -> build/lib/telegram/_utils INFO : root : copying telegram/_utils/files.py -> build/lib/telegram/_utils INFO : root : copying telegram/_utils/enum.py -> build/lib/telegram/_utils INFO : root : copying telegram/_utils/defaultvalue.py -> build/lib/telegram/_utils INFO : root : copying telegram/_utils/datetime.py -> build/lib/telegram/_utils INFO : root : copying telegram/_utils/argumentparsing.py -> build/lib/telegram/_utils INFO : root : copying telegram/_utils/__init__.py -> build/lib/telegram/_utils INFO : root : creating build/lib/telegram/_payment INFO : root : copying telegram/_payment/successfulpayment.py -> build/lib/telegram/_payment INFO : root : copying telegram/_payment/shippingquery.py -> build/lib/telegram/_payment INFO : root : copying telegram/_payment/shippingoption.py -> build/lib/telegram/_payment INFO : root : copying telegram/_payment/shippingaddress.py -> build/lib/telegram/_payment INFO : root : copying telegram/_payment/precheckoutquery.py -> build/lib/telegram/_payment INFO : root : copying telegram/_payment/orderinfo.py -> build/lib/telegram/_payment INFO : root : copying telegram/_payment/labeledprice.py -> build/lib/telegram/_payment INFO : root : copying telegram/_payment/invoice.py -> build/lib/telegram/_payment INFO : root : copying telegram/_payment/__init__.py -> build/lib/telegram/_payment INFO : root : creating build/lib/telegram/_passport INFO : root : copying telegram/_passport/passportfile.py -> build/lib/telegram/_passport INFO : root : copying telegram/_passport/passportelementerrors.py -> build/lib/telegram/_passport INFO : root : copying telegram/_passport/passportdata.py -> build/lib/telegram/_passport INFO : root : copying telegram/_passport/encryptedpassportelement.py -> build/lib/telegram/_passport INFO : root : copying telegram/_passport/data.py -> build/lib/telegram/_passport INFO : root : copying telegram/_passport/credentials.py -> build/lib/telegram/_passport INFO : root : copying telegram/_passport/__init__.py -> build/lib/telegram/_passport INFO : root : creating build/lib/telegram/_inline INFO : root : copying telegram/_inline/inputvenuemessagecontent.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inputtextmessagecontent.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inputmessagecontent.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inputlocationmessagecontent.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inputinvoicemessagecontent.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inputcontactmessagecontent.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultvoice.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultvideo.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultvenue.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultsbutton.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultphoto.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultmpeg4gif.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultlocation.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultgif.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultgame.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultdocument.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultcontact.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultcachedvoice.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultcachedvideo.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultcachedsticker.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultcachedphoto.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultcachedmpeg4gif.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultcachedgif.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultcacheddocument.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultcachedaudio.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultaudio.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresultarticle.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequeryresult.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinequery.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinekeyboardmarkup.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/inlinekeyboardbutton.py -> build/lib/telegram/_inline INFO : root : copying telegram/_inline/__init__.py -> build/lib/telegram/_inline INFO : root : creating build/lib/telegram/_games INFO : root : copying telegram/_games/gamehighscore.py -> build/lib/telegram/_games INFO : root : copying telegram/_games/game.py -> build/lib/telegram/_games INFO : root : copying telegram/_games/callbackgame.py -> build/lib/telegram/_games INFO : root : copying telegram/_games/__init__.py -> build/lib/telegram/_games INFO : root : creating build/lib/telegram/_files INFO : root : copying telegram/_files/voice.py -> build/lib/telegram/_files INFO : root : copying telegram/_files/videonote.py -> build/lib/telegram/_files INFO : root : copying telegram/_files/video.py -> build/lib/telegram/_files INFO : root : copying telegram/_files/venue.py -> build/lib/telegram/_files INFO : root : copying telegram/_files/sticker.py -> build/lib/telegram/_files INFO : root : copying telegram/_files/photosize.py -> build/lib/telegram/_files INFO : root : copying telegram/_files/location.py -> build/lib/telegram/_files INFO : root : copying telegram/_files/inputsticker.py -> build/lib/telegram/_files INFO : root : copying telegram/_files/inputmedia.py -> build/lib/telegram/_files INFO : root : copying telegram/_files/inputfile.py -> build/lib/telegram/_files INFO : root : copying telegram/_files/file.py -> build/lib/telegram/_files INFO : root : copying telegram/_files/document.py -> build/lib/telegram/_files INFO : root : copying telegram/_files/contact.py -> build/lib/telegram/_files INFO : root : copying telegram/_files/chatphoto.py -> build/lib/telegram/_files INFO : root : copying telegram/_files/audio.py -> build/lib/telegram/_files INFO : root : copying telegram/_files/animation.py -> build/lib/telegram/_files INFO : root : copying telegram/_files/_basethumbedmedium.py -> build/lib/telegram/_files INFO : root : copying telegram/_files/_basemedium.py -> build/lib/telegram/_files INFO : root : copying telegram/_files/__init__.py -> build/lib/telegram/_files INFO : root : creating build/lib/telegram/ext/_utils INFO : root : copying telegram/ext/_utils/webhookhandler.py -> build/lib/telegram/ext/_utils INFO : root : copying telegram/ext/_utils/types.py -> build/lib/telegram/ext/_utils INFO : root : copying telegram/ext/_utils/trackingdict.py -> build/lib/telegram/ext/_utils INFO : root : copying telegram/ext/_utils/stack.py -> build/lib/telegram/ext/_utils INFO : root : copying telegram/ext/_utils/_update_parsing.py -> build/lib/telegram/ext/_utils INFO : root : copying telegram/ext/_utils/__init__.py -> build/lib/telegram/ext/_utils INFO : root : creating build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/typehandler.py -> build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/stringregexhandler.py -> build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/stringcommandhandler.py -> build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/shippingqueryhandler.py -> build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/prefixhandler.py -> build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/precheckoutqueryhandler.py -> build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/pollhandler.py -> build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/pollanswerhandler.py -> build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/messagereactionhandler.py -> build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/messagehandler.py -> build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/inlinequeryhandler.py -> build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/conversationhandler.py -> build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/commandhandler.py -> build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/choseninlineresulthandler.py -> build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/chatmemberhandler.py -> build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/chatjoinrequesthandler.py -> build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/chatboosthandler.py -> build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/callbackqueryhandler.py -> build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/basehandler.py -> build/lib/telegram/ext/_handlers INFO : root : copying telegram/ext/_handlers/__init__.py -> build/lib/telegram/ext/_handlers INFO : root : running egg_info INFO : root : creating python_telegram_bot.egg-info INFO : root : writing python_telegram_bot.egg-info/PKG-INFO INFO : root : writing dependency_links to python_telegram_bot.egg-info/dependency_links.txt INFO : root : writing requirements to python_telegram_bot.egg-info/requires.txt INFO : root : writing top-level names to python_telegram_bot.egg-info/top_level.txt INFO : root : writing manifest file 'python_telegram_bot.egg-info/SOURCES.txt' INFO : root : reading manifest file 'python_telegram_bot.egg-info/SOURCES.txt' INFO : root : reading manifest template 'MANIFEST.in' INFO : root : adding license file 'LICENSE' INFO : root : adding license file 'LICENSE.dual' INFO : root : adding license file 'LICENSE.lesser' INFO : root : writing manifest file 'python_telegram_bot.egg-info/SOURCES.txt' INFO : root : copying telegram/py.typed -> build/lib/telegram INFO : wheel : installing to build/bdist.linux-i686/wheel INFO : root : running install INFO : root : running install_lib INFO : root : creating build/bdist.linux-i686 INFO : root : creating build/bdist.linux-i686/wheel INFO : root : creating build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/py.typed -> build/bdist.linux-i686/wheel/telegram INFO : root : creating build/bdist.linux-i686/wheel/telegram/_files INFO : root : copying build/lib/telegram/_files/__init__.py -> build/bdist.linux-i686/wheel/telegram/_files INFO : root : copying build/lib/telegram/_files/_basemedium.py -> build/bdist.linux-i686/wheel/telegram/_files INFO : root : copying build/lib/telegram/_files/_basethumbedmedium.py -> build/bdist.linux-i686/wheel/telegram/_files INFO : root : copying build/lib/telegram/_files/animation.py -> build/bdist.linux-i686/wheel/telegram/_files INFO : root : copying build/lib/telegram/_files/audio.py -> build/bdist.linux-i686/wheel/telegram/_files INFO : root : copying build/lib/telegram/_files/chatphoto.py -> build/bdist.linux-i686/wheel/telegram/_files INFO : root : copying build/lib/telegram/_files/contact.py -> build/bdist.linux-i686/wheel/telegram/_files INFO : root : copying build/lib/telegram/_files/document.py -> build/bdist.linux-i686/wheel/telegram/_files INFO : root : copying build/lib/telegram/_files/file.py -> build/bdist.linux-i686/wheel/telegram/_files INFO : root : copying build/lib/telegram/_files/inputfile.py -> build/bdist.linux-i686/wheel/telegram/_files INFO : root : copying build/lib/telegram/_files/inputmedia.py -> build/bdist.linux-i686/wheel/telegram/_files INFO : root : copying build/lib/telegram/_files/inputsticker.py -> build/bdist.linux-i686/wheel/telegram/_files INFO : root : copying build/lib/telegram/_files/location.py -> build/bdist.linux-i686/wheel/telegram/_files INFO : root : copying build/lib/telegram/_files/photosize.py -> build/bdist.linux-i686/wheel/telegram/_files INFO : root : copying build/lib/telegram/_files/sticker.py -> build/bdist.linux-i686/wheel/telegram/_files INFO : root : copying build/lib/telegram/_files/venue.py -> build/bdist.linux-i686/wheel/telegram/_files INFO : root : copying build/lib/telegram/_files/video.py -> build/bdist.linux-i686/wheel/telegram/_files INFO : root : copying build/lib/telegram/_files/videonote.py -> build/bdist.linux-i686/wheel/telegram/_files INFO : root : copying build/lib/telegram/_files/voice.py -> build/bdist.linux-i686/wheel/telegram/_files INFO : root : creating build/bdist.linux-i686/wheel/telegram/_games INFO : root : copying build/lib/telegram/_games/__init__.py -> build/bdist.linux-i686/wheel/telegram/_games INFO : root : copying build/lib/telegram/_games/callbackgame.py -> build/bdist.linux-i686/wheel/telegram/_games INFO : root : copying build/lib/telegram/_games/game.py -> build/bdist.linux-i686/wheel/telegram/_games INFO : root : copying build/lib/telegram/_games/gamehighscore.py -> build/bdist.linux-i686/wheel/telegram/_games INFO : root : creating build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/__init__.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinekeyboardbutton.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinekeyboardmarkup.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequery.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresult.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultarticle.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultaudio.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultcachedaudio.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultcacheddocument.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultcachedgif.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultcachedmpeg4gif.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultcachedphoto.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultcachedsticker.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultcachedvideo.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultcachedvoice.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultcontact.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultdocument.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultgame.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultgif.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultlocation.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultmpeg4gif.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultphoto.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultsbutton.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultvenue.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultvideo.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inlinequeryresultvoice.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inputcontactmessagecontent.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inputinvoicemessagecontent.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inputlocationmessagecontent.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inputmessagecontent.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inputtextmessagecontent.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : copying build/lib/telegram/_inline/inputvenuemessagecontent.py -> build/bdist.linux-i686/wheel/telegram/_inline INFO : root : creating build/bdist.linux-i686/wheel/telegram/_passport INFO : root : copying build/lib/telegram/_passport/__init__.py -> build/bdist.linux-i686/wheel/telegram/_passport INFO : root : copying build/lib/telegram/_passport/credentials.py -> build/bdist.linux-i686/wheel/telegram/_passport INFO : root : copying build/lib/telegram/_passport/data.py -> build/bdist.linux-i686/wheel/telegram/_passport INFO : root : copying build/lib/telegram/_passport/encryptedpassportelement.py -> build/bdist.linux-i686/wheel/telegram/_passport INFO : root : copying build/lib/telegram/_passport/passportdata.py -> build/bdist.linux-i686/wheel/telegram/_passport INFO : root : copying build/lib/telegram/_passport/passportelementerrors.py -> build/bdist.linux-i686/wheel/telegram/_passport INFO : root : copying build/lib/telegram/_passport/passportfile.py -> build/bdist.linux-i686/wheel/telegram/_passport INFO : root : creating build/bdist.linux-i686/wheel/telegram/_payment INFO : root : copying build/lib/telegram/_payment/__init__.py -> build/bdist.linux-i686/wheel/telegram/_payment INFO : root : copying build/lib/telegram/_payment/invoice.py -> build/bdist.linux-i686/wheel/telegram/_payment INFO : root : copying build/lib/telegram/_payment/labeledprice.py -> build/bdist.linux-i686/wheel/telegram/_payment INFO : root : copying build/lib/telegram/_payment/orderinfo.py -> build/bdist.linux-i686/wheel/telegram/_payment INFO : root : copying build/lib/telegram/_payment/precheckoutquery.py -> build/bdist.linux-i686/wheel/telegram/_payment INFO : root : copying build/lib/telegram/_payment/shippingaddress.py -> build/bdist.linux-i686/wheel/telegram/_payment INFO : root : copying build/lib/telegram/_payment/shippingoption.py -> build/bdist.linux-i686/wheel/telegram/_payment INFO : root : copying build/lib/telegram/_payment/shippingquery.py -> build/bdist.linux-i686/wheel/telegram/_payment INFO : root : copying build/lib/telegram/_payment/successfulpayment.py -> build/bdist.linux-i686/wheel/telegram/_payment INFO : root : creating build/bdist.linux-i686/wheel/telegram/_utils INFO : root : copying build/lib/telegram/_utils/__init__.py -> build/bdist.linux-i686/wheel/telegram/_utils INFO : root : copying build/lib/telegram/_utils/argumentparsing.py -> build/bdist.linux-i686/wheel/telegram/_utils INFO : root : copying build/lib/telegram/_utils/datetime.py -> build/bdist.linux-i686/wheel/telegram/_utils INFO : root : copying build/lib/telegram/_utils/defaultvalue.py -> build/bdist.linux-i686/wheel/telegram/_utils INFO : root : copying build/lib/telegram/_utils/enum.py -> build/bdist.linux-i686/wheel/telegram/_utils INFO : root : copying build/lib/telegram/_utils/files.py -> build/bdist.linux-i686/wheel/telegram/_utils INFO : root : copying build/lib/telegram/_utils/logging.py -> build/bdist.linux-i686/wheel/telegram/_utils INFO : root : copying build/lib/telegram/_utils/markup.py -> build/bdist.linux-i686/wheel/telegram/_utils INFO : root : copying build/lib/telegram/_utils/repr.py -> build/bdist.linux-i686/wheel/telegram/_utils INFO : root : copying build/lib/telegram/_utils/strings.py -> build/bdist.linux-i686/wheel/telegram/_utils INFO : root : copying build/lib/telegram/_utils/types.py -> build/bdist.linux-i686/wheel/telegram/_utils INFO : root : copying build/lib/telegram/_utils/warnings.py -> build/bdist.linux-i686/wheel/telegram/_utils INFO : root : copying build/lib/telegram/_utils/warnings_transition.py -> build/bdist.linux-i686/wheel/telegram/_utils INFO : root : creating build/bdist.linux-i686/wheel/telegram/ext INFO : root : creating build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/__init__.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/basehandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/callbackqueryhandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/chatboosthandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/chatjoinrequesthandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/chatmemberhandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/choseninlineresulthandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/commandhandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/conversationhandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/inlinequeryhandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/messagehandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/messagereactionhandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/pollanswerhandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/pollhandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/precheckoutqueryhandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/prefixhandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/shippingqueryhandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/stringcommandhandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/stringregexhandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : copying build/lib/telegram/ext/_handlers/typehandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_handlers INFO : root : creating build/bdist.linux-i686/wheel/telegram/ext/_utils INFO : root : copying build/lib/telegram/ext/_utils/__init__.py -> build/bdist.linux-i686/wheel/telegram/ext/_utils INFO : root : copying build/lib/telegram/ext/_utils/_update_parsing.py -> build/bdist.linux-i686/wheel/telegram/ext/_utils INFO : root : copying build/lib/telegram/ext/_utils/stack.py -> build/bdist.linux-i686/wheel/telegram/ext/_utils INFO : root : copying build/lib/telegram/ext/_utils/trackingdict.py -> build/bdist.linux-i686/wheel/telegram/ext/_utils INFO : root : copying build/lib/telegram/ext/_utils/types.py -> build/bdist.linux-i686/wheel/telegram/ext/_utils INFO : root : copying build/lib/telegram/ext/_utils/webhookhandler.py -> build/bdist.linux-i686/wheel/telegram/ext/_utils INFO : root : copying build/lib/telegram/ext/__init__.py -> build/bdist.linux-i686/wheel/telegram/ext INFO : root : copying build/lib/telegram/ext/_aioratelimiter.py -> build/bdist.linux-i686/wheel/telegram/ext INFO : root : copying build/lib/telegram/ext/_application.py -> build/bdist.linux-i686/wheel/telegram/ext INFO : root : copying build/lib/telegram/ext/_applicationbuilder.py -> build/bdist.linux-i686/wheel/telegram/ext INFO : root : copying build/lib/telegram/ext/_basepersistence.py -> build/bdist.linux-i686/wheel/telegram/ext INFO : root : copying build/lib/telegram/ext/_baseratelimiter.py -> build/bdist.linux-i686/wheel/telegram/ext INFO : root : copying build/lib/telegram/ext/_baseupdateprocessor.py -> build/bdist.linux-i686/wheel/telegram/ext INFO : root : copying build/lib/telegram/ext/_callbackcontext.py -> build/bdist.linux-i686/wheel/telegram/ext INFO : root : copying build/lib/telegram/ext/_callbackdatacache.py -> build/bdist.linux-i686/wheel/telegram/ext INFO : root : copying build/lib/telegram/ext/_contexttypes.py -> build/bdist.linux-i686/wheel/telegram/ext INFO : root : copying build/lib/telegram/ext/_defaults.py -> build/bdist.linux-i686/wheel/telegram/ext INFO : root : copying build/lib/telegram/ext/_dictpersistence.py -> build/bdist.linux-i686/wheel/telegram/ext INFO : root : copying build/lib/telegram/ext/_extbot.py -> build/bdist.linux-i686/wheel/telegram/ext INFO : root : copying build/lib/telegram/ext/_jobqueue.py -> build/bdist.linux-i686/wheel/telegram/ext INFO : root : copying build/lib/telegram/ext/_picklepersistence.py -> build/bdist.linux-i686/wheel/telegram/ext INFO : root : copying build/lib/telegram/ext/_updater.py -> build/bdist.linux-i686/wheel/telegram/ext INFO : root : copying build/lib/telegram/ext/filters.py -> build/bdist.linux-i686/wheel/telegram/ext INFO : root : creating build/bdist.linux-i686/wheel/telegram/request INFO : root : copying build/lib/telegram/request/__init__.py -> build/bdist.linux-i686/wheel/telegram/request INFO : root : copying build/lib/telegram/request/_baserequest.py -> build/bdist.linux-i686/wheel/telegram/request INFO : root : copying build/lib/telegram/request/_httpxrequest.py -> build/bdist.linux-i686/wheel/telegram/request INFO : root : copying build/lib/telegram/request/_requestdata.py -> build/bdist.linux-i686/wheel/telegram/request INFO : root : copying build/lib/telegram/request/_requestparameter.py -> build/bdist.linux-i686/wheel/telegram/request INFO : root : copying build/lib/telegram/__init__.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/__main__.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_bot.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_botcommand.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_botcommandscope.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_botdescription.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_botname.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_callbackquery.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_chat.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_chatadministratorrights.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_chatboost.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_chatinvitelink.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_chatjoinrequest.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_chatlocation.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_chatmember.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_chatmemberupdated.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_chatpermissions.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_choseninlineresult.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_dice.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_forcereply.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_forumtopic.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_giveaway.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_keyboardbutton.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_keyboardbuttonpolltype.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_keyboardbuttonrequest.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_linkpreviewoptions.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_loginurl.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_menubutton.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_message.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_messageautodeletetimerchanged.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_messageentity.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_messageid.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_messageorigin.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_messagereactionupdated.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_poll.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_proximityalerttriggered.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_reaction.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_reply.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_replykeyboardmarkup.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_replykeyboardremove.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_sentwebappmessage.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_shared.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_story.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_switchinlinequerychosenchat.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_telegramobject.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_update.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_user.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_userprofilephotos.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_version.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_videochat.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_webappdata.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_webappinfo.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_webhookinfo.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/_writeaccessallowed.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/constants.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/error.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/helpers.py -> build/bdist.linux-i686/wheel/telegram INFO : root : copying build/lib/telegram/warnings.py -> build/bdist.linux-i686/wheel/telegram INFO : root : running install_egg_info INFO : root : Copying python_telegram_bot.egg-info to build/bdist.linux-i686/wheel/python_telegram_bot-21.0.1-py3.12.egg-info INFO : root : running install_scripts INFO : wheel : creating build/bdist.linux-i686/wheel/python_telegram_bot-21.0.1.dist-info/WHEEL INFO : wheel : creating '/usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/dist/.tmp-jqd4678i/python_telegram_bot-21.0.1-py3-none-any.whl' and adding 'build/bdist.linux-i686/wheel' to it INFO : wheel : adding 'telegram/__init__.py' INFO : wheel : adding 'telegram/__main__.py' INFO : wheel : adding 'telegram/_bot.py' INFO : wheel : adding 'telegram/_botcommand.py' INFO : wheel : adding 'telegram/_botcommandscope.py' INFO : wheel : adding 'telegram/_botdescription.py' INFO : wheel : adding 'telegram/_botname.py' INFO : wheel : adding 'telegram/_callbackquery.py' INFO : wheel : adding 'telegram/_chat.py' INFO : wheel : adding 'telegram/_chatadministratorrights.py' INFO : wheel : adding 'telegram/_chatboost.py' INFO : wheel : adding 'telegram/_chatinvitelink.py' INFO : wheel : adding 'telegram/_chatjoinrequest.py' INFO : wheel : adding 'telegram/_chatlocation.py' INFO : wheel : adding 'telegram/_chatmember.py' INFO : wheel : adding 'telegram/_chatmemberupdated.py' INFO : wheel : adding 'telegram/_chatpermissions.py' INFO : wheel : adding 'telegram/_choseninlineresult.py' INFO : wheel : adding 'telegram/_dice.py' INFO : wheel : adding 'telegram/_forcereply.py' INFO : wheel : adding 'telegram/_forumtopic.py' INFO : wheel : adding 'telegram/_giveaway.py' INFO : wheel : adding 'telegram/_keyboardbutton.py' INFO : wheel : adding 'telegram/_keyboardbuttonpolltype.py' INFO : wheel : adding 'telegram/_keyboardbuttonrequest.py' INFO : wheel : adding 'telegram/_linkpreviewoptions.py' INFO : wheel : adding 'telegram/_loginurl.py' INFO : wheel : adding 'telegram/_menubutton.py' INFO : wheel : adding 'telegram/_message.py' INFO : wheel : adding 'telegram/_messageautodeletetimerchanged.py' INFO : wheel : adding 'telegram/_messageentity.py' INFO : wheel : adding 'telegram/_messageid.py' INFO : wheel : adding 'telegram/_messageorigin.py' INFO : wheel : adding 'telegram/_messagereactionupdated.py' INFO : wheel : adding 'telegram/_poll.py' INFO : wheel : adding 'telegram/_proximityalerttriggered.py' INFO : wheel : adding 'telegram/_reaction.py' INFO : wheel : adding 'telegram/_reply.py' INFO : wheel : adding 'telegram/_replykeyboardmarkup.py' INFO : wheel : adding 'telegram/_replykeyboardremove.py' INFO : wheel : adding 'telegram/_sentwebappmessage.py' INFO : wheel : adding 'telegram/_shared.py' INFO : wheel : adding 'telegram/_story.py' INFO : wheel : adding 'telegram/_switchinlinequerychosenchat.py' INFO : wheel : adding 'telegram/_telegramobject.py' INFO : wheel : adding 'telegram/_update.py' INFO : wheel : adding 'telegram/_user.py' INFO : wheel : adding 'telegram/_userprofilephotos.py' INFO : wheel : adding 'telegram/_version.py' INFO : wheel : adding 'telegram/_videochat.py' INFO : wheel : adding 'telegram/_webappdata.py' INFO : wheel : adding 'telegram/_webappinfo.py' INFO : wheel : adding 'telegram/_webhookinfo.py' INFO : wheel : adding 'telegram/_writeaccessallowed.py' INFO : wheel : adding 'telegram/constants.py' INFO : wheel : adding 'telegram/error.py' INFO : wheel : adding 'telegram/helpers.py' INFO : wheel : adding 'telegram/py.typed' INFO : wheel : adding 'telegram/warnings.py' INFO : wheel : adding 'telegram/_files/__init__.py' INFO : wheel : adding 'telegram/_files/_basemedium.py' INFO : wheel : adding 'telegram/_files/_basethumbedmedium.py' INFO : wheel : adding 'telegram/_files/animation.py' INFO : wheel : adding 'telegram/_files/audio.py' INFO : wheel : adding 'telegram/_files/chatphoto.py' INFO : wheel : adding 'telegram/_files/contact.py' INFO : wheel : adding 'telegram/_files/document.py' INFO : wheel : adding 'telegram/_files/file.py' INFO : wheel : adding 'telegram/_files/inputfile.py' INFO : wheel : adding 'telegram/_files/inputmedia.py' INFO : wheel : adding 'telegram/_files/inputsticker.py' INFO : wheel : adding 'telegram/_files/location.py' INFO : wheel : adding 'telegram/_files/photosize.py' INFO : wheel : adding 'telegram/_files/sticker.py' INFO : wheel : adding 'telegram/_files/venue.py' INFO : wheel : adding 'telegram/_files/video.py' INFO : wheel : adding 'telegram/_files/videonote.py' INFO : wheel : adding 'telegram/_files/voice.py' INFO : wheel : adding 'telegram/_games/__init__.py' INFO : wheel : adding 'telegram/_games/callbackgame.py' INFO : wheel : adding 'telegram/_games/game.py' INFO : wheel : adding 'telegram/_games/gamehighscore.py' INFO : wheel : adding 'telegram/_inline/__init__.py' INFO : wheel : adding 'telegram/_inline/inlinekeyboardbutton.py' INFO : wheel : adding 'telegram/_inline/inlinekeyboardmarkup.py' INFO : wheel : adding 'telegram/_inline/inlinequery.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresult.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultarticle.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultaudio.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultcachedaudio.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultcacheddocument.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultcachedgif.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultcachedmpeg4gif.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultcachedphoto.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultcachedsticker.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultcachedvideo.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultcachedvoice.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultcontact.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultdocument.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultgame.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultgif.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultlocation.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultmpeg4gif.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultphoto.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultsbutton.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultvenue.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultvideo.py' INFO : wheel : adding 'telegram/_inline/inlinequeryresultvoice.py' INFO : wheel : adding 'telegram/_inline/inputcontactmessagecontent.py' INFO : wheel : adding 'telegram/_inline/inputinvoicemessagecontent.py' INFO : wheel : adding 'telegram/_inline/inputlocationmessagecontent.py' INFO : wheel : adding 'telegram/_inline/inputmessagecontent.py' INFO : wheel : adding 'telegram/_inline/inputtextmessagecontent.py' INFO : wheel : adding 'telegram/_inline/inputvenuemessagecontent.py' INFO : wheel : adding 'telegram/_passport/__init__.py' INFO : wheel : adding 'telegram/_passport/credentials.py' INFO : wheel : adding 'telegram/_passport/data.py' INFO : wheel : adding 'telegram/_passport/encryptedpassportelement.py' INFO : wheel : adding 'telegram/_passport/passportdata.py' INFO : wheel : adding 'telegram/_passport/passportelementerrors.py' INFO : wheel : adding 'telegram/_passport/passportfile.py' INFO : wheel : adding 'telegram/_payment/__init__.py' INFO : wheel : adding 'telegram/_payment/invoice.py' INFO : wheel : adding 'telegram/_payment/labeledprice.py' INFO : wheel : adding 'telegram/_payment/orderinfo.py' INFO : wheel : adding 'telegram/_payment/precheckoutquery.py' INFO : wheel : adding 'telegram/_payment/shippingaddress.py' INFO : wheel : adding 'telegram/_payment/shippingoption.py' INFO : wheel : adding 'telegram/_payment/shippingquery.py' INFO : wheel : adding 'telegram/_payment/successfulpayment.py' INFO : wheel : adding 'telegram/_utils/__init__.py' INFO : wheel : adding 'telegram/_utils/argumentparsing.py' INFO : wheel : adding 'telegram/_utils/datetime.py' INFO : wheel : adding 'telegram/_utils/defaultvalue.py' INFO : wheel : adding 'telegram/_utils/enum.py' INFO : wheel : adding 'telegram/_utils/files.py' INFO : wheel : adding 'telegram/_utils/logging.py' INFO : wheel : adding 'telegram/_utils/markup.py' INFO : wheel : adding 'telegram/_utils/repr.py' INFO : wheel : adding 'telegram/_utils/strings.py' INFO : wheel : adding 'telegram/_utils/types.py' INFO : wheel : adding 'telegram/_utils/warnings.py' INFO : wheel : adding 'telegram/_utils/warnings_transition.py' INFO : wheel : adding 'telegram/ext/__init__.py' INFO : wheel : adding 'telegram/ext/_aioratelimiter.py' INFO : wheel : adding 'telegram/ext/_application.py' INFO : wheel : adding 'telegram/ext/_applicationbuilder.py' INFO : wheel : adding 'telegram/ext/_basepersistence.py' INFO : wheel : adding 'telegram/ext/_baseratelimiter.py' INFO : wheel : adding 'telegram/ext/_baseupdateprocessor.py' INFO : wheel : adding 'telegram/ext/_callbackcontext.py' INFO : wheel : adding 'telegram/ext/_callbackdatacache.py' INFO : wheel : adding 'telegram/ext/_contexttypes.py' INFO : wheel : adding 'telegram/ext/_defaults.py' INFO : wheel : adding 'telegram/ext/_dictpersistence.py' INFO : wheel : adding 'telegram/ext/_extbot.py' INFO : wheel : adding 'telegram/ext/_jobqueue.py' INFO : wheel : adding 'telegram/ext/_picklepersistence.py' INFO : wheel : adding 'telegram/ext/_updater.py' INFO : wheel : adding 'telegram/ext/filters.py' INFO : wheel : adding 'telegram/ext/_handlers/__init__.py' INFO : wheel : adding 'telegram/ext/_handlers/basehandler.py' INFO : wheel : adding 'telegram/ext/_handlers/callbackqueryhandler.py' INFO : wheel : adding 'telegram/ext/_handlers/chatboosthandler.py' INFO : wheel : adding 'telegram/ext/_handlers/chatjoinrequesthandler.py' INFO : wheel : adding 'telegram/ext/_handlers/chatmemberhandler.py' INFO : wheel : adding 'telegram/ext/_handlers/choseninlineresulthandler.py' INFO : wheel : adding 'telegram/ext/_handlers/commandhandler.py' INFO : wheel : adding 'telegram/ext/_handlers/conversationhandler.py' INFO : wheel : adding 'telegram/ext/_handlers/inlinequeryhandler.py' INFO : wheel : adding 'telegram/ext/_handlers/messagehandler.py' INFO : wheel : adding 'telegram/ext/_handlers/messagereactionhandler.py' INFO : wheel : adding 'telegram/ext/_handlers/pollanswerhandler.py' INFO : wheel : adding 'telegram/ext/_handlers/pollhandler.py' INFO : wheel : adding 'telegram/ext/_handlers/precheckoutqueryhandler.py' INFO : wheel : adding 'telegram/ext/_handlers/prefixhandler.py' INFO : wheel : adding 'telegram/ext/_handlers/shippingqueryhandler.py' INFO : wheel : adding 'telegram/ext/_handlers/stringcommandhandler.py' INFO : wheel : adding 'telegram/ext/_handlers/stringregexhandler.py' INFO : wheel : adding 'telegram/ext/_handlers/typehandler.py' INFO : wheel : adding 'telegram/ext/_utils/__init__.py' INFO : wheel : adding 'telegram/ext/_utils/_update_parsing.py' INFO : wheel : adding 'telegram/ext/_utils/stack.py' INFO : wheel : adding 'telegram/ext/_utils/trackingdict.py' INFO : wheel : adding 'telegram/ext/_utils/types.py' INFO : wheel : adding 'telegram/ext/_utils/webhookhandler.py' INFO : wheel : adding 'telegram/request/__init__.py' INFO : wheel : adding 'telegram/request/_baserequest.py' INFO : wheel : adding 'telegram/request/_httpxrequest.py' INFO : wheel : adding 'telegram/request/_requestdata.py' INFO : wheel : adding 'telegram/request/_requestparameter.py' INFO : wheel : adding 'python_telegram_bot-21.0.1.dist-info/LICENSE' INFO : wheel : adding 'python_telegram_bot-21.0.1.dist-info/LICENSE.dual' INFO : wheel : adding 'python_telegram_bot-21.0.1.dist-info/LICENSE.lesser' INFO : wheel : adding 'python_telegram_bot-21.0.1.dist-info/METADATA' INFO : wheel : adding 'python_telegram_bot-21.0.1.dist-info/WHEEL' INFO : wheel : adding 'python_telegram_bot-21.0.1.dist-info/top_level.txt' INFO : wheel : adding 'python_telegram_bot-21.0.1.dist-info/RECORD' INFO : wheel : removing build/bdist.linux-i686/wheel INFO : pyproject_installer.build_cmd._build : Built wheel: python_telegram_bot-21.0.1-py3-none-any.whl + exit 0 Executing(%install): /bin/sh -e /usr/src/tmp/rpm-tmp.78273 + umask 022 + /usr/bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + /bin/chmod -Rf u+rwX -- /usr/src/tmp/python3-module-telegram-bot-buildroot + : + /bin/rm -rf -- /usr/src/tmp/python3-module-telegram-bot-buildroot + PATH=/usr/libexec/rpm-build:/usr/src/bin:/usr/bin:/bin:/usr/local/bin:/usr/games + cd python3-module-telegram-bot-21.0.1 + /usr/bin/python3 -m pyproject_installer -v install --destdir=/usr/src/tmp/python3-module-telegram-bot-buildroot INFO : pyproject_installer.install_cmd._install : Installing wheel INFO : pyproject_installer.install_cmd._install : Wheel directory: /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/dist INFO : pyproject_installer.install_cmd._install : Wheel filename: python_telegram_bot-21.0.1-py3-none-any.whl INFO : pyproject_installer.install_cmd._install : Destination: /usr/src/tmp/python3-module-telegram-bot-buildroot DEBUG : pyproject_installer.lib.wheel : Parsing wheel filename DEBUG : pyproject_installer.lib.wheel : Validating wheel file DEBUG : pyproject_installer.lib.wheel : Validating wheel spec version DEBUG : pyproject_installer.lib.wheel : Parsing wheel spec metadata DEBUG : pyproject_installer.lib.wheel : Validating RECORD INFO : pyproject_installer.install_cmd._install : Wheel installation root: /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages INFO : pyproject_installer.install_cmd._install : Extracting wheel DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: python_telegram_bot-21.0.1.dist-info/LICENSE DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: python_telegram_bot-21.0.1.dist-info/LICENSE.dual DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: python_telegram_bot-21.0.1.dist-info/LICENSE.lesser DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: python_telegram_bot-21.0.1.dist-info/WHEEL DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: python_telegram_bot-21.0.1.dist-info/top_level.txt DEBUG : pyproject_installer.install_cmd._install : Filtering out not allowed file: python_telegram_bot-21.0.1.dist-info/RECORD INFO : pyproject_installer.install_cmd._install : Wheel was installed + /usr/lib/rpm/brp-alt Cleaning files in /usr/src/tmp/python3-module-telegram-bot-buildroot (auto) Verifying and fixing files in /usr/src/tmp/python3-module-telegram-bot-buildroot (binconfig,pkgconfig,libtool,desktop,gnuconfig) Checking contents of files in /usr/src/tmp/python3-module-telegram-bot-buildroot/ (default) Compressing files in /usr/src/tmp/python3-module-telegram-bot-buildroot (auto) Adjusting library links in /usr/src/tmp/python3-module-telegram-bot-buildroot ./usr/lib: (from :0) Verifying ELF objects in /usr/src/tmp/python3-module-telegram-bot-buildroot (arch=normal,fhs=normal,lfs=relaxed,lint=relaxed,rpath=normal,stack=normal,textrel=normal,unresolved=normal) Splitting links to aliased files under /{,s}bin in /usr/src/tmp/python3-module-telegram-bot-buildroot Bytecompiling python3 modules in /usr/src/tmp/python3-module-telegram-bot-buildroot using /usr/bin/python3 compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/_basemedium.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/_basethumbedmedium.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/animation.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/audio.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/chatphoto.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/contact.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/document.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/file.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputfile.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputmedia.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputsticker.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/location.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/photosize.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/sticker.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/venue.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/video.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/videonote.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/voice.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/callbackgame.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/game.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/gamehighscore.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardbutton.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardmarkup.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequery.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresult.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultarticle.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultaudio.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedaudio.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcacheddocument.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedgif.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedmpeg4gif.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedphoto.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedsticker.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvideo.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvoice.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcontact.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultdocument.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgame.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgif.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultlocation.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultmpeg4gif.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultphoto.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultsbutton.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvenue.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvideo.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvoice.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputcontactmessagecontent.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputinvoicemessagecontent.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputlocationmessagecontent.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputmessagecontent.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputtextmessagecontent.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputvenuemessagecontent.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/credentials.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/data.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/encryptedpassportelement.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportdata.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportelementerrors.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportfile.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/invoice.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/labeledprice.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/orderinfo.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/precheckoutquery.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingaddress.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingoption.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingquery.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/successfulpayment.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/argumentparsing.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/datetime.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/defaultvalue.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/enum.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/files.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/logging.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/markup.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/repr.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/strings.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/types.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/warnings.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/warnings_transition.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/basehandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/callbackqueryhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatboosthandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatjoinrequesthandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatmemberhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/choseninlineresulthandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/commandhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/inlinequeryhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagehandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagereactionhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/pollanswerhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/pollhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/precheckoutqueryhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/prefixhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/shippingqueryhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/stringcommandhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/stringregexhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/typehandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/_update_parsing.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/stack.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/trackingdict.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/types.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/webhookhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_aioratelimiter.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_basepersistence.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_baseratelimiter.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_baseupdateprocessor.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackcontext.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackdatacache.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_contexttypes.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_defaults.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_dictpersistence.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_extbot.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_jobqueue.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_picklepersistence.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_updater.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/filters.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_baserequest.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_httpxrequest.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_requestdata.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_requestparameter.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__main__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botcommand.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botcommandscope.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botdescription.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botname.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_callbackquery.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chat.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatadministratorrights.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatboost.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatinvitelink.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatjoinrequest.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatlocation.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmember.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmemberupdated.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatpermissions.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_choseninlineresult.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_dice.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_forcereply.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_forumtopic.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_giveaway.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbutton.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbuttonpolltype.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbuttonrequest.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_linkpreviewoptions.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_loginurl.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_menubutton.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageautodeletetimerchanged.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageentity.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageid.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageorigin.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messagereactionupdated.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_poll.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_proximityalerttriggered.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reaction.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_replykeyboardmarkup.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_replykeyboardremove.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_sentwebappmessage.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_shared.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_story.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_switchinlinequerychosenchat.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_telegramobject.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_user.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_userprofilephotos.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_version.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_videochat.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webappdata.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webappinfo.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webhookinfo.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_writeaccessallowed.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/constants.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/error.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/helpers.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/warnings.py Bytecompiling python3 modules with optimization in /usr/src/tmp/python3-module-telegram-bot-buildroot using /usr/bin/python3 -O compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/_basemedium.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/_basethumbedmedium.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/animation.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/audio.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/chatphoto.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/contact.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/document.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/file.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputfile.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputmedia.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputsticker.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/location.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/photosize.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/sticker.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/venue.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/video.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/videonote.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/voice.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/callbackgame.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/game.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/gamehighscore.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardbutton.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardmarkup.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequery.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresult.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultarticle.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultaudio.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedaudio.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcacheddocument.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedgif.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedmpeg4gif.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedphoto.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedsticker.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvideo.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvoice.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcontact.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultdocument.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgame.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgif.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultlocation.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultmpeg4gif.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultphoto.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultsbutton.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvenue.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvideo.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvoice.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputcontactmessagecontent.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputinvoicemessagecontent.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputlocationmessagecontent.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputmessagecontent.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputtextmessagecontent.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputvenuemessagecontent.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/credentials.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/data.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/encryptedpassportelement.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportdata.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportelementerrors.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportfile.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/invoice.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/labeledprice.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/orderinfo.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/precheckoutquery.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingaddress.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingoption.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingquery.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/successfulpayment.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/argumentparsing.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/datetime.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/defaultvalue.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/enum.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/files.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/logging.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/markup.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/repr.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/strings.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/types.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/warnings.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/warnings_transition.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/basehandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/callbackqueryhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatboosthandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatjoinrequesthandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatmemberhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/choseninlineresulthandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/commandhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/inlinequeryhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagehandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagereactionhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/pollanswerhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/pollhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/precheckoutqueryhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/prefixhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/shippingqueryhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/stringcommandhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/stringregexhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/typehandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/_update_parsing.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/stack.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/trackingdict.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/types.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/webhookhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_aioratelimiter.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_basepersistence.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_baseratelimiter.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_baseupdateprocessor.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackcontext.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackdatacache.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_contexttypes.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_defaults.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_dictpersistence.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_extbot.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_jobqueue.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_picklepersistence.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_updater.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/filters.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_baserequest.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_httpxrequest.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_requestdata.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_requestparameter.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__main__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botcommand.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botcommandscope.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botdescription.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botname.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_callbackquery.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chat.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatadministratorrights.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatboost.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatinvitelink.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatjoinrequest.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatlocation.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmember.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmemberupdated.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatpermissions.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_choseninlineresult.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_dice.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_forcereply.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_forumtopic.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_giveaway.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbutton.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbuttonpolltype.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbuttonrequest.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_linkpreviewoptions.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_loginurl.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_menubutton.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageautodeletetimerchanged.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageentity.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageid.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageorigin.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messagereactionupdated.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_poll.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_proximityalerttriggered.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reaction.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_replykeyboardmarkup.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_replykeyboardremove.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_sentwebappmessage.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_shared.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_story.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_switchinlinequerychosenchat.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_telegramobject.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_user.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_userprofilephotos.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_version.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_videochat.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webappdata.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webappinfo.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webhookinfo.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_writeaccessallowed.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/constants.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/error.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/helpers.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/warnings.py Bytecompiling python3 modules with optimization-2 in /usr/src/tmp/python3-module-telegram-bot-buildroot using /usr/bin/python3 -OO compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/_basemedium.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/_basethumbedmedium.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/animation.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/audio.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/chatphoto.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/contact.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/document.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/file.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputfile.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputmedia.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputsticker.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/location.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/photosize.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/sticker.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/venue.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/video.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/videonote.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/voice.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/callbackgame.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/game.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/gamehighscore.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardbutton.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardmarkup.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequery.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresult.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultarticle.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultaudio.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedaudio.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcacheddocument.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedgif.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedmpeg4gif.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedphoto.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedsticker.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvideo.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvoice.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcontact.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultdocument.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgame.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgif.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultlocation.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultmpeg4gif.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultphoto.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultsbutton.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvenue.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvideo.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvoice.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputcontactmessagecontent.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputinvoicemessagecontent.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputlocationmessagecontent.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputmessagecontent.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputtextmessagecontent.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputvenuemessagecontent.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/credentials.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/data.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/encryptedpassportelement.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportdata.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportelementerrors.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportfile.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/invoice.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/labeledprice.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/orderinfo.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/precheckoutquery.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingaddress.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingoption.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingquery.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/successfulpayment.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/argumentparsing.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/datetime.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/defaultvalue.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/enum.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/files.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/logging.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/markup.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/repr.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/strings.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/types.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/warnings.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/warnings_transition.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/basehandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/callbackqueryhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatboosthandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatjoinrequesthandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatmemberhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/choseninlineresulthandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/commandhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/inlinequeryhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagehandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagereactionhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/pollanswerhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/pollhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/precheckoutqueryhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/prefixhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/shippingqueryhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/stringcommandhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/stringregexhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/typehandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/_update_parsing.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/stack.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/trackingdict.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/types.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/webhookhandler.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_aioratelimiter.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_basepersistence.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_baseratelimiter.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_baseupdateprocessor.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackcontext.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackdatacache.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_contexttypes.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_defaults.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_dictpersistence.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_extbot.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_jobqueue.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_picklepersistence.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_updater.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/filters.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_baserequest.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_httpxrequest.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_requestdata.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_requestparameter.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__main__.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botcommand.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botcommandscope.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botdescription.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botname.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_callbackquery.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chat.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatadministratorrights.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatboost.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatinvitelink.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatjoinrequest.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatlocation.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmember.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmemberupdated.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatpermissions.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_choseninlineresult.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_dice.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_forcereply.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_forumtopic.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_giveaway.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbutton.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbuttonpolltype.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbuttonrequest.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_linkpreviewoptions.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_loginurl.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_menubutton.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageautodeletetimerchanged.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageentity.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageid.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageorigin.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messagereactionupdated.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_poll.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_proximityalerttriggered.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reaction.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_replykeyboardmarkup.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_replykeyboardremove.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_sentwebappmessage.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_shared.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_story.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_switchinlinequerychosenchat.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_telegramobject.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_user.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_userprofilephotos.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_version.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_videochat.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webappdata.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webappinfo.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webhookinfo.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_writeaccessallowed.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/constants.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/error.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/helpers.py compile /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/warnings.py Hardlinking identical .pyc and .opt-?.pyc files './usr/lib/python3/site-packages/telegram/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/__main__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/__main__.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_bot.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_bot.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_botcommand.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_botcommand.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_botcommandscope.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_botcommandscope.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_botdescription.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_botdescription.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_botname.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_botname.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_callbackquery.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_callbackquery.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_chat.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_chat.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_chatadministratorrights.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_chatadministratorrights.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_chatboost.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_chatboost.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_chatinvitelink.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_chatinvitelink.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_chatjoinrequest.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_chatjoinrequest.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_chatlocation.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_chatlocation.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_chatmember.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_chatmember.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_chatmemberupdated.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_chatmemberupdated.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_chatpermissions.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_chatpermissions.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_choseninlineresult.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_choseninlineresult.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_dice.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_dice.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_forcereply.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_forcereply.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_forumtopic.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_forumtopic.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_giveaway.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_giveaway.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_keyboardbutton.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_keyboardbutton.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_keyboardbuttonpolltype.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_keyboardbuttonpolltype.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_keyboardbuttonrequest.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_keyboardbuttonrequest.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_linkpreviewoptions.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_linkpreviewoptions.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_loginurl.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_loginurl.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_menubutton.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_menubutton.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_message.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_message.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_messageautodeletetimerchanged.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_messageautodeletetimerchanged.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_messageentity.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_messageentity.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_messageid.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_messageid.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_messageorigin.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_messageorigin.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_messagereactionupdated.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_messagereactionupdated.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_poll.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_poll.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_proximityalerttriggered.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_proximityalerttriggered.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_reaction.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_reaction.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_reply.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_reply.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_replykeyboardmarkup.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_replykeyboardmarkup.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_replykeyboardremove.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_replykeyboardremove.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_sentwebappmessage.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_sentwebappmessage.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_shared.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_shared.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_story.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_story.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_switchinlinequerychosenchat.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_switchinlinequerychosenchat.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_telegramobject.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_telegramobject.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_update.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_update.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_user.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_user.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_userprofilephotos.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_userprofilephotos.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_version.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_version.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_videochat.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_videochat.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_webappdata.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_webappdata.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_webappinfo.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_webappinfo.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_webhookinfo.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_webhookinfo.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/_writeaccessallowed.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/_writeaccessallowed.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/constants.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/constants.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/error.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/error.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/helpers.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/helpers.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/__pycache__/warnings.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/__pycache__/warnings.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/_basemedium.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/_basemedium.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/_basethumbedmedium.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/_basethumbedmedium.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/animation.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/animation.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/audio.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/audio.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/chatphoto.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/chatphoto.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/contact.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/contact.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/document.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/document.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/file.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/file.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/inputfile.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/inputfile.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/inputmedia.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/inputmedia.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/inputsticker.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/inputsticker.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/location.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/location.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/photosize.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/photosize.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/sticker.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/sticker.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/venue.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/venue.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/video.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/video.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/videonote.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/videonote.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_files/__pycache__/voice.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_files/__pycache__/voice.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_games/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_games/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_games/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/telegram/_games/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/telegram/_games/__pycache__/callbackgame.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_games/__pycache__/callbackgame.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_games/__pycache__/game.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_games/__pycache__/game.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_games/__pycache__/gamehighscore.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_games/__pycache__/gamehighscore.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinekeyboardbutton.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinekeyboardbutton.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinekeyboardmarkup.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinekeyboardmarkup.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequery.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequery.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresult.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresult.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultarticle.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultarticle.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultaudio.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultaudio.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultcachedaudio.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultcachedaudio.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultcacheddocument.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultcacheddocument.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultcachedgif.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultcachedgif.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultcachedmpeg4gif.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultcachedmpeg4gif.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultcachedphoto.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultcachedphoto.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultcachedsticker.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultcachedsticker.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultcachedvideo.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultcachedvideo.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultcachedvoice.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultcachedvoice.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultcontact.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultcontact.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultdocument.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultdocument.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultgame.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultgame.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultgif.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultgif.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultlocation.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultlocation.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultmpeg4gif.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultmpeg4gif.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultphoto.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultphoto.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultsbutton.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultsbutton.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultvenue.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultvenue.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultvideo.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultvideo.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultvoice.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inlinequeryresultvoice.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inputcontactmessagecontent.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inputcontactmessagecontent.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inputinvoicemessagecontent.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inputinvoicemessagecontent.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inputlocationmessagecontent.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inputlocationmessagecontent.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inputmessagecontent.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inputmessagecontent.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inputtextmessagecontent.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inputtextmessagecontent.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inputvenuemessagecontent.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_inline/__pycache__/inputvenuemessagecontent.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_passport/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_passport/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_passport/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/telegram/_passport/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/telegram/_passport/__pycache__/credentials.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_passport/__pycache__/credentials.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_passport/__pycache__/data.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_passport/__pycache__/data.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_passport/__pycache__/encryptedpassportelement.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_passport/__pycache__/encryptedpassportelement.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_passport/__pycache__/passportdata.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_passport/__pycache__/passportdata.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_passport/__pycache__/passportelementerrors.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_passport/__pycache__/passportelementerrors.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_passport/__pycache__/passportfile.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_passport/__pycache__/passportfile.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_payment/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_payment/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_payment/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/telegram/_payment/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/telegram/_payment/__pycache__/invoice.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_payment/__pycache__/invoice.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_payment/__pycache__/labeledprice.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_payment/__pycache__/labeledprice.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_payment/__pycache__/orderinfo.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_payment/__pycache__/orderinfo.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_payment/__pycache__/precheckoutquery.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_payment/__pycache__/precheckoutquery.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_payment/__pycache__/shippingaddress.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_payment/__pycache__/shippingaddress.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_payment/__pycache__/shippingoption.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_payment/__pycache__/shippingoption.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_payment/__pycache__/shippingquery.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_payment/__pycache__/shippingquery.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_payment/__pycache__/successfulpayment.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_payment/__pycache__/successfulpayment.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_utils/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_utils/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_utils/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/telegram/_utils/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/telegram/_utils/__pycache__/argumentparsing.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_utils/__pycache__/argumentparsing.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_utils/__pycache__/datetime.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_utils/__pycache__/datetime.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_utils/__pycache__/defaultvalue.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_utils/__pycache__/defaultvalue.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_utils/__pycache__/enum.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_utils/__pycache__/enum.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_utils/__pycache__/files.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_utils/__pycache__/files.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_utils/__pycache__/logging.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_utils/__pycache__/logging.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_utils/__pycache__/markup.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_utils/__pycache__/markup.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_utils/__pycache__/repr.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_utils/__pycache__/repr.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_utils/__pycache__/strings.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_utils/__pycache__/strings.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_utils/__pycache__/types.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_utils/__pycache__/types.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_utils/__pycache__/warnings.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_utils/__pycache__/warnings.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/_utils/__pycache__/warnings_transition.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/_utils/__pycache__/warnings_transition.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/__pycache__/_aioratelimiter.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/__pycache__/_aioratelimiter.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/__pycache__/_application.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/__pycache__/_application.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/__pycache__/_applicationbuilder.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/__pycache__/_applicationbuilder.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/__pycache__/_basepersistence.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/__pycache__/_basepersistence.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/__pycache__/_baseratelimiter.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/__pycache__/_baseratelimiter.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/__pycache__/_baseupdateprocessor.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/__pycache__/_baseupdateprocessor.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/__pycache__/_callbackcontext.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/__pycache__/_callbackcontext.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/__pycache__/_callbackdatacache.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/__pycache__/_callbackdatacache.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/__pycache__/_contexttypes.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/__pycache__/_contexttypes.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/__pycache__/_defaults.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/__pycache__/_defaults.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/__pycache__/_dictpersistence.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/__pycache__/_dictpersistence.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/__pycache__/_extbot.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/__pycache__/_extbot.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/__pycache__/_jobqueue.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/__pycache__/_jobqueue.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/__pycache__/_picklepersistence.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/__pycache__/_picklepersistence.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/__pycache__/_updater.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/__pycache__/_updater.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/__pycache__/filters.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/__pycache__/filters.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/basehandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/basehandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/callbackqueryhandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/callbackqueryhandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/chatboosthandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/chatboosthandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/chatjoinrequesthandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/chatjoinrequesthandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/chatmemberhandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/chatmemberhandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/choseninlineresulthandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/choseninlineresulthandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/commandhandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/commandhandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/conversationhandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/conversationhandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/inlinequeryhandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/inlinequeryhandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/messagehandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/messagehandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/messagereactionhandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/messagereactionhandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/pollanswerhandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/pollanswerhandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/pollhandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/pollhandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/precheckoutqueryhandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/precheckoutqueryhandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/prefixhandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/prefixhandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/shippingqueryhandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/shippingqueryhandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/stringcommandhandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/stringcommandhandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/stringregexhandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/stringregexhandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/typehandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_handlers/__pycache__/typehandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_utils/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_utils/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_utils/__pycache__/__init__.cpython-312.opt-2.pyc' => './usr/lib/python3/site-packages/telegram/ext/_utils/__pycache__/__init__.cpython-312.opt-1.pyc' './usr/lib/python3/site-packages/telegram/ext/_utils/__pycache__/_update_parsing.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_utils/__pycache__/_update_parsing.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_utils/__pycache__/stack.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_utils/__pycache__/stack.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_utils/__pycache__/trackingdict.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_utils/__pycache__/trackingdict.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_utils/__pycache__/types.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_utils/__pycache__/types.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/ext/_utils/__pycache__/webhookhandler.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/ext/_utils/__pycache__/webhookhandler.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/request/__pycache__/__init__.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/request/__pycache__/__init__.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/request/__pycache__/_baserequest.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/request/__pycache__/_baserequest.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/request/__pycache__/_httpxrequest.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/request/__pycache__/_httpxrequest.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/request/__pycache__/_requestdata.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/request/__pycache__/_requestdata.cpython-312.pyc' './usr/lib/python3/site-packages/telegram/request/__pycache__/_requestparameter.cpython-312.opt-1.pyc' => './usr/lib/python3/site-packages/telegram/request/__pycache__/_requestparameter.cpython-312.pyc' Executing(%check): /bin/sh -e /usr/src/tmp/rpm-tmp.45833 + umask 022 + /usr/bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd python3-module-telegram-bot-21.0.1 + export 'CFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'CXXFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + CXXFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export 'FFLAGS=-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + FFLAGS='-pipe -frecord-gcc-switches -Wall -g -O2 -flto=auto -march=i586 -mtune=generic' + export NO_INTERNET=YES + NO_INTERNET=YES + /usr/bin/python3 -m pyproject_installer run -- python3 -m pytest -n auto --dist=loadgroup -m no_req INFO : Creating venv INFO : Installing console scripts INFO : Installing package: /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/dist/python_telegram_bot-21.0.1-py3-none-any.whl INFO : Running command: ['/usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3', '-m', 'pyproject_installer', 'install', '/usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/dist/python_telegram_bot-21.0.1-py3-none-any.whl'] INFO : Running command: ['python3', '-m', 'pytest', '-n', 'auto', '--dist=loadgroup', '-m', 'no_req'] ============================= test session starts ============================== platform linux -- Python 3.12.2, pytest-8.0.2, pluggy-1.5.0 rootdir: /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1 configfile: pyproject.toml testpaths: tests plugins: anyio-4.4.0, xdist-3.6.1, asyncio-0.23.7, flaky-3.8.1 asyncio: mode=Mode.AUTO created: 16/16 workers 16 workers [3340 items] ......EEE.EE.......EEEE.EEE.E..E.E............E....E........EE.E....EEEE [ 2%] E....EE..E.......E..EE....E............E.E.EE..EE..E..E.EE.E.E..EE.E.EEE [ 4%] E....E...................E.EE...EE.E..EE.EE.E.E..EEE.EE.E.E.EE..E.EE.E.E [ 6%] .....................E...E.....................................E........ [ 8%] ..........................EE...E......E........E........................ [ 10%] ............................ss..s.......E............................... [ 12%] ................EE....E.............................E...EE.E.EE..E..E.E. [ 15%] .E.E..EE....................................................s........... [ 17%] ....E.....................E...................E......................... [ 19%] ...............F..............................F.......................... [ 21%] ........................................................................ [ 23%] ........................................................................ [ 25%] ........................................................................ [ 28%] ........................................................................ [ 30%] ........................................................................ [ 32%] ........................................................................ [ 34%] ..............................................................F......... [ 36%] .........F.............................................................. [ 38%] ........................................................................ [ 40%] .........F............................................................... [ 43%] ........................................................................ [ 45%] ........................................................................ [ 47%] ........................................................................ [ 49%] ........................................................................ [ 51%] ......................................................................... [ 53%] ........................................................................ [ 56%] ........................................................................ [ 58%] ......................FEEEEE.....E...................................... [ 60%] ........................................................................ [ 62%] ..............ss...ss................................................... [ 64%] ............................E........................................... [ 66%] ........................................................................ [ 69%] ........................................................................ [ 71%] ........................................................................ [ 73%] ........................................................................ [ 75%] ........................................................................ [ 77%] ........................................................................ [ 79%] ........................................................................ [ 82%] ................................E....................................... [ 84%] ...........E.E............................................F.....F..E.... [ 86%] ..........................E............................................. [ 88%] ............................E........................................... [ 90%] ........................................................................ [ 92%] ......................................................................E.. [ 94%] ........................................................................ [ 97%] ...........................................E............................ [ 99%] ........................ [100%] ==================================== ERRORS ==================================== ____________ ERROR collecting tests/test_official/test_official.py _____________ ImportError while importing test module '/usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/tests/test_official/test_official.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: /usr/lib/python3.12/importlib/__init__.py:90: in import_module return _bootstrap._gcd_import(name[level:], package, level) tests/test_official/test_official.py:26: in from tests.test_official.arg_type_checker import ( tests/test_official/arg_type_checker.py:33: in from tests.test_official.exceptions import ParamTypeCheckingExceptions as PTCE tests/test_official/exceptions.py:23: in from tests.test_official.helpers import _get_params_base tests/test_official/helpers.py:25: in from bs4 import PageElement, Tag E ModuleNotFoundError: No module named 'bs4' ______ ERROR at setup of TestAnimationWithoutRequest.test_slot_behaviour _______ [gw0] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def animation(bot, chat_id): with data_file("game.gif").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: return ( > await bot.send_animation(chat_id, animation=f, read_timeout=50, thumbnail=thumb) ).animation tests/_files/test_animation.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2365: in send_animation return await super().send_animation( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2221: in send_animation return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ______ ERROR at setup of TestAnimationWithoutRequest.test_expected_values ______ [gw3] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def animation(bot, chat_id): with data_file("game.gif").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: return ( > await bot.send_animation(chat_id, animation=f, read_timeout=50, thumbnail=thumb) ).animation tests/_files/test_animation.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2365: in send_animation return await super().send_animation( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2221: in send_animation return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestAnimationWithoutRequest.test_get_file_instance_method __ [gw10] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def animation(bot, chat_id): with data_file("game.gif").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: return ( > await bot.send_animation(chat_id, animation=f, read_timeout=50, thumbnail=thumb) ).animation tests/_files/test_animation.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2365: in send_animation return await super().send_animation( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2221: in send_animation return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ____ ERROR at setup of TestAnimationWithoutRequest.test_send_with_animation ____ [gw9] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def animation(bot, chat_id): with data_file("game.gif").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: return ( > await bot.send_animation(chat_id, animation=f, read_timeout=50, thumbnail=thumb) ).animation tests/_files/test_animation.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2365: in send_animation return await super().send_animation( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2221: in send_animation return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _________ ERROR at setup of TestAnimationWithoutRequest.test_creation __________ [gw1] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def animation(bot, chat_id): with data_file("game.gif").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: return ( > await bot.send_animation(chat_id, animation=f, read_timeout=50, thumbnail=thumb) ).animation tests/_files/test_animation.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2365: in send_animation return await super().send_animation( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2221: in send_animation return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ___________ ERROR at setup of TestAudioWithoutRequest.test_equality ____________ [gw7] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def audio(bot, chat_id): with data_file("telegram.mp3").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: > return (await bot.send_audio(chat_id, audio=f, read_timeout=50, thumbnail=thumb)).audio tests/_files/test_audio.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2418: in send_audio return await super().send_audio( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1526: in send_audio return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ____________ ERROR at setup of TestAudioWithoutRequest.test_to_dict ____________ [gw5] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def audio(bot, chat_id): with data_file("telegram.mp3").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: > return (await bot.send_audio(chat_id, audio=f, read_timeout=50, thumbnail=thumb)).audio tests/_files/test_audio.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2418: in send_audio return await super().send_audio( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1526: in send_audio return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError __________ ERROR at setup of TestAnimationWithoutRequest.test_to_dict __________ [gw2] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def animation(bot, chat_id): with data_file("game.gif").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: return ( > await bot.send_animation(chat_id, animation=f, read_timeout=50, thumbnail=thumb) ).animation tests/_files/test_animation.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2365: in send_animation return await super().send_animation( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2221: in send_animation return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ________ ERROR at setup of TestAudioWithoutRequest.test_send_with_audio ________ [gw8] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def audio(bot, chat_id): with data_file("telegram.mp3").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: > return (await bot.send_audio(chat_id, audio=f, read_timeout=50, thumbnail=thumb)).audio tests/_files/test_audio.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2418: in send_audio return await super().send_audio( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1526: in send_audio return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ____________ ERROR at setup of TestAudioWithoutRequest.test_de_json ____________ [gw6] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def audio(bot, chat_id): with data_file("telegram.mp3").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: > return (await bot.send_audio(chat_id, audio=f, read_timeout=50, thumbnail=thumb)).audio tests/_files/test_audio.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2418: in send_audio return await super().send_audio( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1526: in send_audio return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError __________ ERROR at setup of TestAnimationWithoutRequest.test_de_json __________ [gw4] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def animation(bot, chat_id): with data_file("game.gif").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: return ( > await bot.send_animation(chat_id, animation=f, read_timeout=50, thumbnail=thumb) ).animation tests/_files/test_animation.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2365: in send_animation return await super().send_animation( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2221: in send_animation return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestAnimationWithoutRequest.test_send_animation_default_quote_parse_mode[default_bot1-MarkdownV2] _ [gw13] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def animation(bot, chat_id): with data_file("game.gif").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: return ( > await bot.send_animation(chat_id, animation=f, read_timeout=50, thumbnail=thumb) ).animation tests/_files/test_animation.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2365: in send_animation return await super().send_animation( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2221: in send_animation return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestAnimationWithoutRequest.test_send_animation_default_quote_parse_mode[default_bot2-MarkdownV2] _ [gw12] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def animation(bot, chat_id): with data_file("game.gif").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: return ( > await bot.send_animation(chat_id, animation=f, read_timeout=50, thumbnail=thumb) ).animation tests/_files/test_animation.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2365: in send_animation return await super().send_animation( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2221: in send_animation return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestAnimationWithoutRequest.test_send_animation_default_quote_parse_mode[default_bot0-None] _ [gw11] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def animation(bot, chat_id): with data_file("game.gif").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: return ( > await bot.send_animation(chat_id, animation=f, read_timeout=50, thumbnail=thumb) ).animation tests/_files/test_animation.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2365: in send_animation return await super().send_animation( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2221: in send_animation return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ________ ERROR at setup of TestAudioWithoutRequest.test_slot_behaviour _________ [gw3] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def audio(bot, chat_id): with data_file("telegram.mp3").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: > return (await bot.send_audio(chat_id, audio=f, read_timeout=50, thumbnail=thumb)).audio tests/_files/test_audio.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2418: in send_audio return await super().send_audio( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1526: in send_audio return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError __________ ERROR at setup of TestChatPhotoWithoutRequest.test_de_json __________ [gw7] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/getChat' method = 'POST' request_data = read_timeout = 50, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] super_group_id = '-1001221216830' @pytest.fixture(scope="module") async def chat_photo(bot, super_group_id): async def func(): return (await bot.get_chat(super_group_id, read_timeout=50)).photo > return await expect_bad_request( func, "Type of file mismatch", "Telegram did not accept the file." ) tests/_files/test_chatphoto.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_chatphoto.py:48: in func return (await bot.get_chat(super_group_id, read_timeout=50)).photo telegram/ext/_extbot.py:851: in get_chat result = await super().get_chat( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:4423: in get_chat result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/getChat' method = 'POST' request_data = read_timeout = 50, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestChatPhotoWithoutRequest.test_get_small_file_instance_method _ [gw5] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getChat' method = 'POST' request_data = read_timeout = 50, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] super_group_id = '-1001310911135' @pytest.fixture(scope="module") async def chat_photo(bot, super_group_id): async def func(): return (await bot.get_chat(super_group_id, read_timeout=50)).photo > return await expect_bad_request( func, "Type of file mismatch", "Telegram did not accept the file." ) tests/_files/test_chatphoto.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_chatphoto.py:48: in func return (await bot.get_chat(super_group_id, read_timeout=50)).photo telegram/ext/_extbot.py:851: in get_chat result = await super().get_chat( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:4423: in get_chat result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getChat' method = 'POST' request_data = read_timeout = 50, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError __________ ERROR at setup of TestDocumentWithoutRequest.test_to_dict ___________ [gw8] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def document(bot, chat_id): with data_file("telegram.png").open("rb") as f: > return (await bot.send_document(chat_id, document=f, read_timeout=50)).document tests/_files/test_document.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2572: in send_document return await super().send_document( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1667: in send_document return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ______ ERROR at setup of TestChatPhotoWithoutRequest.test_slot_behaviour _______ [gw6] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getChat' method = 'POST' request_data = read_timeout = 50, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] super_group_id = '-1001310911135' @pytest.fixture(scope="module") async def chat_photo(bot, super_group_id): async def func(): return (await bot.get_chat(super_group_id, read_timeout=50)).photo > return await expect_bad_request( func, "Type of file mismatch", "Telegram did not accept the file." ) tests/_files/test_chatphoto.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_chatphoto.py:48: in func return (await bot.get_chat(super_group_id, read_timeout=50)).photo telegram/ext/_extbot.py:851: in get_chat result = await super().get_chat( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:4423: in get_chat result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getChat' method = 'POST' request_data = read_timeout = 50, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ________ ERROR at setup of TestAudioWithoutRequest.test_expected_values ________ [gw2] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def audio(bot, chat_id): with data_file("telegram.mp3").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: > return (await bot.send_audio(chat_id, audio=f, read_timeout=50, thumbnail=thumb)).audio tests/_files/test_audio.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2418: in send_audio return await super().send_audio( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1526: in send_audio return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ___________ ERROR at setup of TestAudioWithoutRequest.test_creation ____________ [gw4] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def audio(bot, chat_id): with data_file("telegram.mp3").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: > return (await bot.send_audio(chat_id, audio=f, read_timeout=50, thumbnail=thumb)).audio tests/_files/test_audio.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2418: in send_audio return await super().send_audio( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1526: in send_audio return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestChatPhotoWithoutRequest.test_get_big_file_instance_method _ [gw0] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getChat' method = 'POST' request_data = read_timeout = 50, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] super_group_id = '-1001310911135' @pytest.fixture(scope="module") async def chat_photo(bot, super_group_id): async def func(): return (await bot.get_chat(super_group_id, read_timeout=50)).photo > return await expect_bad_request( func, "Type of file mismatch", "Telegram did not accept the file." ) tests/_files/test_chatphoto.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_chatphoto.py:48: in func return (await bot.get_chat(super_group_id, read_timeout=50)).photo telegram/ext/_extbot.py:851: in get_chat result = await super().get_chat( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:4423: in get_chat result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getChat' method = 'POST' request_data = read_timeout = 50, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ___ ERROR at setup of TestAudioWithoutRequest.test_get_file_instance_method ____ [gw13] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def audio(bot, chat_id): with data_file("telegram.mp3").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: > return (await bot.send_audio(chat_id, audio=f, read_timeout=50, thumbnail=thumb)).audio tests/_files/test_audio.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2418: in send_audio return await super().send_audio( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1526: in send_audio return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestAudioWithoutRequest.test_send_audio_default_quote_parse_mode[default_bot2-MarkdownV2] _ [gw15] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def audio(bot, chat_id): with data_file("telegram.mp3").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: > return (await bot.send_audio(chat_id, audio=f, read_timeout=50, thumbnail=thumb)).audio tests/_files/test_audio.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2418: in send_audio return await super().send_audio( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1526: in send_audio return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError __ ERROR at setup of TestDocumentWithoutRequest.test_get_file_instance_method __ [gw11] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def document(bot, chat_id): with data_file("telegram.png").open("rb") as f: > return (await bot.send_document(chat_id, document=f, read_timeout=50)).document tests/_files/test_document.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2572: in send_document return await super().send_document( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1667: in send_document return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestAudioWithoutRequest.test_send_audio_default_quote_parse_mode[default_bot1-MarkdownV2] _ [gw14] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def audio(bot, chat_id): with data_file("telegram.mp3").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: > return (await bot.send_audio(chat_id, audio=f, read_timeout=50, thumbnail=thumb)).audio tests/_files/test_audio.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2418: in send_audio return await super().send_audio( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1526: in send_audio return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ______ ERROR at setup of TestDocumentWithoutRequest.test_expected_values _______ [gw5] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def document(bot, chat_id): with data_file("telegram.png").open("rb") as f: > return (await bot.send_document(chat_id, document=f, read_timeout=50)).document tests/_files/test_document.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2572: in send_document return await super().send_document( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1667: in send_document return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError __________ ERROR at setup of TestDocumentWithoutRequest.test_creation __________ [gw7] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def document(bot, chat_id): with data_file("telegram.png").open("rb") as f: > return (await bot.send_document(chat_id, document=f, read_timeout=50)).document tests/_files/test_document.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2572: in send_document return await super().send_document( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1667: in send_document return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError __________ ERROR at setup of TestDocumentWithoutRequest.test_equality __________ [gw8] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def document(bot, chat_id): with data_file("telegram.png").open("rb") as f: > return (await bot.send_document(chat_id, document=f, read_timeout=50)).document tests/_files/test_document.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2572: in send_document return await super().send_document( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1667: in send_document return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError __ ERROR at setup of TestDocumentWithoutRequest.test_send_with_document[True] __ [gw4] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def document(bot, chat_id): with data_file("telegram.png").open("rb") as f: > return (await bot.send_document(chat_id, document=f, read_timeout=50)).document tests/_files/test_document.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2572: in send_document return await super().send_document( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1667: in send_document return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError __________ ERROR at setup of TestDocumentWithoutRequest.test_de_json ___________ [gw2] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def document(bot, chat_id): with data_file("telegram.png").open("rb") as f: > return (await bot.send_document(chat_id, document=f, read_timeout=50)).document tests/_files/test_document.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2572: in send_document return await super().send_document( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1667: in send_document return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _____ ERROR at setup of TestInputMediaVideoWithoutRequest.test_with_video ______ [gw3] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3/site-packages/flaky/flaky_pytest_plugin.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:366: in _async_fixture_wrapper return event_loop.run_until_complete(setup()) /usr/lib/python3.12/asyncio/base_events.py:685: in run_until_complete return future.result() /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:361: in setup res = await func( tests/_files/test_video.py:49: in video return (await bot.send_video(chat_id, video=f, read_timeout=50)).video telegram/ext/_extbot.py:3064: in send_video return await super().send_video( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1936: in send_video return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ___ ERROR at setup of TestChatPhotoWithoutRequest.test_send_with_chat_photo ____ [gw15] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/getChat' method = 'POST' request_data = read_timeout = 50, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] super_group_id = '-1001221216830' @pytest.fixture(scope="module") async def chat_photo(bot, super_group_id): async def func(): return (await bot.get_chat(super_group_id, read_timeout=50)).photo > return await expect_bad_request( func, "Type of file mismatch", "Telegram did not accept the file." ) tests/_files/test_chatphoto.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_chatphoto.py:48: in func return (await bot.get_chat(super_group_id, read_timeout=50)).photo telegram/ext/_extbot.py:851: in get_chat result = await super().get_chat( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:4423: in get_chat result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/getChat' method = 'POST' request_data = read_timeout = 50, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _____ ERROR at setup of TestInputMediaPhotoWithoutRequest.test_with_photo ______ [gw6] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3/site-packages/flaky/flaky_pytest_plugin.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:366: in _async_fixture_wrapper return event_loop.run_until_complete(setup()) /usr/lib/python3.12/asyncio/base_events.py:685: in run_until_complete return future.result() /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:361: in setup res = await func( tests/_files/test_photo.py:53: in photolist return await expect_bad_request( tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_photo.py:51: in func return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo telegram/ext/_extbot.py:2865: in send_photo return await super().send_photo( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1378: in send_photo return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError __________ ERROR at setup of TestChatPhotoWithoutRequest.test_to_dict __________ [gw14] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getChat' method = 'POST' request_data = read_timeout = 50, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] super_group_id = '-1001310911135' @pytest.fixture(scope="module") async def chat_photo(bot, super_group_id): async def func(): return (await bot.get_chat(super_group_id, read_timeout=50)).photo > return await expect_bad_request( func, "Type of file mismatch", "Telegram did not accept the file." ) tests/_files/test_chatphoto.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_chatphoto.py:48: in func return (await bot.get_chat(super_group_id, read_timeout=50)).photo telegram/ext/_extbot.py:851: in get_chat result = await super().get_chat( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:4423: in get_chat result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getChat' method = 'POST' request_data = read_timeout = 50, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError __ ERROR at setup of TestDocumentWithoutRequest.test_send_with_document[None] __ [gw0] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def document(bot, chat_id): with data_file("telegram.png").open("rb") as f: > return (await bot.send_document(chat_id, document=f, read_timeout=50)).document tests/_files/test_document.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2572: in send_document return await super().send_document( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1667: in send_document return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestDocumentWithoutRequest.test_send_document_default_quote_parse_mode[default_bot1-MarkdownV2] _ [gw1] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def document(bot, chat_id): with data_file("telegram.png").open("rb") as f: > return (await bot.send_document(chat_id, document=f, read_timeout=50)).document tests/_files/test_document.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2572: in send_document return await super().send_document( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1667: in send_document return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _______ ERROR at setup of TestDocumentWithoutRequest.test_slot_behaviour _______ [gw9] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def document(bot, chat_id): with data_file("telegram.png").open("rb") as f: > return (await bot.send_document(chat_id, document=f, read_timeout=50)).document tests/_files/test_document.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2572: in send_document return await super().send_document( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1667: in send_document return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError __ ERROR at setup of TestInputMediaDocumentWithoutRequest.test_with_document ___ [gw7] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3/site-packages/flaky/flaky_pytest_plugin.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:366: in _async_fixture_wrapper return event_loop.run_until_complete(setup()) /usr/lib/python3.12/asyncio/base_events.py:685: in run_until_complete return future.result() /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:361: in setup res = await func( tests/_files/test_document.py:49: in document return (await bot.send_document(chat_id, document=f, read_timeout=50)).document telegram/ext/_extbot.py:2572: in send_document return await super().send_document( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1667: in send_document return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestDocumentWithoutRequest.test_send_with_document[False] __ [gw13] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def document(bot, chat_id): with data_file("telegram.png").open("rb") as f: > return (await bot.send_document(chat_id, document=f, read_timeout=50)).document tests/_files/test_document.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2572: in send_document return await super().send_document( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1667: in send_document return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestAudioWithoutRequest.test_send_audio_default_quote_parse_mode[default_bot0-None] _ [gw12] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def audio(bot, chat_id): with data_file("telegram.mp3").open("rb") as f, data_file("thumb.jpg").open("rb") as thumb: > return (await bot.send_audio(chat_id, audio=f, read_timeout=50, thumbnail=thumb)).audio tests/_files/test_audio.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2418: in send_audio return await super().send_audio( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1526: in send_audio return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestInputMediaAnimationWithoutRequest.test_with_animation __ [gw11] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3/site-packages/flaky/flaky_pytest_plugin.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:366: in _async_fixture_wrapper return event_loop.run_until_complete(setup()) /usr/lib/python3.12/asyncio/base_events.py:685: in run_until_complete return future.result() /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:361: in setup res = await func( tests/_files/test_animation.py:50: in animation await bot.send_animation(chat_id, animation=f, read_timeout=50, thumbnail=thumb) telegram/ext/_extbot.py:2365: in send_animation return await super().send_animation( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2221: in send_animation return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAnimation' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _____ ERROR at setup of TestInputMediaAudioWithoutRequest.test_with_audio ______ [gw5] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3/site-packages/flaky/flaky_pytest_plugin.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:366: in _async_fixture_wrapper return event_loop.run_until_complete(setup()) /usr/lib/python3.12/asyncio/base_events.py:685: in run_until_complete return future.result() /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:361: in setup res = await func( tests/_files/test_audio.py:49: in audio return (await bot.send_audio(chat_id, audio=f, read_timeout=50, thumbnail=thumb)).audio telegram/ext/_extbot.py:2418: in send_audio return await super().send_audio( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1526: in send_audio return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendAudio' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestSendMediaGroupWithoutRequest.test_send_media_group_throws_error_with_group_caption_and_individual_captions _ [gw8] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3/site-packages/flaky/flaky_pytest_plugin.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:366: in _async_fixture_wrapper return event_loop.run_until_complete(setup()) /usr/lib/python3.12/asyncio/base_events.py:685: in run_until_complete return future.result() /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:361: in setup res = await func( tests/_files/test_photo.py:53: in photolist return await expect_bad_request( tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_photo.py:51: in func return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo telegram/ext/_extbot.py:2865: in send_photo return await super().send_photo( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1378: in send_photo return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ___________ ERROR at setup of TestPhotoWithoutRequest.test_creation ____________ [gw6] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def photolist(bot, chat_id): async def func(): with data_file("telegram.jpg").open("rb") as f: return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo > return await expect_bad_request( func, "Type of file mismatch", "Telegram did not accept the file." ) tests/_files/test_photo.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_photo.py:51: in func return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo telegram/ext/_extbot.py:2865: in send_photo return await super().send_photo( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1378: in send_photo return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ____________ ERROR at setup of TestPhotoWithoutRequest.test_de_json ____________ [gw14] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def photolist(bot, chat_id): async def func(): with data_file("telegram.jpg").open("rb") as f: return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo > return await expect_bad_request( func, "Type of file mismatch", "Telegram did not accept the file." ) tests/_files/test_photo.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_photo.py:51: in func return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo telegram/ext/_extbot.py:2865: in send_photo return await super().send_photo( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1378: in send_photo return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ____________ ERROR at setup of TestPhotoWithoutRequest.test_to_dict ____________ [gw0] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def photolist(bot, chat_id): async def func(): with data_file("telegram.jpg").open("rb") as f: return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo > return await expect_bad_request( func, "Type of file mismatch", "Telegram did not accept the file." ) tests/_files/test_photo.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_photo.py:51: in func return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo telegram/ext/_extbot.py:2865: in send_photo return await super().send_photo( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1378: in send_photo return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ___ ERROR at setup of TestPhotoWithoutRequest.test_get_file_instance_method ____ [gw7] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def photolist(bot, chat_id): async def func(): with data_file("telegram.jpg").open("rb") as f: return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo > return await expect_bad_request( func, "Type of file mismatch", "Telegram did not accept the file." ) tests/_files/test_photo.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_photo.py:51: in func return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo telegram/ext/_extbot.py:2865: in send_photo return await super().send_photo( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1378: in send_photo return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError __________ ERROR at setup of TestStickerWithoutRequest.test_creation ___________ [gw11] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def sticker(bot, chat_id): with data_file("telegram.webp").open("rb") as f: > sticker = (await bot.send_sticker(chat_id, sticker=f, read_timeout=50)).sticker tests/_files/test_sticker.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2965: in send_sticker return await super().send_sticker( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1779: in send_sticker return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ______ ERROR at setup of TestPhotoWithoutRequest.test_send_with_photosize ______ [gw9] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def photolist(bot, chat_id): async def func(): with data_file("telegram.jpg").open("rb") as f: return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo > return await expect_bad_request( func, "Type of file mismatch", "Telegram did not accept the file." ) tests/_files/test_photo.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_photo.py:51: in func return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo telegram/ext/_extbot.py:2865: in send_photo return await super().send_photo( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1378: in send_photo return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ___________ ERROR at setup of TestStickerWithoutRequest.test_de_json ___________ [gw5] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def sticker(bot, chat_id): with data_file("telegram.webp").open("rb") as f: > sticker = (await bot.send_sticker(chat_id, sticker=f, read_timeout=50)).sticker tests/_files/test_sticker.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2965: in send_sticker return await super().send_sticker( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1779: in send_sticker return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestDocumentWithoutRequest.test_send_document_default_quote_parse_mode[default_bot0-None] _ [gw12] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def document(bot, chat_id): with data_file("telegram.png").open("rb") as f: > return (await bot.send_document(chat_id, document=f, read_timeout=50)).document tests/_files/test_document.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2572: in send_document return await super().send_document( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1667: in send_document return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError __________ ERROR at setup of TestStickerWithoutRequest.test_equality ___________ [gw8] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def sticker(bot, chat_id): with data_file("telegram.webp").open("rb") as f: > sticker = (await bot.send_sticker(chat_id, sticker=f, read_timeout=50)).sticker tests/_files/test_sticker.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2965: in send_sticker return await super().send_sticker( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1779: in send_sticker return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestSendMediaGroupWithoutRequest.test_send_media_group_default_quote_parse_mode[default_bot0-None] _ [gw4] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3/site-packages/flaky/flaky_pytest_plugin.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:366: in _async_fixture_wrapper return event_loop.run_until_complete(setup()) /usr/lib/python3.12/asyncio/base_events.py:685: in run_until_complete return future.result() /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:361: in setup res = await func( tests/_files/test_photo.py:53: in photolist return await expect_bad_request( tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_photo.py:51: in func return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo telegram/ext/_extbot.py:2865: in send_photo return await super().send_photo( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1378: in send_photo return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ________ ERROR at setup of TestPhotoWithoutRequest.test_expected_values ________ [gw6] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def photolist(bot, chat_id): async def func(): with data_file("telegram.jpg").open("rb") as f: return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo > return await expect_bad_request( func, "Type of file mismatch", "Telegram did not accept the file." ) tests/_files/test_photo.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_photo.py:51: in func return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo telegram/ext/_extbot.py:2865: in send_photo return await super().send_photo( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1378: in send_photo return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestStickerWithoutRequest.test_send_sticker_default_quote_parse_mode[default_bot0-None] _ [gw14] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def sticker(bot, chat_id): with data_file("telegram.webp").open("rb") as f: > sticker = (await bot.send_sticker(chat_id, sticker=f, read_timeout=50)).sticker tests/_files/test_sticker.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2965: in send_sticker return await super().send_sticker( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1779: in send_sticker return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestDocumentWithoutRequest.test_send_document_default_quote_parse_mode[default_bot2-MarkdownV2] _ [gw1] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def document(bot, chat_id): with data_file("telegram.png").open("rb") as f: > return (await bot.send_document(chat_id, document=f, read_timeout=50)).document tests/_files/test_document.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2572: in send_document return await super().send_document( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1667: in send_document return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendDocument' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ___________ ERROR at setup of TestStickerWithoutRequest.test_to_dict ___________ [gw11] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def sticker(bot, chat_id): with data_file("telegram.webp").open("rb") as f: > sticker = (await bot.send_sticker(chat_id, sticker=f, read_timeout=50)).sticker tests/_files/test_sticker.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2965: in send_sticker return await super().send_sticker( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1779: in send_sticker return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ________ ERROR at setup of TestPhotoWithoutRequest.test_slot_behaviour _________ [gw15] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def photolist(bot, chat_id): async def func(): with data_file("telegram.jpg").open("rb") as f: return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo > return await expect_bad_request( func, "Type of file mismatch", "Telegram did not accept the file." ) tests/_files/test_photo.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_photo.py:51: in func return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo telegram/ext/_extbot.py:2865: in send_photo return await super().send_photo( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1378: in send_photo return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ___________ ERROR at setup of TestPhotoWithoutRequest.test_equality ____________ [gw0] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def photolist(bot, chat_id): async def func(): with data_file("telegram.jpg").open("rb") as f: return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo > return await expect_bad_request( func, "Type of file mismatch", "Telegram did not accept the file." ) tests/_files/test_photo.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_photo.py:51: in func return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo telegram/ext/_extbot.py:2865: in send_photo return await super().send_photo( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1378: in send_photo return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestPhotoWithoutRequest.test_send_photo_default_quote_parse_mode[default_bot1-MarkdownV2] _ [gw9] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def photolist(bot, chat_id): async def func(): with data_file("telegram.jpg").open("rb") as f: return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo > return await expect_bad_request( func, "Type of file mismatch", "Telegram did not accept the file." ) tests/_files/test_photo.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_photo.py:51: in func return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo telegram/ext/_extbot.py:2865: in send_photo return await super().send_photo( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1378: in send_photo return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestPhotoWithoutRequest.test_send_photo_default_quote_parse_mode[default_bot2-MarkdownV2] _ [gw13] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def photolist(bot, chat_id): async def func(): with data_file("telegram.jpg").open("rb") as f: return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo > return await expect_bad_request( func, "Type of file mismatch", "Telegram did not accept the file." ) tests/_files/test_photo.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_photo.py:51: in func return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo telegram/ext/_extbot.py:2865: in send_photo return await super().send_photo( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1378: in send_photo return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _______ ERROR at setup of TestStickerWithoutRequest.test_expected_values _______ [gw12] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def sticker(bot, chat_id): with data_file("telegram.webp").open("rb") as f: > sticker = (await bot.send_sticker(chat_id, sticker=f, read_timeout=50)).sticker tests/_files/test_sticker.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2965: in send_sticker return await super().send_sticker( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1779: in send_sticker return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestStickerSetWithoutRequest.test_get_file_instance_method _ [gw5] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def sticker(bot, chat_id): with data_file("telegram.webp").open("rb") as f: > sticker = (await bot.send_sticker(chat_id, sticker=f, read_timeout=50)).sticker tests/_files/test_sticker.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2965: in send_sticker return await super().send_sticker( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1779: in send_sticker return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ________ ERROR at setup of TestVideoWithoutRequest.test_expected_values ________ [gw4] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def video(bot, chat_id): with data_file("telegram.mp4").open("rb") as f: > return (await bot.send_video(chat_id, video=f, read_timeout=50)).video tests/_files/test_video.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3064: in send_video return await super().send_video( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1936: in send_video return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ________ ERROR at setup of TestVideoWithoutRequest.test_slot_behaviour _________ [gw8] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def video(bot, chat_id): with data_file("telegram.mp4").open("rb") as f: > return (await bot.send_video(chat_id, video=f, read_timeout=50)).video tests/_files/test_video.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3064: in send_video return await super().send_video( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1936: in send_video return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ___________ ERROR at setup of TestVideoWithoutRequest.test_equality ____________ [gw6] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def video(bot, chat_id): with data_file("telegram.mp4").open("rb") as f: > return (await bot.send_video(chat_id, video=f, read_timeout=50)).video tests/_files/test_video.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3064: in send_video return await super().send_video( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1936: in send_video return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestSendMediaGroupWithoutRequest.test_send_media_group_default_quote_parse_mode[default_bot1-MarkdownV2] _ [gw2] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3/site-packages/flaky/flaky_pytest_plugin.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:366: in _async_fixture_wrapper return event_loop.run_until_complete(setup()) /usr/lib/python3.12/asyncio/base_events.py:685: in run_until_complete return future.result() /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:361: in setup res = await func( tests/_files/test_photo.py:53: in photolist return await expect_bad_request( tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_photo.py:51: in func return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo telegram/ext/_extbot.py:2865: in send_photo return await super().send_photo( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1378: in send_photo return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestPhotoWithoutRequest.test_send_photo_default_quote_parse_mode[default_bot0-None] _ [gw7] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def photolist(bot, chat_id): async def func(): with data_file("telegram.jpg").open("rb") as f: return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo > return await expect_bad_request( func, "Type of file mismatch", "Telegram did not accept the file." ) tests/_files/test_photo.py:53: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_photo.py:51: in func return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo telegram/ext/_extbot.py:2865: in send_photo return await super().send_photo( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1378: in send_photo return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _________ ERROR at setup of TestStickerSetWithoutRequest.test_de_json __________ [gw11] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def sticker(bot, chat_id): with data_file("telegram.webp").open("rb") as f: > sticker = (await bot.send_sticker(chat_id, sticker=f, read_timeout=50)).sticker tests/_files/test_sticker.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2965: in send_sticker return await super().send_sticker( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1779: in send_sticker return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ___ ERROR at setup of TestVideoWithoutRequest.test_get_file_instance_method ____ [gw1] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def video(bot, chat_id): with data_file("telegram.mp4").open("rb") as f: > return (await bot.send_video(chat_id, video=f, read_timeout=50)).video tests/_files/test_video.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3064: in send_video return await super().send_video( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1936: in send_video return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ___ ERROR at setup of TestStickerSetWithoutRequest.test_sticker_set_to_dict ____ [gw9] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/getStickerSet' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] @pytest.fixture() async def sticker_set(bot): > ss = await bot.get_sticker_set(f"test_by_{bot.username}") tests/_files/test_sticker.py:529: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:1934: in get_sticker_set return await super().get_sticker_set( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:6101: in get_sticker_set result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/getStickerSet' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _______ ERROR at setup of TestStickerWithoutRequest.test_slot_behaviour ________ [gw13] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def sticker(bot, chat_id): with data_file("telegram.webp").open("rb") as f: > sticker = (await bot.send_sticker(chat_id, sticker=f, read_timeout=50)).sticker tests/_files/test_sticker.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2965: in send_sticker return await super().send_sticker( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1779: in send_sticker return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ______ ERROR at setup of TestStickerWithoutRequest.test_send_with_sticker ______ [gw15] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def sticker(bot, chat_id): with data_file("telegram.webp").open("rb") as f: > sticker = (await bot.send_sticker(chat_id, sticker=f, read_timeout=50)).sticker tests/_files/test_sticker.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2965: in send_sticker return await super().send_sticker( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1779: in send_sticker return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ___ ERROR at setup of TestVideoNoteWithoutRequest.test_send_with_video_note ____ [gw5] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def video_note(bot, chat_id): with data_file("telegram2.mp4").open("rb") as f: > return (await bot.send_video_note(chat_id, video_note=f, read_timeout=50)).video_note tests/_files/test_videonote.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3114: in send_video_note return await super().send_video_note( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2072: in send_video_note return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestVideoNoteWithoutRequest.test_get_file_instance_method __ [gw6] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def video_note(bot, chat_id): with data_file("telegram2.mp4").open("rb") as f: > return (await bot.send_video_note(chat_id, video_note=f, read_timeout=50)).video_note tests/_files/test_videonote.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3114: in send_video_note return await super().send_video_note( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2072: in send_video_note return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ___________ ERROR at setup of TestVideoWithoutRequest.test_creation ____________ [gw8] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def video(bot, chat_id): with data_file("telegram.mp4").open("rb") as f: > return (await bot.send_video(chat_id, video=f, read_timeout=50)).video tests/_files/test_video.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3064: in send_video return await super().send_video( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1936: in send_video return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ____________ ERROR at setup of TestVideoWithoutRequest.test_to_dict ____________ [gw4] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def video(bot, chat_id): with data_file("telegram.mp4").open("rb") as f: > return (await bot.send_video(chat_id, video=f, read_timeout=50)).video tests/_files/test_video.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3064: in send_video return await super().send_video( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1936: in send_video return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestStickerWithoutRequest.test_send_sticker_default_quote_parse_mode[default_bot2-MarkdownV2] _ [gw14] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def sticker(bot, chat_id): with data_file("telegram.webp").open("rb") as f: > sticker = (await bot.send_sticker(chat_id, sticker=f, read_timeout=50)).sticker tests/_files/test_sticker.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2965: in send_sticker return await super().send_sticker( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1779: in send_sticker return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError __________ ERROR at setup of TestVideoNoteWithoutRequest.test_to_dict __________ [gw12] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def video_note(bot, chat_id): with data_file("telegram2.mp4").open("rb") as f: > return (await bot.send_video_note(chat_id, video_note=f, read_timeout=50)).video_note tests/_files/test_videonote.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3114: in send_video_note return await super().send_video_note( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2072: in send_video_note return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ___________ ERROR at setup of TestVoiceWithoutRequest.test_creation ____________ [gw11] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def voice(bot, chat_id): with data_file("telegram.ogg").open("rb") as f: > return (await bot.send_voice(chat_id, voice=f, read_timeout=50)).voice tests/_files/test_voice.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3159: in send_voice return await super().send_voice( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2358: in send_voice return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestStickerWithoutRequest.test_send_sticker_default_quote_parse_mode[default_bot1-MarkdownV2] _ [gw0] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def sticker(bot, chat_id): with data_file("telegram.webp").open("rb") as f: > sticker = (await bot.send_sticker(chat_id, sticker=f, read_timeout=50)).sticker tests/_files/test_sticker.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2965: in send_sticker return await super().send_sticker( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1779: in send_sticker return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendSticker' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _________ ERROR at setup of TestVideoNoteWithoutRequest.test_creation __________ [gw9] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def video_note(bot, chat_id): with data_file("telegram2.mp4").open("rb") as f: > return (await bot.send_video_note(chat_id, video_note=f, read_timeout=50)).video_note tests/_files/test_videonote.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3114: in send_video_note return await super().send_video_note( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2072: in send_video_note return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestVideoWithoutRequest.test_send_video_default_quote_parse_mode[default_bot0-None] _ [gw1] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def video(bot, chat_id): with data_file("telegram.mp4").open("rb") as f: > return (await bot.send_video(chat_id, video=f, read_timeout=50)).video tests/_files/test_video.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3064: in send_video return await super().send_video( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1936: in send_video return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ______ ERROR at setup of TestVideoNoteWithoutRequest.test_expected_values ______ [gw13] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def video_note(bot, chat_id): with data_file("telegram2.mp4").open("rb") as f: > return (await bot.send_video_note(chat_id, video_note=f, read_timeout=50)).video_note tests/_files/test_videonote.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3114: in send_video_note return await super().send_video_note( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2072: in send_video_note return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ________ ERROR at setup of TestVoiceWithoutRequest.test_send_with_voice ________ [gw10] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def voice(bot, chat_id): with data_file("telegram.ogg").open("rb") as f: > return (await bot.send_voice(chat_id, voice=f, read_timeout=50)).voice tests/_files/test_voice.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3159: in send_voice return await super().send_voice( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2358: in send_voice return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ___ ERROR at setup of TestVoiceWithoutRequest.test_get_file_instance_method ____ [gw5] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def voice(bot, chat_id): with data_file("telegram.ogg").open("rb") as f: > return (await bot.send_voice(chat_id, voice=f, read_timeout=50)).voice tests/_files/test_voice.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3159: in send_voice return await super().send_voice( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2358: in send_voice return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestSendMediaGroupWithoutRequest.test_send_media_group_default_quote_parse_mode[default_bot2-MarkdownV2] _ [gw2] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3/site-packages/flaky/flaky_pytest_plugin.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/flaky/flaky_pytest_plugin.py:146: in lambda: ihook(item=item, **kwds), when=when, reraise=reraise /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:366: in _async_fixture_wrapper return event_loop.run_until_complete(setup()) /usr/lib/python3.12/asyncio/base_events.py:685: in run_until_complete return future.result() /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:361: in setup res = await func( tests/_files/test_photo.py:53: in photolist return await expect_bad_request( tests/auxil/networking.py:77: in expect_bad_request return await func() tests/_files/test_photo.py:51: in func return (await bot.send_photo(chat_id, photo=f, read_timeout=50)).photo telegram/ext/_extbot.py:2865: in send_photo return await super().send_photo( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1378: in send_photo return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendPhoto' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestVideoNoteWithoutRequest.test_send_video_note_default_quote_parse_mode[default_bot2-MarkdownV2] _ [gw7] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def video_note(bot, chat_id): with data_file("telegram2.mp4").open("rb") as f: > return (await bot.send_video_note(chat_id, video_note=f, read_timeout=50)).video_note tests/_files/test_videonote.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3114: in send_video_note return await super().send_video_note( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2072: in send_video_note return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ________ ERROR at setup of TestVideoWithoutRequest.test_send_with_video ________ [gw14] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def video(bot, chat_id): with data_file("telegram.mp4").open("rb") as f: > return (await bot.send_video(chat_id, video=f, read_timeout=50)).video tests/_files/test_video.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3064: in send_video return await super().send_video( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1936: in send_video return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _________ ERROR at setup of TestVideoNoteWithoutRequest.test_equality __________ [gw12] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def video_note(bot, chat_id): with data_file("telegram2.mp4").open("rb") as f: > return (await bot.send_video_note(chat_id, video_note=f, read_timeout=50)).video_note tests/_files/test_videonote.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3114: in send_video_note return await super().send_video_note( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2072: in send_video_note return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestVideoWithoutRequest.test_send_video_default_quote_parse_mode[default_bot2-MarkdownV2] _ [gw3] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def video(bot, chat_id): with data_file("telegram.mp4").open("rb") as f: > return (await bot.send_video(chat_id, video=f, read_timeout=50)).video tests/_files/test_video.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3064: in send_video return await super().send_video( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1936: in send_video return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ______ ERROR at setup of TestVideoNoteWithoutRequest.test_slot_behaviour _______ [gw0] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def video_note(bot, chat_id): with data_file("telegram2.mp4").open("rb") as f: > return (await bot.send_video_note(chat_id, video_note=f, read_timeout=50)).video_note tests/_files/test_videonote.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3114: in send_video_note return await super().send_video_note( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2072: in send_video_note return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ________ ERROR at setup of TestVoiceWithoutRequest.test_expected_values ________ [gw11] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def voice(bot, chat_id): with data_file("telegram.ogg").open("rb") as f: > return (await bot.send_voice(chat_id, voice=f, read_timeout=50)).voice tests/_files/test_voice.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3159: in send_voice return await super().send_voice( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2358: in send_voice return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestVideoWithoutRequest.test_send_video_default_quote_parse_mode[default_bot1-MarkdownV2] _ [gw15] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def video(bot, chat_id): with data_file("telegram.mp4").open("rb") as f: > return (await bot.send_video(chat_id, video=f, read_timeout=50)).video tests/_files/test_video.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3064: in send_video return await super().send_video( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1936: in send_video return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVideo' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ___________ ERROR at setup of TestVoiceWithoutRequest.test_equality ____________ [gw9] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def voice(bot, chat_id): with data_file("telegram.ogg").open("rb") as f: > return (await bot.send_voice(chat_id, voice=f, read_timeout=50)).voice tests/_files/test_voice.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3159: in send_voice return await super().send_voice( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2358: in send_voice return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestVideoNoteWithoutRequest.test_send_video_note_default_quote_parse_mode[default_bot0-None] _ [gw6] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def video_note(bot, chat_id): with data_file("telegram2.mp4").open("rb") as f: > return (await bot.send_video_note(chat_id, video_note=f, read_timeout=50)).video_note tests/_files/test_videonote.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3114: in send_video_note return await super().send_video_note( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2072: in send_video_note return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestVoiceWithoutRequest.test_send_voice_default_quote_parse_mode[default_bot2-MarkdownV2] _ [gw8] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def voice(bot, chat_id): with data_file("telegram.ogg").open("rb") as f: > return (await bot.send_voice(chat_id, voice=f, read_timeout=50)).voice tests/_files/test_voice.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3159: in send_voice return await super().send_voice( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2358: in send_voice return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ________ ERROR at setup of TestVoiceWithoutRequest.test_slot_behaviour _________ [gw7] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def voice(bot, chat_id): with data_file("telegram.ogg").open("rb") as f: > return (await bot.send_voice(chat_id, voice=f, read_timeout=50)).voice tests/_files/test_voice.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3159: in send_voice return await super().send_voice( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2358: in send_voice return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestVideoNoteWithoutRequest.test_send_video_note_default_quote_parse_mode[default_bot1-MarkdownV2] _ [gw2] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def video_note(bot, chat_id): with data_file("telegram2.mp4").open("rb") as f: > return (await bot.send_video_note(chat_id, video_note=f, read_timeout=50)).video_note tests/_files/test_videonote.py:48: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3114: in send_video_note return await super().send_video_note( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2072: in send_video_note return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVideoNote' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ____________ ERROR at setup of TestVoiceWithoutRequest.test_to_dict ____________ [gw3] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def voice(bot, chat_id): with data_file("telegram.ogg").open("rb") as f: > return (await bot.send_voice(chat_id, voice=f, read_timeout=50)).voice tests/_files/test_voice.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3159: in send_voice return await super().send_voice( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2358: in send_voice return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestVoiceWithoutRequest.test_send_voice_default_quote_parse_mode[default_bot0-None] _ [gw6] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def voice(bot, chat_id): with data_file("telegram.ogg").open("rb") as f: > return (await bot.send_voice(chat_id, voice=f, read_timeout=50)).voice tests/_files/test_voice.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3159: in send_voice return await super().send_voice( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2358: in send_voice return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestVoiceWithoutRequest.test_send_voice_default_quote_parse_mode[default_bot1-MarkdownV2] _ [gw5] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def voice(bot, chat_id): with data_file("telegram.ogg").open("rb") as f: > return (await bot.send_voice(chat_id, voice=f, read_timeout=50)).voice tests/_files/test_voice.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3159: in send_voice return await super().send_voice( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2358: in send_voice return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 50, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError __ ERROR at setup of TestRequestWithoutRequest.test_replaced_unprintable_char __ [gw12] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3/site-packages/flaky/flaky_pytest_plugin.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:344: in _asyncgen_fixture_wrapper result = event_loop.run_until_complete(setup()) /usr/lib/python3.12/asyncio/base_events.py:660: in run_until_complete self._check_closed() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=True debug=False> def _check_closed(self): if self._closed: > raise RuntimeError('Event loop is closed') E RuntimeError: Event loop is closed /usr/lib/python3.12/asyncio/base_events.py:540: RuntimeError _ ERROR at setup of TestRequestWithoutRequest.test_special_errors[404-InvalidToken] _ [gw12] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3/site-packages/flaky/flaky_pytest_plugin.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:344: in _asyncgen_fixture_wrapper result = event_loop.run_until_complete(setup()) /usr/lib/python3.12/asyncio/base_events.py:660: in run_until_complete self._check_closed() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=True debug=False> def _check_closed(self): if self._closed: > raise RuntimeError('Event loop is closed') E RuntimeError: Event loop is closed /usr/lib/python3.12/asyncio/base_events.py:540: RuntimeError _ ERROR at setup of TestRequestWithoutRequest.test_timeout_propagation_to_do_request _ [gw12] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 > lambda: ihook(item=item, **kwds), when=when, reraise=reraise ) /usr/lib/python3/site-packages/flaky/flaky_pytest_plugin.py:146: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/pytest_asyncio/plugin.py:344: in _asyncgen_fixture_wrapper result = event_loop.run_until_complete(setup()) /usr/lib/python3.12/asyncio/base_events.py:660: in run_until_complete self._check_closed() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <_UnixSelectorEventLoop running=False closed=True debug=False> def _check_closed(self): if self._closed: > raise RuntimeError('Event loop is closed') E RuntimeError: Event loop is closed /usr/lib/python3.12/asyncio/base_events.py:540: RuntimeError _______ ERROR at setup of TestBotWithoutRequest.test_copy_message[-True] _______ [gw6] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 10, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def media_message(bot, chat_id): with data_file("telegram.ogg").open("rb") as f: > return await bot.send_voice(chat_id, voice=f, caption="my caption", read_timeout=10) tests/test_bot.py:118: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3159: in send_voice return await super().send_voice( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2358: in send_voice return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 10, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _____ ERROR at setup of TestBotWithoutRequest.test_copy_message[None-True] _____ [gw4] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVoice' method = 'POST' request_data = read_timeout = 10, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def media_message(bot, chat_id): with data_file("telegram.ogg").open("rb") as f: > return await bot.send_voice(chat_id, voice=f, caption="my caption", read_timeout=10) tests/test_bot.py:118: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3159: in send_voice return await super().send_voice( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2358: in send_voice return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVoice' method = 'POST' request_data = read_timeout = 10, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestBotWithoutRequest.test_copy_message[Test-False] _ [gw5] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 10, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def media_message(bot, chat_id): with data_file("telegram.ogg").open("rb") as f: > return await bot.send_voice(chat_id, voice=f, caption="my caption", read_timeout=10) tests/test_bot.py:118: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3159: in send_voice return await super().send_voice( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2358: in send_voice return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 10, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestBotWithoutRequest.test_copy_message[Test-True] __ [gw12] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 10, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def media_message(bot, chat_id): with data_file("telegram.ogg").open("rb") as f: > return await bot.send_voice(chat_id, voice=f, caption="my caption", read_timeout=10) tests/test_bot.py:118: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3159: in send_voice return await super().send_voice( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2358: in send_voice return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 10, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ____ ERROR at setup of TestBotWithoutRequest.test_copy_message[None-False] _____ [gw3] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 10, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture(scope="module") async def media_message(bot, chat_id): with data_file("telegram.ogg").open("rb") as f: > return await bot.send_voice(chat_id, voice=f, caption="my caption", read_timeout=10) tests/test_bot.py:118: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3159: in send_voice return await super().send_voice( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2358: in send_voice return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendVoice' method = 'POST' request_data = read_timeout = 10, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ______ ERROR at setup of TestBotWithoutRequest.test_copy_message[-False] _______ [gw13] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVoice' method = 'POST' request_data = read_timeout = 10, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] chat_id = '675666224' @pytest.fixture(scope="module") async def media_message(bot, chat_id): with data_file("telegram.ogg").open("rb") as f: > return await bot.send_voice(chat_id, voice=f, caption="my caption", read_timeout=10) tests/test_bot.py:118: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:3159: in send_voice return await super().send_voice( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:2358: in send_voice return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/sendVoice' method = 'POST' request_data = read_timeout = 10, write_timeout = 20.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestBotWithoutRequest.test_send_message_default_quote_parse_mode[default_bot0-None] _ [gw0] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendMessage' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture() async def message(bot, chat_id): # mostly used in tests for edit_message > out = await bot.send_message( chat_id, "Text", disable_web_page_preview=True, disable_notification=True ) tests/test_bot.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2820: in send_message return await super().send_message( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1015: in send_message return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendMessage' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestBotWithoutRequest.test_send_message_default_quote_parse_mode[default_bot1-MarkdownV2] _ [gw8] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendMessage' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture() async def message(bot, chat_id): # mostly used in tests for edit_message > out = await bot.send_message( chat_id, "Text", disable_web_page_preview=True, disable_notification=True ) tests/test_bot.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2820: in send_message return await super().send_message( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1015: in send_message return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendMessage' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _________ ERROR at setup of TestForumTopicWithoutRequest.test_equality _________ [gw13] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/getForumTopicIconStickers' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] @pytest.fixture(scope="module") async def emoji_id(bot): > emoji_sticker_list = await bot.get_forum_topic_icon_stickers() tests/test_forum.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:1829: in get_forum_topic_icon_stickers return await super().get_forum_topic_icon_stickers( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:7858: in get_forum_topic_icon_stickers result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/getForumTopicIconStickers' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ______ ERROR at setup of TestForumTopicWithoutRequest.test_slot_behaviour ______ [gw10] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getForumTopicIconStickers' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] @pytest.fixture(scope="module") async def emoji_id(bot): > emoji_sticker_list = await bot.get_forum_topic_icon_stickers() tests/test_forum.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:1829: in get_forum_topic_icon_stickers return await super().get_forum_topic_icon_stickers( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:7858: in get_forum_topic_icon_stickers result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getForumTopicIconStickers' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _____ ERROR at setup of TestForumTopicWithoutRequest.test_expected_values ______ [gw14] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getForumTopicIconStickers' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] @pytest.fixture(scope="module") async def emoji_id(bot): > emoji_sticker_list = await bot.get_forum_topic_icon_stickers() tests/test_forum.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:1829: in get_forum_topic_icon_stickers return await super().get_forum_topic_icon_stickers( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:7858: in get_forum_topic_icon_stickers result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getForumTopicIconStickers' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _________ ERROR at setup of TestForumTopicWithoutRequest.test_to_dict __________ [gw1] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/getForumTopicIconStickers' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] @pytest.fixture(scope="module") async def emoji_id(bot): > emoji_sticker_list = await bot.get_forum_topic_icon_stickers() tests/test_forum.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:1829: in get_forum_topic_icon_stickers return await super().get_forum_topic_icon_stickers( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:7858: in get_forum_topic_icon_stickers result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/getForumTopicIconStickers' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _________ ERROR at setup of TestForumTopicWithoutRequest.test_de_json __________ [gw7] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/getForumTopicIconStickers' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] @pytest.fixture(scope="module") async def emoji_id(bot): > emoji_sticker_list = await bot.get_forum_topic_icon_stickers() tests/test_forum.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:1829: in get_forum_topic_icon_stickers return await super().get_forum_topic_icon_stickers( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:7858: in get_forum_topic_icon_stickers result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/getForumTopicIconStickers' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _ ERROR at setup of TestBotWithoutRequest.test_send_message_default_quote_parse_mode[default_bot2-MarkdownV2] _ [gw0] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendMessage' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] chat_id = '675666224' @pytest.fixture() async def message(bot, chat_id): # mostly used in tests for edit_message > out = await bot.send_message( chat_id, "Text", disable_web_page_preview=True, disable_notification=True ) tests/test_bot.py:108: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:2820: in send_message return await super().send_message( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:1015: in send_message return await self._send_message( telegram/ext/_extbot.py:581: in _send_message result = await super()._send_message( telegram/_bot.py:735: in _send_message result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/sendMessage' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _____ ERROR at setup of TestForumTopicCreatedWithoutRequest.test_equality ______ [gw14] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getForumTopicIconStickers' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] @pytest.fixture(scope="module") async def emoji_id(bot): > emoji_sticker_list = await bot.get_forum_topic_icon_stickers() tests/test_forum.py:44: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:1829: in get_forum_topic_icon_stickers return await super().get_forum_topic_icon_stickers( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:7858: in get_forum_topic_icon_stickers result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( tests/auxil/networking.py:47: in _request_wrapper return await super()._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getForumTopicIconStickers' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError =================================== FAILURES =================================== _____________ TestHTTPXRequestWithoutRequest.test_http_1_response ______________ [gw15] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = async def test_http_1_response(self): httpx_request = HTTPXRequest(http_version="1.1") async with httpx_request: > resp = await httpx_request._client.request( url="https://python-telegram-bot.org", method="GET", headers={"User-Agent": httpx_request.USER_AGENT}, ) tests/request/test_request.py:529: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError ___________ TestHTTPXRequestWithoutRequest.test_multiple_init_cycles ___________ [gw7] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://python-telegram-bot.org', method = 'GET', request_data = None read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: self = async def test_multiple_init_cycles(self): # nothing really to assert - this should just not fail httpx_request = HTTPXRequest() async with httpx_request: > await httpx_request.do_request(url="https://python-telegram-bot.org", method="GET") tests/request/test_request.py:518: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://python-telegram-bot.org', method = 'GET', request_data = None read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError _______________ TestBotWithoutRequest.test_get_me_and_properties _______________ [gw11] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getMe' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: self = bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] async def test_get_me_and_properties(self, bot): > get_me_bot = await ExtBot(bot.token).get_me() tests/test_bot.py:370: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:1873: in get_me return await super().get_me( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:902: in get_me result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getMe' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError __________ TestBotWithoutRequest.test_log_decorator[Bot-telegram.Bot] __________ [gw12] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getMe' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: self = bot = PytestExtBot[token=579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c] cls = , logger_name = 'telegram.Bot' caplog = <_pytest.logging.LogCaptureFixture object at 0xf3beec48> @pytest.mark.parametrize( ("cls", "logger_name"), [(Bot, "telegram.Bot"), (ExtBot, "telegram.ext.ExtBot")] ) async def test_log_decorator(self, bot: PytestExtBot, cls, logger_name, caplog): # Second argument makes sure that we ignore logs from e.g. httpx with caplog.at_level(logging.DEBUG, logger="telegram"): > await cls(bot.token).get_me() tests/test_bot.py:409: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:902: in get_me result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getMe' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ------------------------------ Captured log call ------------------------------- decorator - Line 540 - Entering: get_me _____ TestBotWithoutRequest.test_log_decorator[ExtBot-telegram.ext.ExtBot] _____ [gw7] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/getMe' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: self = bot = PytestExtBot[token=558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo] cls = , logger_name = 'telegram.ext.ExtBot' caplog = <_pytest.logging.LogCaptureFixture object at 0xf3d547e0> @pytest.mark.parametrize( ("cls", "logger_name"), [(Bot, "telegram.Bot"), (ExtBot, "telegram.ext.ExtBot")] ) async def test_log_decorator(self, bot: PytestExtBot, cls, logger_name, caplog): # Second argument makes sure that we ignore logs from e.g. httpx with caplog.at_level(logging.DEBUG, logger="telegram"): > await cls(bot.token).get_me() tests/test_bot.py:409: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/ext/_extbot.py:1873: in get_me return await super().get_me( telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:902: in get_me result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/ext/_extbot.py:347: in _do_post return await super()._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot558194066:AAFwDPIFlzGUlCaWHtTOEX4RFrX8u9DMqfo/getMe' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ------------------------------ Captured log call ------------------------------- decorator - Line 540 - Entering: get_me _____________________ TestBotWithoutRequest.test_equality ______________________ [gw10] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: > yield /usr/lib/python3/site-packages/httpx/_transports/default.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_transports/default.py:373: in handle_async_request resp = await self._pool.handle_async_request(req) /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:216: in handle_async_request raise exc from None /usr/lib/python3/site-packages/httpcore/_async/connection_pool.py:196: in handle_async_request response = await connection.handle_async_request( /usr/lib/python3/site-packages/httpcore/_async/connection.py:99: in handle_async_request raise exc /usr/lib/python3/site-packages/httpcore/_async/connection.py:76: in handle_async_request stream = await self._connect(request) /usr/lib/python3/site-packages/httpcore/_async/connection.py:122: in _connect stream = await self._network_backend.connect_tcp(**kwargs) /usr/lib/python3/site-packages/httpcore/_backends/auto.py:30: in connect_tcp return await self._backend.connect_tcp( /usr/lib/python3/site-packages/httpcore/_backends/anyio.py:114: in connect_tcp with map_exceptions(exc_map): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ map = {: , : , : } @contextlib.contextmanager def map_exceptions(map: ExceptionMapping) -> Iterator[None]: try: yield except Exception as exc: # noqa: PIE786 for from_exc, to_exc in map.items(): if isinstance(exc, from_exc): > raise to_exc(exc) from exc E httpcore.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpcore/_exceptions.py:14: ConnectError The above exception was the direct cause of the following exception: self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getMe' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: > res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) telegram/request/_httpxrequest.py:276: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/site-packages/httpx/_client.py:1574: in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) /usr/lib/python3/site-packages/httpx/_client.py:1661: in send response = await self._send_handling_auth( /usr/lib/python3/site-packages/httpx/_client.py:1689: in _send_handling_auth response = await self._send_handling_redirects( /usr/lib/python3/site-packages/httpx/_client.py:1726: in _send_handling_redirects response = await self._send_single_request(request) /usr/lib/python3/site-packages/httpx/_client.py:1763: in _send_single_request response = await transport.handle_async_request(request) /usr/lib/python3/site-packages/httpx/_transports/default.py:372: in handle_async_request with map_httpcore_exceptions(): /usr/lib/python3.12/contextlib.py:158: in __exit__ self.gen.throw(value) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ @contextlib.contextmanager def map_httpcore_exceptions() -> typing.Iterator[None]: try: yield except Exception as exc: mapped_exc = None for from_exc, to_exc in HTTPCORE_EXC_MAP.items(): if not isinstance(exc, from_exc): continue # We want to map to the most specific exception we can find. # Eg if `exc` is an `httpcore.ReadTimeout`, we want to map to # `httpx.ReadTimeout`, not just `httpx.TimeoutException`. if mapped_exc is None or issubclass(to_exc, mapped_exc): mapped_exc = to_exc if mapped_exc is None: # pragma: no cover raise message = str(exc) > raise mapped_exc(message) from exc E httpx.ConnectError: [Errno -3] Temporary failure in name resolution /usr/lib/python3/site-packages/httpx/_transports/default.py:86: ConnectError The above exception was the direct cause of the following exception: self = async def test_equality(self): > async with make_bot(token=FALLBACKS[0]["token"]) as a, make_bot( token=FALLBACKS[0]["token"] ) as b, Bot(token=FALLBACKS[0]["token"]) as c, make_bot(token=FALLBACKS[1]["token"]) as d: tests/test_bot.py:325: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ telegram/_bot.py:329: in __aenter__ raise exc telegram/_bot.py:325: in __aenter__ await self.initialize() telegram/_bot.py:767: in initialize await self.get_me() telegram/_bot.py:541: in decorator result = await func(self, *args, **kwargs) telegram/_bot.py:902: in get_me result = await self._post( telegram/_bot.py:629: in _post return await self._do_post( telegram/_bot.py:657: in _do_post return await request.post( telegram/request/_baserequest.py:200: in post result = await self._request_wrapper( telegram/request/_baserequest.py:340: in _request_wrapper raise exc telegram/request/_baserequest.py:330: in _request_wrapper code, payload = await self.do_request( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = url = 'https://api.telegram.org/bot579694714:AAFpK8w6zkkUrD4xSeYwF3MO8e-4Grmcy7c/getMe' method = 'POST' request_data = read_timeout = 5.0, write_timeout = 5.0, connect_timeout = 5.0 pool_timeout = 1.0 async def do_request( self, url: str, method: str, request_data: Optional[RequestData] = None, read_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, write_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, connect_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, pool_timeout: ODVInput[float] = BaseRequest.DEFAULT_NONE, ) -> Tuple[int, bytes]: """See :meth:`BaseRequest.do_request`.""" if self._client.is_closed: raise RuntimeError("This HTTPXRequest is not initialized!") files = request_data.multipart_data if request_data else None data = request_data.json_parameters if request_data else None # If user did not specify timeouts (for e.g. in a bot method), use the default ones when we # created this instance. if isinstance(read_timeout, DefaultValue): read_timeout = self._client.timeout.read if isinstance(connect_timeout, DefaultValue): connect_timeout = self._client.timeout.connect if isinstance(pool_timeout, DefaultValue): pool_timeout = self._client.timeout.pool if isinstance(write_timeout, DefaultValue): write_timeout = self._client.timeout.write if not files else self._media_write_timeout timeout = httpx.Timeout( connect=connect_timeout, read=read_timeout, write=write_timeout, pool=pool_timeout, ) try: res = await self._client.request( method=method, url=url, headers={"User-Agent": self.USER_AGENT}, timeout=timeout, files=files, data=data, ) except httpx.TimeoutException as err: if isinstance(err, httpx.PoolTimeout): raise TimedOut( message=( "Pool timeout: All connections in the connection pool are occupied. " "Request was *not* sent to Telegram. Consider adjusting the connection " "pool size or the pool timeout." ) ) from err raise TimedOut from err except httpx.HTTPError as err: # HTTPError must come last as its the base httpx exception class # TODO p4: do something smart here; for now just raise NetworkError # We include the class name for easier debugging. Especially useful if the error # message of `err` is empty. > raise NetworkError(f"httpx.{err.__class__.__name__}: {err}") from err E telegram.error.NetworkError: httpx.ConnectError: [Errno -3] Temporary failure in name resolution telegram/request/_httpxrequest.py:300: NetworkError ________________ TestMessageWithoutRequest.test_link_with_reply ________________ [gw11] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 self = message = PytestMessage(channel_chat_created=False, chat=Chat(id=-1003, type=), date=datetime.datetime(2024, 6...), group_chat_created=False, message_id=7, supergroup_chat_created=False, text='Reply'), supergroup_chat_created=False) def test_link_with_reply(self, message): message.chat.username = None message.chat.id = -1003 message.reply_to_message = Message(7, self.from_user, self.date, self.chat, text="Reply") message.message_thread_id = 123 > assert message.link == f"https://t.me/c/3/{message.message_id}?thread=123" E AssertionError: assert None == 'https://t.me/c/3/1?thread=123' E + where None = PytestMessage(channel_chat_created=False, chat=Chat(id=-1003, type=), date=datetime.datetime(2024, 6...), group_chat_created=False, message_id=7, supergroup_chat_created=False, text='Reply'), supergroup_chat_created=False).link tests/test_message.py:1117: AssertionError _______________ TestMessageWithoutRequest.test_link_with_topics ________________ [gw4] linux -- Python 3.12.2 /usr/src/RPM/BUILD/python3-module-telegram-bot-21.0.1/.run_venv/bin/python3 self = message = PytestMessage(channel_chat_created=False, chat=Chat(id=-1003, type=), date=datetime.datetime(2024, 6..._created=False, is_topic_message=True, message_id=1, message_thread_id=123, supergroup_chat_created=False, text='test') def test_link_with_topics(self, message): message.chat.username = None message.chat.id = -1003 message.is_topic_message = True message.message_thread_id = 123 > assert message.link == f"https://t.me/c/3/{message.message_id}?thread=123" E AssertionError: assert None == 'https://t.me/c/3/1?thread=123' E + where None = PytestMessage(channel_chat_created=False, chat=Chat(id=-1003, type=), date=datetime.datetime(2024, 6..._created=False, is_topic_message=True, message_id=1, message_thread_id=123, supergroup_chat_created=False, text='test').link tests/test_message.py:1110: AssertionError =========================== short test summary info ============================ SKIPPED [1] tests/_passport/test_no_passport.py:40: Only relevant if the optional dependency is not installed SKIPPED [1] tests/_passport/test_no_passport.py:44: Only relevant if the optional dependency is not installed SKIPPED [1] tests/_passport/test_no_passport.py:48: Only relevant if the optional dependency is not installed SKIPPED [1] tests/request/test_request.py:83: Only relevant if the optional dependency is not installed SKIPPED [1] tests/test_callbackquery.py:428: Can't delete inline messages SKIPPED [1] tests/test_callbackquery.py:457: Can't pin inline messages SKIPPED [1] tests/test_callbackquery.py:512: Can't copy inline messages SKIPPED [1] tests/test_callbackquery.py:482: Can't unpin inline messages ============ 8 failed, 3203 passed, 8 skipped, 122 errors in 27.63s ============ INFO : Command's result: FAILURE INFO : Command's error: Command '['python3', '-m', 'pytest', '-n', 'auto', '--dist=loadgroup', '-m', 'no_req']' returned non-zero exit status 1. + : + exit 0 Processing files: python3-module-telegram-bot-21.0.1-alt1 Finding Provides (using /usr/lib/rpm/find-provides) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.P6RDtK find-provides: running scripts (alternatives,debuginfo,lib,pam,perl,pkgconfig,python,python3,shell) Finding Requires (using /usr/lib/rpm/find-requires) Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.SUIANu find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,python3,rpmlib,shebang,shell,static,symlinks,systemd-services) py3prov: detected potential module:telegram py3prov: detected potential module:telegram py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram" lines:[226] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._bot" lines:[227] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._botcommand" lines:[228] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._botcommandscope" lines:[229] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._botdescription" lines:[239] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._botname" lines:[240] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._callbackquery" lines:[241] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._chat" lines:[242] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._chatadministratorrights" lines:[243] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._chatboost" lines:[244] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._chatinvitelink" lines:[255] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._chatjoinrequest" lines:[256] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._chatlocation" lines:[257] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._chatmember" lines:[258] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._chatmemberupdated" lines:[267] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._chatpermissions" lines:[268] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._choseninlineresult" lines:[269] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._dice" lines:[270] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._files.animation" lines:[271] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._files.audio" lines:[272] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._files.chatphoto" lines:[273] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._files.contact" lines:[274] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._files.document" lines:[275] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._files.file" lines:[276] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._files.inputfile" lines:[277] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._files.inputmedia" lines:[278] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._files.inputsticker" lines:[286] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._files.location" lines:[287] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._files.photosize" lines:[288] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._files.sticker" lines:[289] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._files.venue" lines:[290] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._files.video" lines:[291] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._files.videonote" lines:[292] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._files.voice" lines:[293] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._forcereply" lines:[294] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._forumtopic" lines:[295] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._games.callbackgame" lines:[304] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._games.game" lines:[305] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._games.gamehighscore" lines:[306] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._giveaway" lines:[307] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinekeyboardbutton" lines:[308] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinekeyboardmarkup" lines:[309] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequery" lines:[310] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresult" lines:[311] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultarticle" lines:[312] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultaudio" lines:[313] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultcachedaudio" lines:[314] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultcacheddocument" lines:[315] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultcachedgif" lines:[316] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultcachedmpeg4gif" lines:[317] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultcachedphoto" lines:[318] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultcachedsticker" lines:[319] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultcachedvideo" lines:[320] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultcachedvoice" lines:[321] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultcontact" lines:[322] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultdocument" lines:[323] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultgame" lines:[324] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultgif" lines:[325] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultlocation" lines:[326] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultmpeg4gif" lines:[327] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultphoto" lines:[328] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultsbutton" lines:[329] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultvenue" lines:[330] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultvideo" lines:[331] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inlinequeryresultvoice" lines:[332] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inputcontactmessagecontent" lines:[333] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inputinvoicemessagecontent" lines:[334] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inputlocationmessagecontent" lines:[335] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inputmessagecontent" lines:[336] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inputtextmessagecontent" lines:[337] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._inline.inputvenuemessagecontent" lines:[338] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._keyboardbutton" lines:[339] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._keyboardbuttonpolltype" lines:[340] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._keyboardbuttonrequest" lines:[341] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._linkpreviewoptions" lines:[342] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._loginurl" lines:[343] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._menubutton" lines:[344] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._message" lines:[345] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._messageautodeletetimerchanged" lines:[346] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._messageentity" lines:[347] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._messageid" lines:[348] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._messageorigin" lines:[349] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._messagereactionupdated" lines:[356] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._passport.credentials" lines:[357] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._passport.data" lines:[365] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._passport.encryptedpassportelement" lines:[366] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._passport.passportdata" lines:[367] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._passport.passportelementerrors" lines:[368] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._passport.passportfile" lines:[380] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._payment.invoice" lines:[381] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._payment.labeledprice" lines:[382] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._payment.orderinfo" lines:[383] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._payment.precheckoutquery" lines:[384] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._payment.shippingaddress" lines:[385] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._payment.shippingoption" lines:[386] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._payment.shippingquery" lines:[387] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._payment.successfulpayment" lines:[388] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._poll" lines:[389] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._proximityalerttriggered" lines:[390] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._reaction" lines:[391] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._reply" lines:[392] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._replykeyboardmarkup" lines:[393] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._replykeyboardremove" lines:[394] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._sentwebappmessage" lines:[395] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._shared" lines:[396] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._story" lines:[397] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._switchinlinequerychosenchat" lines:[398] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._telegramobject" lines:[399] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._update" lines:[400] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._user" lines:[401] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._userprofilephotos" lines:[402] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._videochat" lines:[403] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._webappdata" lines:[409] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._webappinfo" lines:[410] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._webhookinfo" lines:[411] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py: "telegram._writeaccessallowed" lines:[412] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__main__.py: skipping "sys" lines:[21] py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__main__.py: "telegram" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__main__.py: "telegram.constants" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._botcommand" lines:[57] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._botcommandscope" lines:[58] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._botdescription" lines:[59] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._botname" lines:[60] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._chat" lines:[61] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._chatadministratorrights" lines:[62] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._chatboost" lines:[63] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._chatinvitelink" lines:[64] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._chatmember" lines:[65] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._chatpermissions" lines:[66] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._files.animation" lines:[67] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._files.audio" lines:[68] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._files.chatphoto" lines:[69] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._files.contact" lines:[70] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._files.document" lines:[71] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._files.file" lines:[72] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._files.inputmedia" lines:[73] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._files.location" lines:[74] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._files.photosize" lines:[75] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._files.sticker" lines:[76] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._files.venue" lines:[77] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._files.video" lines:[78] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._files.videonote" lines:[79] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._files.voice" lines:[80] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._forumtopic" lines:[81] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._games.gamehighscore" lines:[82] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._inline.inlinequeryresultsbutton" lines:[83] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._menubutton" lines:[84] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._message" lines:[85] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._messageid" lines:[86] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._poll" lines:[87] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._reaction" lines:[88] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._reply" lines:[89] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._sentwebappmessage" lines:[90] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._telegramobject" lines:[91] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._update" lines:[92] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._user" lines:[93] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._userprofilephotos" lines:[94] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._utils.argumentparsing" lines:[95] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._utils.defaultvalue" lines:[96] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._utils.files" lines:[97] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._utils.logging" lines:[98] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._utils.repr" lines:[99] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._utils.strings" lines:[100] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._utils.types" lines:[101] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._utils.warnings" lines:[102] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram._webhookinfo" lines:[103] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram.constants" lines:[104] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram.error" lines:[105] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram.request" lines:[106] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram.request._httpxrequest" lines:[107] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram.request._requestparameter" lines:[108] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram.warnings" lines:[109] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "cryptography.hazmat.backends" lines:[[48]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "cryptography.hazmat.primitives" lines:[[49]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py: "telegram" lines:[[112]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botcommand.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botcommand.py: "telegram._telegramobject" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botcommand.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botcommandscope.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botcommandscope.py: "telegram._telegramobject" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botcommandscope.py: "telegram._utils" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botcommandscope.py: "telegram._utils.types" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botcommandscope.py: "telegram" lines:[[29]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botdescription.py: "telegram._telegramobject" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botdescription.py: "telegram._utils.types" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botname.py: "telegram" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botname.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botname.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_callbackquery.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_callbackquery.py: "telegram._files.location" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_callbackquery.py: "telegram._message" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_callbackquery.py: "telegram._telegramobject" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_callbackquery.py: "telegram._user" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_callbackquery.py: "telegram._utils.defaultvalue" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_callbackquery.py: "telegram._utils.types" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_callbackquery.py: "telegram" lines:[[32]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chat.py: "telegram" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chat.py: "telegram._chatlocation" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chat.py: "telegram._chatpermissions" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chat.py: "telegram._files.chatphoto" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chat.py: "telegram._forumtopic" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chat.py: "telegram._menubutton" lines:[30] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chat.py: "telegram._reaction" lines:[31] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chat.py: "telegram._telegramobject" lines:[32] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chat.py: "telegram._utils" lines:[33] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chat.py: "telegram._utils.argumentparsing" lines:[34] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chat.py: "telegram._utils.datetime" lines:[35] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chat.py: "telegram._utils.defaultvalue" lines:[36] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chat.py: "telegram._utils.types" lines:[37] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chat.py: "telegram.helpers" lines:[38, 39, 40] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chat.py: "telegram" lines:[[43], [[584]]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatadministratorrights.py: "telegram._telegramobject" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatadministratorrights.py: "telegram._utils.types" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatboost.py: "telegram" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatboost.py: "telegram._chat" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatboost.py: "telegram._telegramobject" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatboost.py: "telegram._user" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatboost.py: "telegram._utils" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatboost.py: "telegram._utils.argumentparsing" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatboost.py: "telegram._utils.datetime" lines:[30] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatboost.py: "telegram._utils.types" lines:[31] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatboost.py: "telegram" lines:[[34]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatinvitelink.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatinvitelink.py: "telegram._user" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatinvitelink.py: "telegram._utils.datetime" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatinvitelink.py: "telegram._utils.types" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatinvitelink.py: "telegram" lines:[[29]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatjoinrequest.py: "telegram._chat" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatjoinrequest.py: "telegram._chatinvitelink" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatjoinrequest.py: "telegram._telegramobject" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatjoinrequest.py: "telegram._user" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatjoinrequest.py: "telegram._utils.datetime" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatjoinrequest.py: "telegram._utils.defaultvalue" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatjoinrequest.py: "telegram._utils.types" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatjoinrequest.py: "telegram" lines:[[32]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatlocation.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatlocation.py: "telegram._files.location" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatlocation.py: "telegram._telegramobject" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatlocation.py: "telegram._utils.types" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatlocation.py: "telegram" lines:[[29]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmember.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmember.py: "telegram._telegramobject" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmember.py: "telegram._user" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmember.py: "telegram._utils.datetime" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmember.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmember.py: "telegram" lines:[[30]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmemberupdated.py: "telegram._chat" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmemberupdated.py: "telegram._chatinvitelink" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmemberupdated.py: "telegram._chatmember" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmemberupdated.py: "telegram._telegramobject" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmemberupdated.py: "telegram._user" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmemberupdated.py: "telegram._utils.datetime" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmemberupdated.py: "telegram._utils.types" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmemberupdated.py: "telegram" lines:[[32]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatpermissions.py: "telegram._telegramobject" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatpermissions.py: "telegram._utils.types" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatpermissions.py: "telegram" lines:[[26]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_choseninlineresult.py: "telegram._files.location" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_choseninlineresult.py: "telegram._telegramobject" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_choseninlineresult.py: "telegram._user" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_choseninlineresult.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_choseninlineresult.py: "telegram" lines:[[30]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_dice.py: "telegram" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_dice.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_dice.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/_basemedium.py: "telegram._telegramobject" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/_basemedium.py: "telegram._utils.defaultvalue" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/_basemedium.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/_basemedium.py: "telegram" lines:[[27]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/_basethumbedmedium.py: "telegram._files._basemedium" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/_basethumbedmedium.py: "telegram._files.photosize" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/_basethumbedmedium.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/_basethumbedmedium.py: "telegram" lines:[[27]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/animation.py: "telegram._files._basethumbedmedium" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/animation.py: "telegram._files.photosize" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/animation.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/audio.py: "telegram._files._basethumbedmedium" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/audio.py: "telegram._files.photosize" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/audio.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/chatphoto.py: "telegram" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/chatphoto.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/chatphoto.py: "telegram._utils.defaultvalue" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/chatphoto.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/chatphoto.py: "telegram" lines:[[28]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/contact.py: "telegram._telegramobject" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/contact.py: "telegram._utils.types" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/document.py: "telegram._files._basethumbedmedium" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/document.py: "telegram._files.photosize" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/document.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/file.py: "telegram._passport.credentials" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/file.py: "telegram._telegramobject" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/file.py: "telegram._utils.defaultvalue" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/file.py: "telegram._utils.files" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/file.py: "telegram._utils.types" lines:[30] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/file.py: "telegram" lines:[[33]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputfile.py: "telegram._utils.files" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputfile.py: "telegram._utils.types" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputmedia.py: "telegram" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputmedia.py: "telegram._files.animation" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputmedia.py: "telegram._files.audio" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputmedia.py: "telegram._files.document" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputmedia.py: "telegram._files.inputfile" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputmedia.py: "telegram._files.photosize" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputmedia.py: "telegram._files.video" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputmedia.py: "telegram._messageentity" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputmedia.py: "telegram._telegramobject" lines:[30] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputmedia.py: "telegram._utils" lines:[31] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputmedia.py: "telegram._utils.argumentparsing" lines:[32] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputmedia.py: "telegram._utils.defaultvalue" lines:[33] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputmedia.py: "telegram._utils.files" lines:[34] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputmedia.py: "telegram._utils.types" lines:[35] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputmedia.py: "telegram.constants" lines:[36] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputsticker.py: "telegram._files.sticker" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputsticker.py: "telegram._telegramobject" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputsticker.py: "telegram._utils.argumentparsing" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputsticker.py: "telegram._utils.files" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputsticker.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputsticker.py: "telegram._files.inputfile" lines:[[30]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/location.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/location.py: "telegram._telegramobject" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/location.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/photosize.py: "telegram._files._basemedium" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/photosize.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/sticker.py: "telegram" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/sticker.py: "telegram._files._basethumbedmedium" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/sticker.py: "telegram._files.file" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/sticker.py: "telegram._files.photosize" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/sticker.py: "telegram._telegramobject" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/sticker.py: "telegram._utils" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/sticker.py: "telegram._utils.argumentparsing" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/sticker.py: "telegram._utils.types" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/sticker.py: "telegram" lines:[[32]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/venue.py: "telegram._files.location" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/venue.py: "telegram._telegramobject" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/venue.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/venue.py: "telegram" lines:[[28]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/video.py: "telegram._files._basethumbedmedium" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/video.py: "telegram._files.photosize" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/video.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/videonote.py: "telegram._files._basethumbedmedium" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/videonote.py: "telegram._files.photosize" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/videonote.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/voice.py: "telegram._files._basemedium" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/voice.py: "telegram._utils.types" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_forcereply.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_forcereply.py: "telegram._telegramobject" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_forcereply.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_forumtopic.py: "telegram._telegramobject" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_forumtopic.py: "telegram._utils.types" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/callbackgame.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/callbackgame.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/game.py: "telegram._files.animation" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/game.py: "telegram._files.photosize" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/game.py: "telegram._messageentity" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/game.py: "telegram._telegramobject" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/game.py: "telegram._utils.argumentparsing" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/game.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/game.py: "telegram" lines:[[30]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/gamehighscore.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/gamehighscore.py: "telegram._user" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/gamehighscore.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/gamehighscore.py: "telegram" lines:[[28]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_giveaway.py: "telegram._chat" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_giveaway.py: "telegram._telegramobject" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_giveaway.py: "telegram._user" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_giveaway.py: "telegram._utils.argumentparsing" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_giveaway.py: "telegram._utils.datetime" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_giveaway.py: "telegram._utils.types" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_giveaway.py: "telegram" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_giveaway.py: "telegram._message" lines:[[[334]]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardbutton.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardbutton.py: "telegram._games.callbackgame" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardbutton.py: "telegram._loginurl" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardbutton.py: "telegram._switchinlinequerychosenchat" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardbutton.py: "telegram._telegramobject" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardbutton.py: "telegram._utils.types" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardbutton.py: "telegram._webappinfo" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardbutton.py: "telegram" lines:[[32]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardmarkup.py: "telegram._inline.inlinekeyboardbutton" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardmarkup.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardmarkup.py: "telegram._utils.markup" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardmarkup.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardmarkup.py: "telegram" lines:[[28]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequery.py: "telegram" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequery.py: "telegram._files.location" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequery.py: "telegram._inline.inlinequeryresultsbutton" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequery.py: "telegram._telegramobject" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequery.py: "telegram._user" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequery.py: "telegram._utils.defaultvalue" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequery.py: "telegram._utils.types" lines:[30] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequery.py: "telegram" lines:[[33]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresult.py: "telegram" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresult.py: "telegram._telegramobject" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresult.py: "telegram._utils" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresult.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultarticle.py: "telegram._inline.inlinekeyboardmarkup" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultarticle.py: "telegram._inline.inlinequeryresult" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultarticle.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultarticle.py: "telegram.constants" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultarticle.py: "telegram" lines:[[29]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultaudio.py: "telegram._inline.inlinekeyboardmarkup" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultaudio.py: "telegram._inline.inlinequeryresult" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultaudio.py: "telegram._messageentity" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultaudio.py: "telegram._utils.argumentparsing" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultaudio.py: "telegram._utils.defaultvalue" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultaudio.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultaudio.py: "telegram.constants" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultaudio.py: "telegram" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedaudio.py: "telegram._inline.inlinekeyboardmarkup" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedaudio.py: "telegram._inline.inlinequeryresult" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedaudio.py: "telegram._messageentity" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedaudio.py: "telegram._utils.argumentparsing" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedaudio.py: "telegram._utils.defaultvalue" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedaudio.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedaudio.py: "telegram.constants" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedaudio.py: "telegram" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcacheddocument.py: "telegram._inline.inlinekeyboardmarkup" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcacheddocument.py: "telegram._inline.inlinequeryresult" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcacheddocument.py: "telegram._messageentity" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcacheddocument.py: "telegram._utils.argumentparsing" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcacheddocument.py: "telegram._utils.defaultvalue" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcacheddocument.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcacheddocument.py: "telegram.constants" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcacheddocument.py: "telegram" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedgif.py: "telegram._inline.inlinekeyboardmarkup" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedgif.py: "telegram._inline.inlinequeryresult" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedgif.py: "telegram._messageentity" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedgif.py: "telegram._utils.argumentparsing" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedgif.py: "telegram._utils.defaultvalue" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedgif.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedgif.py: "telegram.constants" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedgif.py: "telegram" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedmpeg4gif.py: "telegram._inline.inlinekeyboardmarkup" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedmpeg4gif.py: "telegram._inline.inlinequeryresult" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedmpeg4gif.py: "telegram._messageentity" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedmpeg4gif.py: "telegram._utils.argumentparsing" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedmpeg4gif.py: "telegram._utils.defaultvalue" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedmpeg4gif.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedmpeg4gif.py: "telegram.constants" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedmpeg4gif.py: "telegram" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedphoto.py: "telegram._inline.inlinekeyboardmarkup" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedphoto.py: "telegram._inline.inlinequeryresult" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedphoto.py: "telegram._messageentity" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedphoto.py: "telegram._utils.argumentparsing" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedphoto.py: "telegram._utils.defaultvalue" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedphoto.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedphoto.py: "telegram.constants" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedphoto.py: "telegram" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedsticker.py: "telegram._inline.inlinekeyboardmarkup" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedsticker.py: "telegram._inline.inlinequeryresult" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedsticker.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedsticker.py: "telegram.constants" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedsticker.py: "telegram" lines:[[29]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvideo.py: "telegram._inline.inlinekeyboardmarkup" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvideo.py: "telegram._inline.inlinequeryresult" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvideo.py: "telegram._messageentity" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvideo.py: "telegram._utils.argumentparsing" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvideo.py: "telegram._utils.defaultvalue" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvideo.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvideo.py: "telegram.constants" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvideo.py: "telegram" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvoice.py: "telegram._inline.inlinekeyboardmarkup" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvoice.py: "telegram._inline.inlinequeryresult" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvoice.py: "telegram._messageentity" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvoice.py: "telegram._utils.argumentparsing" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvoice.py: "telegram._utils.defaultvalue" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvoice.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvoice.py: "telegram.constants" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvoice.py: "telegram" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcontact.py: "telegram._inline.inlinekeyboardmarkup" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcontact.py: "telegram._inline.inlinequeryresult" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcontact.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcontact.py: "telegram.constants" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcontact.py: "telegram" lines:[[29]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultdocument.py: "telegram._inline.inlinekeyboardmarkup" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultdocument.py: "telegram._inline.inlinequeryresult" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultdocument.py: "telegram._messageentity" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultdocument.py: "telegram._utils.argumentparsing" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultdocument.py: "telegram._utils.defaultvalue" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultdocument.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultdocument.py: "telegram.constants" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultdocument.py: "telegram" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgame.py: "telegram._inline.inlinekeyboardmarkup" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgame.py: "telegram._inline.inlinequeryresult" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgame.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgame.py: "telegram.constants" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgif.py: "telegram._inline.inlinekeyboardmarkup" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgif.py: "telegram._inline.inlinequeryresult" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgif.py: "telegram._messageentity" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgif.py: "telegram._utils.argumentparsing" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgif.py: "telegram._utils.defaultvalue" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgif.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgif.py: "telegram.constants" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgif.py: "telegram" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultlocation.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultlocation.py: "telegram._inline.inlinekeyboardmarkup" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultlocation.py: "telegram._inline.inlinequeryresult" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultlocation.py: "telegram._utils.types" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultlocation.py: "telegram" lines:[[29]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultmpeg4gif.py: "telegram._inline.inlinekeyboardmarkup" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultmpeg4gif.py: "telegram._inline.inlinequeryresult" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultmpeg4gif.py: "telegram._messageentity" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultmpeg4gif.py: "telegram._utils.argumentparsing" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultmpeg4gif.py: "telegram._utils.defaultvalue" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultmpeg4gif.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultmpeg4gif.py: "telegram.constants" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultmpeg4gif.py: "telegram" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultphoto.py: "telegram._inline.inlinekeyboardmarkup" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultphoto.py: "telegram._inline.inlinequeryresult" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultphoto.py: "telegram._messageentity" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultphoto.py: "telegram._utils.argumentparsing" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultphoto.py: "telegram._utils.defaultvalue" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultphoto.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultphoto.py: "telegram.constants" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultphoto.py: "telegram" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultsbutton.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultsbutton.py: "telegram._telegramobject" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultsbutton.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultsbutton.py: "telegram._webappinfo" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultsbutton.py: "telegram" lines:[[29]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvenue.py: "telegram._inline.inlinekeyboardmarkup" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvenue.py: "telegram._inline.inlinequeryresult" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvenue.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvenue.py: "telegram.constants" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvenue.py: "telegram" lines:[[29]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvideo.py: "telegram._inline.inlinekeyboardmarkup" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvideo.py: "telegram._inline.inlinequeryresult" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvideo.py: "telegram._messageentity" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvideo.py: "telegram._utils.argumentparsing" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvideo.py: "telegram._utils.defaultvalue" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvideo.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvideo.py: "telegram.constants" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvideo.py: "telegram" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvoice.py: "telegram._inline.inlinekeyboardmarkup" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvoice.py: "telegram._inline.inlinequeryresult" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvoice.py: "telegram._messageentity" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvoice.py: "telegram._utils.argumentparsing" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvoice.py: "telegram._utils.defaultvalue" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvoice.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvoice.py: "telegram.constants" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvoice.py: "telegram" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputcontactmessagecontent.py: "telegram._inline.inputmessagecontent" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputcontactmessagecontent.py: "telegram._utils.types" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputinvoicemessagecontent.py: "telegram._inline.inputmessagecontent" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputinvoicemessagecontent.py: "telegram._payment.labeledprice" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputinvoicemessagecontent.py: "telegram._utils.argumentparsing" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputinvoicemessagecontent.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputinvoicemessagecontent.py: "telegram" lines:[[28]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputlocationmessagecontent.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputlocationmessagecontent.py: "telegram._inline.inputmessagecontent" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputlocationmessagecontent.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputmessagecontent.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputmessagecontent.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputtextmessagecontent.py: "telegram._inline.inputmessagecontent" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputtextmessagecontent.py: "telegram._messageentity" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputtextmessagecontent.py: "telegram._utils.argumentparsing" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputtextmessagecontent.py: "telegram._utils.defaultvalue" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputtextmessagecontent.py: "telegram._utils.types" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputtextmessagecontent.py: "telegram._linkpreviewoptions" lines:[[29]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputvenuemessagecontent.py: "telegram._inline.inputmessagecontent" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputvenuemessagecontent.py: "telegram._utils.types" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbutton.py: "telegram._keyboardbuttonpolltype" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbutton.py: "telegram._keyboardbuttonrequest" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbutton.py: "telegram._telegramobject" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbutton.py: "telegram._utils.types" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbutton.py: "telegram._webappinfo" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbutton.py: "telegram" lines:[[30]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbuttonpolltype.py: "telegram._telegramobject" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbuttonpolltype.py: "telegram._utils" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbuttonpolltype.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbuttonpolltype.py: "telegram.constants" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbuttonrequest.py: "telegram._chatadministratorrights" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbuttonrequest.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbuttonrequest.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbuttonrequest.py: "telegram" lines:[[27]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_linkpreviewoptions.py: "telegram._telegramobject" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_linkpreviewoptions.py: "telegram._utils.defaultvalue" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_linkpreviewoptions.py: "telegram._utils.types" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_loginurl.py: "telegram._telegramobject" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_loginurl.py: "telegram._utils.types" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_menubutton.py: "telegram" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_menubutton.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_menubutton.py: "telegram._utils" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_menubutton.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_menubutton.py: "telegram._webappinfo" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_menubutton.py: "telegram" lines:[[29]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._chat" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._chatboost" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._dice" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._files.animation" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._files.audio" lines:[30] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._files.contact" lines:[31] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._files.document" lines:[32] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._files.location" lines:[33] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._files.photosize" lines:[34] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._files.sticker" lines:[35] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._files.venue" lines:[36] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._files.video" lines:[37] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._files.videonote" lines:[38] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._files.voice" lines:[39] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._forumtopic" lines:[40] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._games.game" lines:[48] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._inline.inlinekeyboardmarkup" lines:[49] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._linkpreviewoptions" lines:[50] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._messageautodeletetimerchanged" lines:[51] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._messageentity" lines:[52] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._passport.passportdata" lines:[53] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._payment.invoice" lines:[54] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._payment.successfulpayment" lines:[55] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._poll" lines:[56] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._proximityalerttriggered" lines:[57] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._reply" lines:[58] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._shared" lines:[59] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._story" lines:[60] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._telegramobject" lines:[61] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._user" lines:[62] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._utils.argumentparsing" lines:[63] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._utils.datetime" lines:[64] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._utils.defaultvalue" lines:[65] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._utils.types" lines:[66] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._utils.warnings" lines:[74] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._videochat" lines:[75] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._webappdata" lines:[81] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._writeaccessallowed" lines:[82] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram.constants" lines:[83] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram.helpers" lines:[84] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram.warnings" lines:[85] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram" lines:[[88]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._giveaway" lines:[[[1198]]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._messageorigin" lines:[[[1204]]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py: "telegram._reply" lines:[[[1207]]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageautodeletetimerchanged.py: "telegram._telegramobject" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageautodeletetimerchanged.py: "telegram._utils.types" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageentity.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageentity.py: "telegram._telegramobject" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageentity.py: "telegram._user" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageentity.py: "telegram._utils" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageentity.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageentity.py: "telegram" lines:[[30]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageid.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageid.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageorigin.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageorigin.py: "telegram._chat" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageorigin.py: "telegram._telegramobject" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageorigin.py: "telegram._user" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageorigin.py: "telegram._utils" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageorigin.py: "telegram._utils.datetime" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageorigin.py: "telegram._utils.types" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageorigin.py: "telegram" lines:[[32]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messagereactionupdated.py: "telegram._chat" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messagereactionupdated.py: "telegram._reaction" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messagereactionupdated.py: "telegram._telegramobject" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messagereactionupdated.py: "telegram._user" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messagereactionupdated.py: "telegram._utils.argumentparsing" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messagereactionupdated.py: "telegram._utils.datetime" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messagereactionupdated.py: "telegram._utils.types" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messagereactionupdated.py: "telegram" lines:[[32]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/credentials.py: "telegram._telegramobject" lines:[40] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/credentials.py: "telegram._utils.argumentparsing" lines:[41] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/credentials.py: "telegram._utils.types" lines:[42] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/credentials.py: "telegram.error" lines:[43] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/credentials.py: "cryptography.hazmat.backends" lines:[[25]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/credentials.py: "cryptography.hazmat.primitives.asymmetric.padding" lines:[[26]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/credentials.py: "cryptography.hazmat.primitives.ciphers" lines:[[27]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/credentials.py: "cryptography.hazmat.primitives.ciphers.algorithms" lines:[[28]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/credentials.py: "cryptography.hazmat.primitives.ciphers.modes" lines:[[29]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/credentials.py: "cryptography.hazmat.primitives.hashes" lines:[[30]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/credentials.py: "telegram" lines:[[46]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/data.py: "telegram._telegramobject" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/data.py: "telegram._utils.types" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/encryptedpassportelement.py: "telegram._passport.credentials" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/encryptedpassportelement.py: "telegram._passport.data" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/encryptedpassportelement.py: "telegram._passport.passportfile" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/encryptedpassportelement.py: "telegram._telegramobject" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/encryptedpassportelement.py: "telegram._utils.argumentparsing" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/encryptedpassportelement.py: "telegram._utils.types" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/encryptedpassportelement.py: "telegram" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportdata.py: "telegram._passport.credentials" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportdata.py: "telegram._passport.encryptedpassportelement" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportdata.py: "telegram._telegramobject" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportdata.py: "telegram._utils.argumentparsing" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportdata.py: "telegram._utils.types" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportdata.py: "telegram" lines:[[29]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportelementerrors.py: "telegram._telegramobject" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportelementerrors.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportelementerrors.py: "telegram._utils.warnings" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportelementerrors.py: "telegram.warnings" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportfile.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportfile.py: "telegram._utils.defaultvalue" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportfile.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportfile.py: "telegram._utils.warnings" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportfile.py: "telegram.warnings" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportfile.py: "telegram" lines:[[30]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/invoice.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/invoice.py: "telegram._telegramobject" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/invoice.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/labeledprice.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/labeledprice.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/orderinfo.py: "telegram._payment.shippingaddress" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/orderinfo.py: "telegram._telegramobject" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/orderinfo.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/orderinfo.py: "telegram" lines:[[28]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/precheckoutquery.py: "telegram._payment.orderinfo" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/precheckoutquery.py: "telegram._telegramobject" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/precheckoutquery.py: "telegram._user" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/precheckoutquery.py: "telegram._utils.defaultvalue" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/precheckoutquery.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/precheckoutquery.py: "telegram" lines:[[30]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingaddress.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingaddress.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingoption.py: "telegram._telegramobject" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingoption.py: "telegram._utils.argumentparsing" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingoption.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingoption.py: "telegram" lines:[[27]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingquery.py: "telegram._payment.shippingaddress" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingquery.py: "telegram._telegramobject" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingquery.py: "telegram._user" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingquery.py: "telegram._utils.defaultvalue" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingquery.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingquery.py: "telegram" lines:[[30]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingquery.py: "telegram._payment.shippingoption" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/successfulpayment.py: "telegram._payment.orderinfo" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/successfulpayment.py: "telegram._telegramobject" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/successfulpayment.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/successfulpayment.py: "telegram" lines:[[28]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_poll.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_poll.py: "telegram._chat" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_poll.py: "telegram._messageentity" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_poll.py: "telegram._telegramobject" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_poll.py: "telegram._user" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_poll.py: "telegram._utils" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_poll.py: "telegram._utils.argumentparsing" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_poll.py: "telegram._utils.datetime" lines:[30] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_poll.py: "telegram._utils.types" lines:[31] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_poll.py: "telegram" lines:[[34]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_proximityalerttriggered.py: "telegram._telegramobject" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_proximityalerttriggered.py: "telegram._user" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_proximityalerttriggered.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_proximityalerttriggered.py: "telegram" lines:[[27]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reaction.py: "telegram" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reaction.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reaction.py: "telegram._utils" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reaction.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reaction.py: "telegram" lines:[[28]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._chat" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._dice" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._files.animation" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._files.audio" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._files.contact" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._files.document" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._files.location" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._files.photosize" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._files.sticker" lines:[30] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._files.venue" lines:[31] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._files.video" lines:[32] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._files.videonote" lines:[33] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._files.voice" lines:[34] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._games.game" lines:[35] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._giveaway" lines:[36] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._linkpreviewoptions" lines:[37] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._messageentity" lines:[38] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._messageorigin" lines:[39] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._payment.invoice" lines:[40] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._poll" lines:[41] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._story" lines:[42] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._telegramobject" lines:[43] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._utils.argumentparsing" lines:[44] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._utils.defaultvalue" lines:[45] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram._utils.types" lines:[46] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py: "telegram" lines:[[49]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_replykeyboardmarkup.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_replykeyboardmarkup.py: "telegram._keyboardbutton" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_replykeyboardmarkup.py: "telegram._telegramobject" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_replykeyboardmarkup.py: "telegram._utils.markup" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_replykeyboardmarkup.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_replykeyboardremove.py: "telegram._telegramobject" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_replykeyboardremove.py: "telegram._utils.types" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_sentwebappmessage.py: "telegram._telegramobject" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_sentwebappmessage.py: "telegram._utils.types" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_shared.py: "telegram._telegramobject" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_shared.py: "telegram._utils.types" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_story.py: "telegram._chat" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_story.py: "telegram._telegramobject" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_story.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_story.py: "telegram" lines:[[28]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_switchinlinequerychosenchat.py: "telegram._telegramobject" lines:[21] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_switchinlinequerychosenchat.py: "telegram._utils.types" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_telegramobject.py: skipping "itertools" lines:[27] py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_telegramobject.py: "telegram._utils.datetime" lines:[46] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_telegramobject.py: "telegram._utils.defaultvalue" lines:[47] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_telegramobject.py: "telegram._utils.types" lines:[48] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_telegramobject.py: "telegram._utils.warnings" lines:[49] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_telegramobject.py: "telegram" lines:[[52]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py: "telegram._callbackquery" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py: "telegram._chatboost" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py: "telegram._chatjoinrequest" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py: "telegram._chatmemberupdated" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py: "telegram._choseninlineresult" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py: "telegram._inline.inlinequery" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py: "telegram._message" lines:[30] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py: "telegram._messagereactionupdated" lines:[31] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py: "telegram._payment.precheckoutquery" lines:[32] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py: "telegram._payment.shippingquery" lines:[33] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py: "telegram._poll" lines:[34] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py: "telegram._telegramobject" lines:[35] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py: "telegram._utils.types" lines:[36] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py: "telegram._utils.warnings" lines:[37] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py: "telegram" lines:[[40]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_user.py: "telegram._inline.inlinekeyboardbutton" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_user.py: "telegram._menubutton" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_user.py: "telegram._telegramobject" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_user.py: "telegram._utils.defaultvalue" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_user.py: "telegram._utils.types" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_user.py: "telegram.helpers" lines:[29, 30] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_user.py: "telegram" lines:[[33]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_userprofilephotos.py: "telegram._files.photosize" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_userprofilephotos.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_userprofilephotos.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_userprofilephotos.py: "telegram" lines:[[27]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/argumentparsing.py: "telegram._linkpreviewoptions" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/argumentparsing.py: "telegram._utils.types" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/datetime.py: skipping "time" lines:[31] py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/datetime.py: "telegram" lines:[[35]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/datetime.py: "pytz" lines:[[41]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/enum.py: skipping "sys" lines:[27] py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/files.py: "telegram._utils.types" lines:[34] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/files.py: "telegram" lines:[[37], [130]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/types.py: "telegram" lines:[[41]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/types.py: "telegram._utils.defaultvalue" lines:[[48]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/warnings.py: "telegram.warnings" lines:[31] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/warnings_transition.py: "telegram._utils.warnings" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/warnings_transition.py: "telegram.warnings" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_version.py: "telegram" lines:[62] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_videochat.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_videochat.py: "telegram._user" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_videochat.py: "telegram._utils.argumentparsing" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_videochat.py: "telegram._utils.datetime" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_videochat.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_videochat.py: "telegram" lines:[[30]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webappdata.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webappdata.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webappinfo.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webappinfo.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webhookinfo.py: "telegram._telegramobject" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webhookinfo.py: "telegram._utils.argumentparsing" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webhookinfo.py: "telegram._utils.datetime" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webhookinfo.py: "telegram._utils.types" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webhookinfo.py: "telegram" lines:[[29]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_writeaccessallowed.py: "telegram._telegramobject" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_writeaccessallowed.py: "telegram._utils.types" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/constants.py: skipping "sys" lines:[99] py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/constants.py: "telegram._utils.datetime" lines:[103] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/constants.py: "telegram._utils.enum" lines:[104] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext" lines:[64] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._aioratelimiter" lines:[65] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._application" lines:[66] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._applicationbuilder" lines:[67] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._basepersistence" lines:[68] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._baseratelimiter" lines:[69] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._baseupdateprocessor" lines:[70] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._callbackcontext" lines:[71] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._callbackdatacache" lines:[72] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._contexttypes" lines:[73] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._defaults" lines:[74] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._dictpersistence" lines:[75] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._extbot" lines:[76] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._handlers.basehandler" lines:[77] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._handlers.callbackqueryhandler" lines:[78] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._handlers.chatboosthandler" lines:[79] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._handlers.chatjoinrequesthandler" lines:[80] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._handlers.chatmemberhandler" lines:[81] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._handlers.choseninlineresulthandler" lines:[82] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._handlers.commandhandler" lines:[83] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._handlers.conversationhandler" lines:[84] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._handlers.inlinequeryhandler" lines:[85] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._handlers.messagehandler" lines:[86] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._handlers.messagereactionhandler" lines:[87] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._handlers.pollanswerhandler" lines:[88] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._handlers.pollhandler" lines:[89] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._handlers.precheckoutqueryhandler" lines:[90] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._handlers.prefixhandler" lines:[91] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._handlers.shippingqueryhandler" lines:[92] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._handlers.stringcommandhandler" lines:[93] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._handlers.stringregexhandler" lines:[94] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._handlers.typehandler" lines:[95] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._jobqueue" lines:[96] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._picklepersistence" lines:[97] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py: "telegram.ext._updater" lines:[98] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_aioratelimiter.py: skipping "sys" lines:[24] py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_aioratelimiter.py: "telegram._utils.logging" lines:[34] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_aioratelimiter.py: "telegram._utils.types" lines:[35] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_aioratelimiter.py: "telegram.error" lines:[36] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_aioratelimiter.py: "telegram.ext._baseratelimiter" lines:[37] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_aioratelimiter.py: "aiolimiter" lines:[[28]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: skipping "itertools" lines:[23] py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: skipping "sys" lines:[26] py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram._update" lines:[54] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram._utils.defaultvalue" lines:[55] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram._utils.logging" lines:[62] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram._utils.repr" lines:[63] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram._utils.types" lines:[64] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram._utils.warnings" lines:[65] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram.error" lines:[66] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram.ext._basepersistence" lines:[67] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram.ext._contexttypes" lines:[68] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram.ext._extbot" lines:[69] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram.ext._handlers.basehandler" lines:[70] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram.ext._updater" lines:[71] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram.ext._utils.stack" lines:[72] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram.ext._utils.trackingdict" lines:[73] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram.ext._utils.types" lines:[74] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram.warnings" lines:[75] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram" lines:[[78]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram.ext" lines:[[79], [[466]]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram.ext._applicationbuilder" lines:[[80]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram.ext._baseupdateprocessor" lines:[[81]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram.ext._jobqueue" lines:[[82]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py: "telegram.ext._handlers.conversationhandler" lines:[[[509], [1319], [1665]]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py: "telegram._bot" lines:[38] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py: "telegram._utils.defaultvalue" lines:[39] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py: "telegram._utils.types" lines:[40] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py: "telegram._utils.warnings" lines:[41] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py: "telegram.ext._application" lines:[42] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py: "telegram.ext._baseupdateprocessor" lines:[43] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py: "telegram.ext._contexttypes" lines:[44] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py: "telegram.ext._extbot" lines:[45] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py: "telegram.ext._jobqueue" lines:[46] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py: "telegram.ext._updater" lines:[47] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py: "telegram.ext._utils.types" lines:[48] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py: "telegram.request" lines:[49] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py: "telegram.request._httpxrequest" lines:[50] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py: "telegram.warnings" lines:[51] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py: "telegram" lines:[[54]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py: "telegram.ext" lines:[[55]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py: "telegram.ext._utils.types" lines:[[56]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_basepersistence.py: "telegram._bot" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_basepersistence.py: "telegram.ext._extbot" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_basepersistence.py: "telegram.ext._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_baseratelimiter.py: "telegram._utils.types" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_baseratelimiter.py: "telegram.ext._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackcontext.py: "telegram._callbackquery" lines:[35] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackcontext.py: "telegram._update" lines:[36] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackcontext.py: "telegram._utils.warnings" lines:[37] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackcontext.py: "telegram.ext._extbot" lines:[38] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackcontext.py: "telegram.ext._utils.types" lines:[39] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackcontext.py: "asyncio" lines:[[42]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackcontext.py: "telegram.ext" lines:[[44]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackcontext.py: "telegram.ext._utils.types" lines:[[45]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackdatacache.py: skipping "time" lines:[20] py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackdatacache.py: "telegram" lines:[33] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackdatacache.py: "telegram._utils.datetime" lines:[34] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackdatacache.py: "telegram.error" lines:[35] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackdatacache.py: "telegram.ext._utils.types" lines:[36] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackdatacache.py: "cachetools" lines:[[26]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackdatacache.py: "telegram.ext" lines:[[39]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_contexttypes.py: "telegram.ext._callbackcontext" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_contexttypes.py: "telegram.ext._extbot" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_contexttypes.py: "telegram.ext._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_defaults.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_defaults.py: "telegram._utils.datetime" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_defaults.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_defaults.py: "telegram._utils.warnings" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_defaults.py: "telegram.warnings" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_dictpersistence.py: "telegram.ext" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_dictpersistence.py: "telegram.ext._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_dictpersistence.py: "telegram._utils.types" lines:[[28]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_extbot.py: "telegram" lines:[42] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_extbot.py: "telegram._utils.datetime" lines:[90] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_extbot.py: "telegram._utils.defaultvalue" lines:[91] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_extbot.py: "telegram._utils.logging" lines:[92] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_extbot.py: "telegram._utils.repr" lines:[93] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_extbot.py: "telegram._utils.types" lines:[94] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_extbot.py: "telegram.ext._callbackdatacache" lines:[95] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_extbot.py: "telegram.ext._utils.types" lines:[96] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_extbot.py: "telegram.request" lines:[97] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_extbot.py: "telegram.warnings" lines:[98] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_extbot.py: "telegram" lines:[[101]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_extbot.py: "telegram.ext" lines:[[113]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/basehandler.py: "telegram._utils.defaultvalue" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/basehandler.py: "telegram._utils.repr" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/basehandler.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/basehandler.py: "telegram.ext._utils.types" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/basehandler.py: "telegram.ext" lines:[[29]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/callbackqueryhandler.py: "telegram" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/callbackqueryhandler.py: "telegram._utils.defaultvalue" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/callbackqueryhandler.py: "telegram._utils.types" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/callbackqueryhandler.py: "telegram.ext._handlers.basehandler" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/callbackqueryhandler.py: "telegram.ext._utils.types" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/callbackqueryhandler.py: "telegram.ext" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatboosthandler.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatboosthandler.py: "telegram.ext._handlers.basehandler" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatboosthandler.py: "telegram.ext._utils._update_parsing" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatboosthandler.py: "telegram.ext._utils.types" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatjoinrequesthandler.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatjoinrequesthandler.py: "telegram._utils.defaultvalue" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatjoinrequesthandler.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatjoinrequesthandler.py: "telegram.ext._handlers.basehandler" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatjoinrequesthandler.py: "telegram.ext._utils._update_parsing" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatjoinrequesthandler.py: "telegram.ext._utils.types" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatmemberhandler.py: "telegram" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatmemberhandler.py: "telegram._utils.defaultvalue" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatmemberhandler.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatmemberhandler.py: "telegram.ext._handlers.basehandler" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatmemberhandler.py: "telegram.ext._utils.types" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/choseninlineresulthandler.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/choseninlineresulthandler.py: "telegram._utils.defaultvalue" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/choseninlineresulthandler.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/choseninlineresulthandler.py: "telegram.ext._handlers.basehandler" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/choseninlineresulthandler.py: "telegram.ext._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/choseninlineresulthandler.py: "telegram.ext" lines:[[32]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/commandhandler.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/commandhandler.py: "telegram._utils.defaultvalue" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/commandhandler.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/commandhandler.py: "telegram.ext" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/commandhandler.py: "telegram.ext._handlers.basehandler" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/commandhandler.py: "telegram.ext._utils.types" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/commandhandler.py: "telegram.ext" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py: "telegram" lines:[38] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py: "telegram._utils.defaultvalue" lines:[39] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py: "telegram._utils.logging" lines:[40] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py: "telegram._utils.repr" lines:[41] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py: "telegram._utils.types" lines:[42] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py: "telegram._utils.warnings" lines:[43] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py: "telegram.ext._application" lines:[44] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py: "telegram.ext._extbot" lines:[45] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py: "telegram.ext._handlers.basehandler" lines:[46] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py: "telegram.ext._handlers.callbackqueryhandler" lines:[47] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py: "telegram.ext._handlers.choseninlineresulthandler" lines:[48] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py: "telegram.ext._handlers.inlinequeryhandler" lines:[49] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py: "telegram.ext._handlers.stringcommandhandler" lines:[50] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py: "telegram.ext._handlers.stringregexhandler" lines:[51] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py: "telegram.ext._handlers.typehandler" lines:[52] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py: "telegram.ext._utils.trackingdict" lines:[53] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py: "telegram.ext._utils.types" lines:[54] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py: "telegram.ext" lines:[[57], [[314]]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/inlinequeryhandler.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/inlinequeryhandler.py: "telegram._utils.defaultvalue" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/inlinequeryhandler.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/inlinequeryhandler.py: "telegram.ext._handlers.basehandler" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/inlinequeryhandler.py: "telegram.ext._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/inlinequeryhandler.py: "telegram.ext" lines:[[30]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagehandler.py: "telegram" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagehandler.py: "telegram._utils.defaultvalue" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagehandler.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagehandler.py: "telegram.ext" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagehandler.py: "telegram.ext._handlers.basehandler" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagehandler.py: "telegram.ext._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagehandler.py: "telegram.ext" lines:[[30]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagereactionhandler.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagereactionhandler.py: "telegram._utils.defaultvalue" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagereactionhandler.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagereactionhandler.py: "telegram.ext._handlers.basehandler" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagereactionhandler.py: "telegram.ext._utils._update_parsing" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagereactionhandler.py: "telegram.ext._utils.types" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/pollanswerhandler.py: "telegram" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/pollanswerhandler.py: "telegram.ext._handlers.basehandler" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/pollanswerhandler.py: "telegram.ext._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/pollhandler.py: "telegram" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/pollhandler.py: "telegram.ext._handlers.basehandler" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/pollhandler.py: "telegram.ext._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/precheckoutqueryhandler.py: "telegram" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/precheckoutqueryhandler.py: "telegram._utils.defaultvalue" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/precheckoutqueryhandler.py: "telegram._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/precheckoutqueryhandler.py: "telegram.ext._handlers.basehandler" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/precheckoutqueryhandler.py: "telegram.ext._utils.types" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/prefixhandler.py: skipping "itertools" lines:[20] py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/prefixhandler.py: "telegram" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/prefixhandler.py: "telegram._utils.defaultvalue" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/prefixhandler.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/prefixhandler.py: "telegram.ext" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/prefixhandler.py: "telegram.ext._handlers.basehandler" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/prefixhandler.py: "telegram.ext._utils.types" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/prefixhandler.py: "telegram.ext" lines:[[31]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/shippingqueryhandler.py: "telegram" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/shippingqueryhandler.py: "telegram.ext._handlers.basehandler" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/shippingqueryhandler.py: "telegram.ext._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/stringcommandhandler.py: "telegram._utils.defaultvalue" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/stringcommandhandler.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/stringcommandhandler.py: "telegram.ext._handlers.basehandler" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/stringcommandhandler.py: "telegram.ext._utils.types" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/stringcommandhandler.py: "telegram.ext" lines:[[29]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/stringregexhandler.py: "telegram._utils.defaultvalue" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/stringregexhandler.py: "telegram._utils.types" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/stringregexhandler.py: "telegram.ext._handlers.basehandler" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/stringregexhandler.py: "telegram.ext._utils.types" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/stringregexhandler.py: "telegram.ext" lines:[[30]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/typehandler.py: "telegram._utils.defaultvalue" lines:[23] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/typehandler.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/typehandler.py: "telegram.ext._handlers.basehandler" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/typehandler.py: "telegram.ext._utils.types" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_jobqueue.py: "telegram._utils.repr" lines:[34] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_jobqueue.py: "telegram._utils.types" lines:[35] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_jobqueue.py: "telegram._utils.warnings" lines:[36] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_jobqueue.py: "telegram.ext._extbot" lines:[37] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_jobqueue.py: "telegram.ext._utils.types" lines:[38] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_jobqueue.py: "pytz" lines:[[26]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_jobqueue.py: "apscheduler.executors.asyncio" lines:[[27]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_jobqueue.py: "apscheduler.schedulers.asyncio" lines:[[28]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_jobqueue.py: "telegram.ext" lines:[[44]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_jobqueue.py: "apscheduler.job" lines:[[[42]]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_picklepersistence.py: "telegram" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_picklepersistence.py: "telegram._utils.types" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_picklepersistence.py: "telegram._utils.warnings" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_picklepersistence.py: "telegram.ext" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_picklepersistence.py: "telegram.ext._contexttypes" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_picklepersistence.py: "telegram.ext._utils.types" lines:[30] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_updater.py: "telegram._utils.defaultvalue" lines:[38] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_updater.py: "telegram._utils.logging" lines:[39] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_updater.py: "telegram._utils.repr" lines:[40] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_updater.py: "telegram._utils.types" lines:[41] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_updater.py: "telegram.error" lines:[42] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_updater.py: "telegram.ext._utils.webhookhandler" lines:[[45]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_updater.py: "telegram" lines:[[52]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/_update_parsing.py: "telegram._utils.types" lines:[30] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/stack.py: "telegram._utils.logging" lines:[32] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/trackingdict.py: "telegram._utils.defaultvalue" lines:[31] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/types.py: "typing" lines:[[42]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/types.py: "telegram" lines:[[44]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/types.py: "telegram.ext" lines:[[45]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/webhookhandler.py: "telegram" lines:[40] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/webhookhandler.py: "telegram._utils.logging" lines:[41] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/webhookhandler.py: "telegram.ext._extbot" lines:[42] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/webhookhandler.py: "tornado.netutil" lines:[[34]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/webhookhandler.py: "telegram" lines:[[45]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/filters.py: "telegram" lines:[121, 122, 130] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/filters.py: "telegram._utils.types" lines:[131] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/filters.py: "telegram.constants" lines:[132] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/filters.py: "telegram.ext._utils._update_parsing" lines:[133] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/filters.py: "telegram.ext._utils.types" lines:[134] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/helpers.py: "telegram._utils.types" lines:[38] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/helpers.py: "telegram.constants" lines:[39] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/helpers.py: "telegram" lines:[[42], [128]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/__init__.py: "telegram.request._baserequest" lines:[20] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/__init__.py: "telegram.request._httpxrequest" lines:[21] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/__init__.py: "telegram.request._requestdata" lines:[22] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_baserequest.py: "telegram._utils.defaultvalue" lines:[26, 27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_baserequest.py: "telegram._utils.logging" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_baserequest.py: "telegram._utils.types" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_baserequest.py: "telegram._utils.warnings" lines:[30] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_baserequest.py: "telegram._version" lines:[31] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_baserequest.py: "telegram.error" lines:[32] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_baserequest.py: "telegram.request._requestdata" lines:[42] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_baserequest.py: "telegram.warnings" lines:[43] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_baserequest.py: "telegram.request" lines:[[[307]]]: Ignore for REQ:slight py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_httpxrequest.py: "telegram._utils.defaultvalue" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_httpxrequest.py: "telegram._utils.logging" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_httpxrequest.py: "telegram._utils.types" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_httpxrequest.py: "telegram._utils.warnings" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_httpxrequest.py: "telegram.error" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_httpxrequest.py: "telegram.request._baserequest" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_httpxrequest.py: "telegram.request._requestdata" lines:[30] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_httpxrequest.py: "telegram.warnings" lines:[31] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_requestdata.py: "telegram._utils.types" lines:[24] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_requestdata.py: "telegram.request._requestparameter" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_requestparameter.py: "telegram._files.inputfile" lines:[25] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_requestparameter.py: "telegram._files.inputmedia" lines:[26] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_requestparameter.py: "telegram._files.inputsticker" lines:[27] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_requestparameter.py: "telegram._telegramobject" lines:[28] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_requestparameter.py: "telegram._utils.datetime" lines:[29] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_requestparameter.py: "telegram._utils.enum" lines:[30] is possibly a self-providing dependency, skip it py3req:/usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_requestparameter.py: "telegram._utils.types" lines:[31] is possibly a self-providing dependency, skip it shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/__init__.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_bot.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botcommand.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botcommandscope.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botdescription.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_botname.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_callbackquery.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chat.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatadministratorrights.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatboost.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatinvitelink.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatjoinrequest.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatlocation.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmember.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatmemberupdated.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_chatpermissions.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_choseninlineresult.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_dice.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/_basemedium.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/_basethumbedmedium.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/animation.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/audio.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/chatphoto.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/contact.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/document.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/file.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputfile.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputmedia.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/inputsticker.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/location.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/photosize.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/sticker.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/venue.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/video.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/videonote.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_files/voice.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_forcereply.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_forumtopic.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/callbackgame.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/game.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_games/gamehighscore.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_giveaway.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardbutton.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinekeyboardmarkup.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequery.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresult.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultarticle.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultaudio.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedaudio.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcacheddocument.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedgif.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedmpeg4gif.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedphoto.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedsticker.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvideo.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcachedvoice.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultcontact.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultdocument.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgame.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultgif.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultlocation.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultmpeg4gif.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultphoto.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultsbutton.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvenue.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvideo.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inlinequeryresultvoice.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputcontactmessagecontent.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputinvoicemessagecontent.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputlocationmessagecontent.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputmessagecontent.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputtextmessagecontent.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_inline/inputvenuemessagecontent.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbutton.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbuttonpolltype.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_keyboardbuttonrequest.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_linkpreviewoptions.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_loginurl.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_menubutton.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_message.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageautodeletetimerchanged.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageentity.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageid.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messageorigin.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_messagereactionupdated.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/credentials.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/data.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/encryptedpassportelement.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportdata.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportelementerrors.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_passport/passportfile.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/invoice.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/labeledprice.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/orderinfo.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/precheckoutquery.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingaddress.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingoption.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/shippingquery.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_payment/successfulpayment.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_poll.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_proximityalerttriggered.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reaction.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_reply.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_replykeyboardmarkup.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_replykeyboardremove.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_sentwebappmessage.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_shared.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_story.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_switchinlinequerychosenchat.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_telegramobject.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_update.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_user.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_userprofilephotos.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/argumentparsing.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/datetime.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/defaultvalue.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/enum.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/files.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/logging.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/markup.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/repr.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/strings.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/types.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/warnings.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_utils/warnings_transition.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_version.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_videochat.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webappdata.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webappinfo.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_webhookinfo.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/_writeaccessallowed.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/error.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/__init__.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_aioratelimiter.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_application.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_applicationbuilder.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_basepersistence.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_baseratelimiter.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_baseupdateprocessor.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackcontext.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_callbackdatacache.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_contexttypes.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_defaults.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_dictpersistence.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_extbot.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/basehandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/callbackqueryhandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatboosthandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatjoinrequesthandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/chatmemberhandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/choseninlineresulthandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/commandhandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/conversationhandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/inlinequeryhandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagehandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/messagereactionhandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/pollanswerhandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/pollhandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/precheckoutqueryhandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/prefixhandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/shippingqueryhandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/stringcommandhandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/stringregexhandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_handlers/typehandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_jobqueue.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_picklepersistence.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_updater.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/_update_parsing.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/stack.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/trackingdict.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/types.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/_utils/webhookhandler.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/ext/filters.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/helpers.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_baserequest.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_httpxrequest.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_requestdata.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/request/_requestparameter.py is not executable shebang.req.files: executable script /usr/src/tmp/python3-module-telegram-bot-buildroot/usr/lib/python3/site-packages/telegram/warnings.py is not executable Provides: python3(telegram), python3(telegram.__main__), python3(telegram._bot), python3(telegram._botcommand), python3(telegram._botcommandscope), python3(telegram._botdescription), python3(telegram._botname), python3(telegram._callbackquery), python3(telegram._chat), python3(telegram._chatadministratorrights), python3(telegram._chatboost), python3(telegram._chatinvitelink), python3(telegram._chatjoinrequest), python3(telegram._chatlocation), python3(telegram._chatmember), python3(telegram._chatmemberupdated), python3(telegram._chatpermissions), python3(telegram._choseninlineresult), python3(telegram._dice), python3(telegram._files), python3(telegram._files._basemedium), python3(telegram._files._basethumbedmedium), python3(telegram._files.animation), python3(telegram._files.audio), python3(telegram._files.chatphoto), python3(telegram._files.contact), python3(telegram._files.document), python3(telegram._files.file), python3(telegram._files.inputfile), python3(telegram._files.inputmedia), python3(telegram._files.inputsticker), python3(telegram._files.location), python3(telegram._files.photosize), python3(telegram._files.sticker), python3(telegram._files.venue), python3(telegram._files.video), python3(telegram._files.videonote), python3(telegram._files.voice), python3(telegram._forcereply), python3(telegram._forumtopic), python3(telegram._games), python3(telegram._games.callbackgame), python3(telegram._games.game), python3(telegram._games.gamehighscore), python3(telegram._giveaway), python3(telegram._inline), python3(telegram._inline.inlinekeyboardbutton), python3(telegram._inline.inlinekeyboardmarkup), python3(telegram._inline.inlinequery), python3(telegram._inline.inlinequeryresult), python3(telegram._inline.inlinequeryresultarticle), python3(telegram._inline.inlinequeryresultaudio), python3(telegram._inline.inlinequeryresultcachedaudio), python3(telegram._inline.inlinequeryresultcacheddocument), python3(telegram._inline.inlinequeryresultcachedgif), python3(telegram._inline.inlinequeryresultcachedmpeg4gif), python3(telegram._inline.inlinequeryresultcachedphoto), python3(telegram._inline.inlinequeryresultcachedsticker), python3(telegram._inline.inlinequeryresultcachedvideo), python3(telegram._inline.inlinequeryresultcachedvoice), python3(telegram._inline.inlinequeryresultcontact), python3(telegram._inline.inlinequeryresultdocument), python3(telegram._inline.inlinequeryresultgame), python3(telegram._inline.inlinequeryresultgif), python3(telegram._inline.inlinequeryresultlocation), python3(telegram._inline.inlinequeryresultmpeg4gif), python3(telegram._inline.inlinequeryresultphoto), python3(telegram._inline.inlinequeryresultsbutton), python3(telegram._inline.inlinequeryresultvenue), python3(telegram._inline.inlinequeryresultvideo), python3(telegram._inline.inlinequeryresultvoice), python3(telegram._inline.inputcontactmessagecontent), python3(telegram._inline.inputinvoicemessagecontent), python3(telegram._inline.inputlocationmessagecontent), python3(telegram._inline.inputmessagecontent), python3(telegram._inline.inputtextmessagecontent), python3(telegram._inline.inputvenuemessagecontent), python3(telegram._keyboardbutton), python3(telegram._keyboardbuttonpolltype), python3(telegram._keyboardbuttonrequest), python3(telegram._linkpreviewoptions), python3(telegram._loginurl), python3(telegram._menubutton), python3(telegram._message), python3(telegram._messageautodeletetimerchanged), python3(telegram._messageentity), python3(telegram._messageid), python3(telegram._messageorigin), python3(telegram._messagereactionupdated), python3(telegram._passport), python3(telegram._passport.credentials), python3(telegram._passport.data), python3(telegram._passport.encryptedpassportelement), python3(telegram._passport.passportdata), python3(telegram._passport.passportelementerrors), python3(telegram._passport.passportfile), python3(telegram._payment), python3(telegram._payment.invoice), python3(telegram._payment.labeledprice), python3(telegram._payment.orderinfo), python3(telegram._payment.precheckoutquery), python3(telegram._payment.shippingaddress), python3(telegram._payment.shippingoption), python3(telegram._payment.shippingquery), python3(telegram._payment.successfulpayment), python3(telegram._poll), python3(telegram._proximityalerttriggered), python3(telegram._reaction), python3(telegram._reply), python3(telegram._replykeyboardmarkup), python3(telegram._replykeyboardremove), python3(telegram._sentwebappmessage), python3(telegram._shared), python3(telegram._story), python3(telegram._switchinlinequerychosenchat), python3(telegram._telegramobject), python3(telegram._update), python3(telegram._user), python3(telegram._userprofilephotos), python3(telegram._utils), python3(telegram._utils.argumentparsing), python3(telegram._utils.datetime), python3(telegram._utils.defaultvalue), python3(telegram._utils.enum), python3(telegram._utils.files), python3(telegram._utils.logging), python3(telegram._utils.markup), python3(telegram._utils.repr), python3(telegram._utils.strings), python3(telegram._utils.types), python3(telegram._utils.warnings), python3(telegram._utils.warnings_transition), python3(telegram._version), python3(telegram._videochat), python3(telegram._webappdata), python3(telegram._webappinfo), python3(telegram._webhookinfo), python3(telegram._writeaccessallowed), python3(telegram.constants), python3(telegram.error), python3(telegram.ext), python3(telegram.ext._aioratelimiter), python3(telegram.ext._application), python3(telegram.ext._applicationbuilder), python3(telegram.ext._basepersistence), python3(telegram.ext._baseratelimiter), python3(telegram.ext._baseupdateprocessor), python3(telegram.ext._callbackcontext), python3(telegram.ext._callbackdatacache), python3(telegram.ext._contexttypes), python3(telegram.ext._defaults), python3(telegram.ext._dictpersistence), python3(telegram.ext._extbot), python3(telegram.ext._handlers), python3(telegram.ext._handlers.basehandler), python3(telegram.ext._handlers.callbackqueryhandler), python3(telegram.ext._handlers.chatboosthandler), python3(telegram.ext._handlers.chatjoinrequesthandler), python3(telegram.ext._handlers.chatmemberhandler), python3(telegram.ext._handlers.choseninlineresulthandler), python3(telegram.ext._handlers.commandhandler), python3(telegram.ext._handlers.conversationhandler), python3(telegram.ext._handlers.inlinequeryhandler), python3(telegram.ext._handlers.messagehandler), python3(telegram.ext._handlers.messagereactionhandler), python3(telegram.ext._handlers.pollanswerhandler), python3(telegram.ext._handlers.pollhandler), python3(telegram.ext._handlers.precheckoutqueryhandler), python3(telegram.ext._handlers.prefixhandler), python3(telegram.ext._handlers.shippingqueryhandler), python3(telegram.ext._handlers.stringcommandhandler), python3(telegram.ext._handlers.stringregexhandler), python3(telegram.ext._handlers.typehandler), python3(telegram.ext._jobqueue), python3(telegram.ext._picklepersistence), python3(telegram.ext._updater), python3(telegram.ext._utils), python3(telegram.ext._utils._update_parsing), python3(telegram.ext._utils.stack), python3(telegram.ext._utils.trackingdict), python3(telegram.ext._utils.types), python3(telegram.ext._utils.webhookhandler), python3(telegram.ext.filters), python3(telegram.helpers), python3(telegram.request), python3(telegram.request._baserequest), python3(telegram.request._httpxrequest), python3(telegram.request._requestdata), python3(telegram.request._requestparameter), python3(telegram.warnings) Requires: /usr/lib/python3/site-packages, python3(abc) < 0, python3(asyncio) < 0, python3(base64) < 0, python3(collections) < 0, python3(collections.abc) < 0, python3(contextlib) < 0, python3(copy) < 0, python3(dataclasses) < 0, python3(datetime) < 0, python3(enum) < 0, python3(functools) < 0, python3(html) < 0, python3(http) < 0, python3(httpx) < 0, python3(inspect) < 0, python3(json) < 0, python3(logging) < 0, python3(mimetypes) < 0, python3(pathlib) < 0, python3(pickle) < 0, python3(platform) < 0, python3(re) < 0, python3(shutil) < 0, python3(signal) < 0, python3(ssl) < 0, python3(subprocess) < 0, python3(tornado.httpserver) < 0, python3(tornado.web) < 0, python3(types) < 0, python3(typing) < 0, python3(urllib.parse) < 0, python3(uuid) < 0, python3(warnings) < 0, python3(weakref) < 0 Wrote: /usr/src/RPM/RPMS/noarch/python3-module-telegram-bot-21.0.1-alt1.noarch.rpm (w2.lzdio) 372.99user 13.20system 0:36.38elapsed 1061%CPU (0avgtext+0avgdata 106620maxresident)k 0inputs+0outputs (0major+1054566minor)pagefaults 0swaps 5.56user 3.18system 0:53.75elapsed 16%CPU (0avgtext+0avgdata 127796maxresident)k 3984inputs+0outputs (0major+273558minor)pagefaults 0swaps