Closed mdenushev closed 6 years ago
You should not mix threads with asyncio
(which is what the telethon
PyPi package uses). The telethon
and telethon-sync
package are not compatible, install only one. If you don't know what you're doing uninstall telethon
and install telethon-sync
.
Okay, i'm uninstalled telethon main lib
Traceback (most recent call last):
File "C:\Users\Администратор.WIN-H2O5EF29JET\Desktop\11\main.py", line 1, in <module>
from telethon import TelegramClient
ImportError: cannot import name 'TelegramClient'
What version do you have installed now? What does this show?
import telethon
print(telethon.__version__)
print(dir(telethon))
>>> import telethon
>>> print(dir(telethon))
['__doc__', '__loader__', '__name__', '__package__', '__path__', '__spec__']
>>> print(telethon.__version__)
Traceback (most recent call last):
File "<pyshell#5>", line 1, in <module>
print(telethon.__version__)
AttributeError: module 'telethon' has no attribute '__version__'
>>>
i reinstalled telethon-sync
and it's working now
telethon-sync
is not supported anymore https://github.com/LonamiWebs/Telethon/issues/1180
Hi, there. I upgraded my telethon version to 1.1.1 (telethon-sync == 1.0.4). It was working tommorow perfectly, but today i have this..
but i import telethon.sync