Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1054663: telegram-send: Fails to run

186 views
Skip to first unread message

Samuel Thibault

unread,
Oct 27, 2023, 12:00:06 PM10/27/23
to
Package: telegram-send
Version: 0.37-1
Severity: serious
Justification: Fails to run

Hello,

Using testing as of now:

$ /usr/bin/telegram-send
/usr/lib/python3/dist-packages/telegram/utils/request.py:49: UserWarning: python-telegram-bot is using upstream urllib3. This is allowed but not supported by python-telegram-bot maintainers.
warnings.warn(
Traceback (most recent call last):
File "/usr/bin/telegram-send", line 33, in <module>
sys.exit(load_entry_point('telegram-send==0.37', 'console_scripts', 'telegram-send')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/telegram-send", line 25, in importlib_load_entry_point
return next(matches).load()
^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3/dist-packages/telegram_send/__init__.py", line 2, in <module>
from .telegram_send import configure, send
File "/usr/lib/python3/dist-packages/telegram_send/telegram_send.py", line 34, in <module>
from telegram.constants import MessageLimit
ImportError: cannot import name 'MessageLimit' from 'telegram.constants' (/usr/lib/python3/dist-packages/telegram/constants.py)


Samuel

-- System Information:
Debian Release: trixie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'oldstable-proposed-updates-debug'), (500, 'oldstable-proposed-updates'), (500, 'oldoldstable-proposed-updates'), (500, 'oldoldstable'), (500, 'buildd-unstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, arm64

Kernel: Linux 6.5.0-1-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages telegram-send depends on:
ii python3 3.11.4-5+b1
ii python3-appdirs 1.4.4-4
ii python3-colorama 0.4.6-4
ii python3-python-telegram-bot 13.15-1

telegram-send recommends no packages.

telegram-send suggests no packages.

-- no debconf information

--
Samuel
---
Pour une évaluation indépendante, transparente et rigoureuse !
Je soutiens la Commission d'Évaluation de l'Inria.

Dale Richards

unread,
Nov 17, 2023, 2:40:06 AM11/17/23
to
> Versions of packages telegram-send depends on:
> ii python3-python-telegram-bot 13.15-1

Here's the problem. The packaged version of telegram-send depends on changes to telegram/constants.py that were introduced in python-telegram-bot 14.0:
https://github.com/python-telegram-bot/python-telegram-bot/pull/2708

Currently python-telegram-bot 13.15 is packaged in sid, so we need to update this (and the depends of telegram-send) to fix this bug.

Best regards,
Dale Richards

Dale Richards

unread,
Nov 17, 2023, 8:30:05 AM11/17/23
to
I've filed a request for python3-python-telegram-bot to update to the latest upstream:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1054663

If that request is actioned, this bug could be closed by updating its dependencies to point to the newer version. Otherwise, we may need to revert telegram-send to a version that works with the older python-telegram-bot.

Best regards,
Dale Richards
0 new messages