TelegramTUI icon indicating copy to clipboard operation
TelegramTUI copied to clipboard

Crashes on startup, telegramApi.py line 46

Open CraigBlaylock opened this issue 5 years ago • 5 comments

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.

CraigBlaylock avatar Jul 20 '18 18:07 CraigBlaylock

The same trouble for me. default

Python version: 3.6.5

and-semakin avatar Jul 21 '18 10:07 and-semakin

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

and-semakin avatar Jul 21 '18 10:07 and-semakin

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

and-semakin avatar Jul 21 '18 10:07 and-semakin

pip install telethon==0.19.1.6

Working solution.

and-semakin avatar Jul 21 '18 10:07 and-semakin

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

vtr0n avatar Jul 25 '18 19:07 vtr0n