[Python] Error importing the "opentele" library python

Discussão em 'Python' iniciado por Stack, Junho 5, 2025.

  1. Stack

    Stack Membro Participativo

    the file contains only one line: import opentele At the same time, it returns an error with the following content:

    [__firstlineno__] 140714359530632 - 140714359532456
    Traceback (most recent call last):
    File "C:\Users\User\Desktop\TelegramExtractor-main\test.py", line 1, in <module>
    import opentele
    File "C:\Users\User\Desktop\TelegramExtractor-main\telegram\Lib\site-packages\opentele\__init__.py", line 1, in <module>
    from . import td
    File "C:\Users\User\Desktop\TelegramExtractor-main\telegram\Lib\site-packages\opentele\td\__init__.py", line 2, in <module>
    from .shared import *
    File "C:\Users\User\Desktop\TelegramExtractor-main\telegram\Lib\site-packages\opentele\td\shared.py", line 4, in <module>
    from .account import Account, StorageAccount, MapData
    File "C:\Users\User\Desktop\TelegramExtractor-main\telegram\Lib\site-packages\opentele\td\account.py", line 3, in <module>
    from .configs import *
    File "C:\Users\User\Desktop\TelegramExtractor-main\telegram\Lib\site-packages\opentele\td\configs.py", line 8, in <module>
    from .. import tl
    File "C:\Users\User\Desktop\TelegramExtractor-main\telegram\Lib\site-packages\opentele\tl\__init__.py", line 1, in <module>
    from .shared import *
    File "C:\Users\User\Desktop\TelegramExtractor-main\telegram\Lib\site-packages\opentele\tl\shared.py", line 1, in <module>
    from .telethon import TelegramClient
    File "C:\Users\User\Desktop\TelegramExtractor-main\telegram\Lib\site-packages\opentele\tl\telethon.py", line 65, in <module>
    @extend_class
    ^^^^^^^^^^^^
    File "C:\Users\User\Desktop\TelegramExtractor-main\telegram\Lib\site-packages\opentele\utils.py", line 121, in __new__
    raise BaseException("err")
    BaseException: err


    I reinstalled the library and installed the virtual environment, but the error persists. I'm using the latest version of the library.

    Continue reading...

Compartilhe esta Página