Package: src:python-telethon
Version: 1.41.1-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202512/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:python-telethon, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   debian/rules execute_before_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
/usr/bin/make -C readthedocs/ html
make[2]: Entering directory '/<<PKGBUILDDIR>>/readthedocs'
Running Sphinx v8.2.3

[... snipped ...]

copying build/lib/telethon/custom.py -> 
build/bdist.linux-x86_64/wheel/./telethon
creating build/bdist.linux-x86_64/wheel/telethon/sessions
copying build/lib/telethon/sessions/sqlite.py -> 
build/bdist.linux-x86_64/wheel/./telethon/sessions
copying build/lib/telethon/sessions/string.py -> 
build/bdist.linux-x86_64/wheel/./telethon/sessions
copying build/lib/telethon/sessions/__init__.py -> 
build/bdist.linux-x86_64/wheel/./telethon/sessions
copying build/lib/telethon/sessions/abstract.py -> 
build/bdist.linux-x86_64/wheel/./telethon/sessions
copying build/lib/telethon/sessions/memory.py -> 
build/bdist.linux-x86_64/wheel/./telethon/sessions
copying build/lib/telethon/helpers.py -> 
build/bdist.linux-x86_64/wheel/./telethon
copying build/lib/telethon/__init__.py -> 
build/bdist.linux-x86_64/wheel/./telethon
running install_egg_info
running egg_info
writing Telethon.egg-info/PKG-INFO
writing dependency_links to Telethon.egg-info/dependency_links.txt
writing requirements to Telethon.egg-info/requires.txt
writing top-level names to Telethon.egg-info/top_level.txt
reading manifest file 'Telethon.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'Telethon.egg-info/SOURCES.txt'
Copying Telethon.egg-info to 
build/bdist.linux-x86_64/wheel/./Telethon-1.41.1.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/telethon-1.41.1.dist-info/WHEEL
creating 
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/.tmp-1eciidjj/telethon-1.41.1-py3-none-any.whl'
 and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'telethon/__init__.py'
