vtr0n / TelegramTUI

Telegram client on your terminal
MIT License
817 stars 70 forks source link

Crashes on startup, telegramApi.py line 46 #23

Open CraigBlaylock opened 6 years ago

CraigBlaylock commented 6 years ago

root@Bubo:~/TelegramTUI# ./telegramTUI
Traceback (most recent call last):
File "./telegramTUI", line 2, in
from src.ui import App
File "/root/TelegramTUI/src/ui.py", line 2, in
from src.MainForm import MainForm
File "/root/TelegramTUI/src/MainForm.py", line 4, in
from src.telegramApi import client
File "/root/TelegramTUI/src/telegramApi.py", line 200, in
client = TelegramApi()
File "/root/TelegramTUI/src/telegramApi.py", line 46, in init
spawn_read_thread=True, proxy=proxy)
TypeError: init() got an unexpected keyword argument 'spawn_read_thread'
root@Bubo:~/TelegramTUI# sudo ./telegramTUI
Traceback (most recent call last):
File "./telegramTUI", line 2, in
from src.ui import App
File "/root/TelegramTUI/src/ui.py", line 2, in
from src.MainForm import MainForm
File "/root/TelegramTUI/src/MainForm.py", line 4, in
from src.telegramApi import client
File "/root/TelegramTUI/src/telegramApi.py", line 200, in
client = TelegramApi()
File "/root/TelegramTUI/src/telegramApi.py", line 46, in init
spawn_read_thread=True, proxy=proxy)
TypeError: init() got an unexpected keyword argument 'update_workers'

Let me know if there's anything I can provide to assist in troubleshooting.

and-semakin commented 6 years ago

The same trouble for me. default

Python version: 3.6.5

and-semakin commented 6 years ago

It seems to happen because of telethon update: https://github.com/LonamiWebs/Telethon/issues/822

and-semakin commented 6 years ago

omg TelegramTUI is completely broken with latest Telethon. They are using async features now.

and-semakin commented 6 years ago

pip install telethon==0.19.1.6

Working solution.

vtr0n commented 6 years ago

Thanks for reporting, I will refactor the code in the near future.