adding 'telethon/custom.py'
adding 'telethon/functions.py'
adding 'telethon/helpers.py'
adding 'telethon/hints.py'
adding 'telethon/password.py'
adding 'telethon/requestiter.py'
adding 'telethon/sync.py'
adding 'telethon/types.py'
adding 'telethon/utils.py'
adding 'telethon/version.py'
adding 'telethon/_updates/__init__.py'
adding 'telethon/_updates/entitycache.py'
adding 'telethon/_updates/messagebox.py'
adding 'telethon/_updates/session.py'
adding 'telethon/client/__init__.py'
adding 'telethon/client/account.py'
adding 'telethon/client/auth.py'
adding 'telethon/client/bots.py'
adding 'telethon/client/buttons.py'
adding 'telethon/client/chats.py'
adding 'telethon/client/dialogs.py'
adding 'telethon/client/downloads.py'
adding 'telethon/client/messageparse.py'
adding 'telethon/client/messages.py'
adding 'telethon/client/telegrambaseclient.py'
adding 'telethon/client/telegramclient.py'
adding 'telethon/client/updates.py'
adding 'telethon/client/uploads.py'
adding 'telethon/client/users.py'
adding 'telethon/crypto/__init__.py'
adding 'telethon/crypto/aes.py'
adding 'telethon/crypto/aesctr.py'
adding 'telethon/crypto/authkey.py'
adding 'telethon/crypto/cdndecrypter.py'
adding 'telethon/crypto/factorization.py'
adding 'telethon/crypto/libssl.py'
adding 'telethon/crypto/rsa.py'
adding 'telethon/errors/__init__.py'
adding 'telethon/errors/common.py'
adding 'telethon/errors/rpcbaseerrors.py'
adding 'telethon/errors/rpcerrorlist.py'
adding 'telethon/events/__init__.py'
adding 'telethon/events/album.py'
adding 'telethon/events/callbackquery.py'
adding 'telethon/events/chataction.py'
adding 'telethon/events/common.py'
adding 'telethon/events/inlinequery.py'
adding 'telethon/events/messagedeleted.py'
adding 'telethon/events/messageedited.py'
adding 'telethon/events/messageread.py'
adding 'telethon/events/newmessage.py'
adding 'telethon/events/raw.py'
adding 'telethon/events/userupdate.py'
adding 'telethon/extensions/__init__.py'
adding 'telethon/extensions/binaryreader.py'
adding 'telethon/extensions/html.py'
adding 'telethon/extensions/markdown.py'
adding 'telethon/extensions/messagepacker.py'
adding 'telethon/network/__init__.py'
adding 'telethon/network/authenticator.py'
adding 'telethon/network/mtprotoplainsender.py'
adding 'telethon/network/mtprotosender.py'
adding 'telethon/network/mtprotostate.py'
adding 'telethon/network/requeststate.py'
adding 'telethon/network/connection/__init__.py'
adding 'telethon/network/connection/connection.py'
adding 'telethon/network/connection/http.py'
adding 'telethon/network/connection/tcpabridged.py'
adding 'telethon/network/connection/tcpfull.py'
adding 'telethon/network/connection/tcpintermediate.py'
adding 'telethon/network/connection/tcpmtproxy.py'
adding 'telethon/network/connection/tcpobfuscated.py'
adding 'telethon/sessions/__init__.py'
adding 'telethon/sessions/abstract.py'
adding 'telethon/sessions/memory.py'
adding 'telethon/sessions/sqlite.py'
adding 'telethon/sessions/string.py'
adding 'telethon/tl/__init__.py'
adding 'telethon/tl/alltlobjects.py'
adding 'telethon/tl/tlobject.py'
adding 'telethon/tl/core/__init__.py'
adding 'telethon/tl/core/gzippacked.py'
adding 'telethon/tl/core/messagecontainer.py'
adding 'telethon/tl/core/rpcresult.py'
adding 'telethon/tl/core/tlmessage.py'
adding 'telethon/tl/custom/__init__.py'
adding 'telethon/tl/custom/adminlogevent.py'
adding 'telethon/tl/custom/button.py'
adding 'telethon/tl/custom/chatgetter.py'
adding 'telethon/tl/custom/conversation.py'
adding 'telethon/tl/custom/dialog.py'
adding 'telethon/tl/custom/draft.py'
adding 'telethon/tl/custom/file.py'
adding 'telethon/tl/custom/forward.py'
adding 'telethon/tl/custom/inlinebuilder.py'
adding 'telethon/tl/custom/inlineresult.py'
adding 'telethon/tl/custom/inlineresults.py'
adding 'telethon/tl/custom/inputsizedfile.py'
adding 'telethon/tl/custom/message.py'
adding 'telethon/tl/custom/messagebutton.py'
adding 'telethon/tl/custom/participantpermissions.py'
adding 'telethon/tl/custom/qrlogin.py'
adding 'telethon/tl/custom/sendergetter.py'
adding 'telethon/tl/functions/__init__.py'
adding 'telethon/tl/functions/account.py'
adding 'telethon/tl/functions/auth.py'
adding 'telethon/tl/functions/bots.py'
adding 'telethon/tl/functions/channels.py'
adding 'telethon/tl/functions/chatlists.py'
adding 'telethon/tl/functions/contacts.py'
adding 'telethon/tl/functions/folders.py'
adding 'telethon/tl/functions/fragment.py'
adding 'telethon/tl/functions/help.py'
adding 'telethon/tl/functions/langpack.py'
adding 'telethon/tl/functions/messages.py'
adding 'telethon/tl/functions/payments.py'
adding 'telethon/tl/functions/phone.py'
adding 'telethon/tl/functions/photos.py'
adding 'telethon/tl/functions/premium.py'
adding 'telethon/tl/functions/smsjobs.py'
adding 'telethon/tl/functions/stats.py'
adding 'telethon/tl/functions/stickers.py'
adding 'telethon/tl/functions/stories.py'
adding 'telethon/tl/functions/updates.py'
adding 'telethon/tl/functions/upload.py'
adding 'telethon/tl/functions/users.py'
adding 'telethon/tl/patched/__init__.py'
adding 'telethon/tl/types/__init__.py'
adding 'telethon/tl/types/account.py'
adding 'telethon/tl/types/auth.py'
adding 'telethon/tl/types/bots.py'
adding 'telethon/tl/types/channels.py'
adding 'telethon/tl/types/chatlists.py'
adding 'telethon/tl/types/contacts.py'
adding 'telethon/tl/types/fragment.py'
adding 'telethon/tl/types/help.py'
adding 'telethon/tl/types/messages.py'
adding 'telethon/tl/types/payments.py'
adding 'telethon/tl/types/phone.py'
adding 'telethon/tl/types/photos.py'
adding 'telethon/tl/types/premium.py'
adding 'telethon/tl/types/smsjobs.py'
adding 'telethon/tl/types/stats.py'
adding 'telethon/tl/types/stickers.py'
adding 'telethon/tl/types/storage.py'
adding 'telethon/tl/types/stories.py'
adding 'telethon/tl/types/updates.py'
adding 'telethon/tl/types/upload.py'
adding 'telethon/tl/types/users.py'
adding 'telethon-1.41.1.dist-info/licenses/LICENSE'
adding 'telethon-1.41.1.dist-info/METADATA'
adding 'telethon-1.41.1.dist-info/WHEEL'
adding 'telethon-1.41.1.dist-info/top_level.txt'
adding 'telethon-1.41.1.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built telethon-1.41.1-py3-none-any.whl
I: pybuild plugin_pyproject:155: Unpacking wheel built for python3.13 with 
"installer" module
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build; 
python3.14 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build
configfile: pyproject.toml
plugins: cov-5.0.0, asyncio-1.2.0, typeguard-4.4.4
asyncio: mode=Mode.STRICT, debug=False, 
asyncio_default_fixture_loop_scope=None, 
asyncio_default_test_loop_scope=function
collected 35 items

tests/readthedocs/quick_references/test_client_reference.py .            [  2%]
tests/telethon/client/test_messages.py ...                               [ 11%]
tests/telethon/crypto/test_rsa.py ....                                   [ 22%]
tests/telethon/events/test_chataction.py ....                            [ 34%]
tests/telethon/extensions/test_html.py ......                            [ 51%]
tests/telethon/extensions/test_markdown.py ......                        [ 68%]
tests/telethon/test_helpers.py .F..                                      [ 80%]
tests/telethon/test_pickle.py ....                                       [ 91%]
tests/telethon/test_utils.py ..                                          [ 97%]
tests/telethon/tl/test_serialization.py .                                [100%]

=================================== FAILURES ===================================
__________________ TestSyncifyAsyncContext.test_sync_acontext __________________

    def get_running_loop():
        if sys.version_info >= (3, 7):
            try:
>               return asyncio.get_running_loop()
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
E               RuntimeError: no running event loop

telethon/helpers.py:430: RuntimeError

During handling of the above exception, another exception occurred:

self = <tests.telethon.test_helpers.TestSyncifyAsyncContext object at 
0x7ffbb5034cd0>

    def test_sync_acontext(self):
>       contm = self.NoopContextManager()
                ^^^^^^^^^^^^^^^^^^^^^^^^^

tests/telethon/test_helpers.py:58: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/telethon/test_helpers.py:44: in __init__
    self.loop = helpers.get_running_loop()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
telethon/helpers.py:432: in get_running_loop
    return asyncio.get_event_loop_policy().get_event_loop()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <asyncio.unix_events._UnixDefaultEventLoopPolicy object at 
0x7ffbb4fe2f90>

    def get_event_loop(self):
        """Get the event loop for the current context.
    
        Returns an instance of EventLoop or raises an exception.
        """
        if self._local._loop is None:
>           raise RuntimeError('There is no current event loop in thread %r.'
                               % threading.current_thread().name)
E           RuntimeError: There is no current event loop in thread 'MainThread'.

/usr/lib/python3.14/asyncio/events.py:715: RuntimeError
=============================== warnings summary ===============================
tests/telethon/test_helpers.py::TestSyncifyAsyncContext::test_sync_acontext
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/telethon/helpers.py:432: 
DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated 
for removal in Python 3.16
    return asyncio.get_event_loop_policy().get_event_loop()

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED 
tests/telethon/test_helpers.py::TestSyncifyAsyncContext::test_sync_acontext
=================== 1 failed, 34 passed, 1 warning in 0.83s ====================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build; python3.14 -m pytest tests
I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; 
python3.13 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build
configfile: pyproject.toml
plugins: cov-5.0.0, asyncio-1.2.0, typeguard-4.4.4
asyncio: mode=Mode.STRICT, debug=False, 
asyncio_default_fixture_loop_scope=None, 
asyncio_default_test_loop_scope=function
collected 35 items

tests/readthedocs/quick_references/test_client_reference.py .            [  2%]
tests/telethon/client/test_messages.py ...                               [ 11%]
tests/telethon/crypto/test_rsa.py ....                                   [ 22%]
tests/telethon/events/test_chataction.py ....                            [ 34%]
tests/telethon/extensions/test_html.py ......                            [ 51%]
tests/telethon/extensions/test_markdown.py ......                        [ 68%]
tests/telethon/test_helpers.py ....                                      [ 80%]
tests/telethon/test_pickle.py ....                                       [ 91%]
tests/telethon/test_utils.py ..                                          [ 97%]
tests/telethon/tl/test_serialization.py .                                [100%]

============================== 35 passed in 0.78s ==============================
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 
3.13" returned exit code 13
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

Reply via email to