Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytg.exceptions.ConnectionError: Remote end closed #48

Open
matheusfillipe opened this issue May 19, 2020 · 5 comments
Open

pytg.exceptions.ConnectionError: Remote end closed #48

matheusfillipe opened this issue May 19, 2020 · 5 comments

Comments

@matheusfillipe
Copy link

matheusfillipe commented May 19, 2020

When trying to open nctelegram on arch:

Exception in thread Receiver (pytg):
Traceback (most recent call last):
Traceback (most recent call last):
  File "/usr/bin/nctelegram", line 93, in <module>
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    ncTelegram.Telegram_ui(config_full)
  File "/usr/lib/python3.8/site-packages/ncTelegram/__init__.py", line 73, in __init__
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self.msg_widget = MessageWidget(self)
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.8/site-packages/ncTelegram/ui_msgwidget.py", line 25, in __init__
  File "/usr/lib/python3.8/site-packages/pytg/receiver.py", line 125, in _receiver
    raise ConnectionError("Remote end closed.")
    self.get_history()
pytg.exceptions.ConnectionError: Remote end closed.
  File "/usr/lib/python3.8/site-packages/ncTelegram/ui_msgwidget.py", line 60, in get_history
    self.print_msg(msg)
  File "/usr/lib/python3.8/site-packages/ncTelegram/ui_msgwidget.py", line 141, in print_msg
    msg_reply = self.Telegram_ui.sender.message_get(msg['reply_id'])
  File "/usr/lib/python3.8/site-packages/pytg/sender.py", line 630, in command_alias
    return self.execute_function(command_name, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/pytg/sender.py", line 320, in execute_function
    result = self._do_send(request, answer_timeout=self.default_answer_timeout, retry_connect=retry_connect)
  File "/usr/lib/python3.8/site-packages/pytg/sender.py", line 507, in _do_send
    raise ConnectionError("Remote end closed")
pytg.exceptions.ConnectionError: Remote end closed

@privacy313
Copy link

privacy313 commented Aug 18, 2020

I'm getting the same error on startup. also on arch.
It was working fine yesterday.

Traceback (most recent call last):
File "/usr/bin/nctelegram", line 93, in
Exception in thread Receiver (pytg):
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
ncTelegram.Telegram_ui(config_full)
File "/usr/lib/python3.8/threading.py", line 870, in run
File "/usr/lib/python3.8/site-packages/ncTelegram/init.py", line 73, in init
self._target(*self._args, **self._kwargs)
self.msg_widget = MessageWidget(self)
File "/home/privacy313/.local/lib/python3.8/site-packages/pytg/receiver.py", line 125, in _receiver
File "/usr/lib/python3.8/site-packages/ncTelegram/ui_msgwidget.py", line 25, in init
raise ConnectionError("Remote end closed.")
pytg.exceptions.ConnectionError: Remote end closed.
self.get_history()
File "/usr/lib/python3.8/site-packages/ncTelegram/ui_msgwidget.py", line 60, in get_history
self.print_msg(msg)
File "/usr/lib/python3.8/site-packages/ncTelegram/ui_msgwidget.py", line 141, in print_msg
msg_reply = self.Telegram_ui.sender.message_get(msg['reply_id'])
File "/home/privacy313/.local/lib/python3.8/site-packages/pytg/sender.py", line 630, in command_alias
return self.execute_function(command_name, *args, **kwargs)
File "/home/privacy313/.local/lib/python3.8/site-packages/pytg/sender.py", line 320, in execute_function
result = self._do_send(request, answer_timeout=self.default_answer_timeout, retry_connect=retry_connect)
File "/home/privacy313/.local/lib/python3.8/site-packages/pytg/sender.py", line 507, in _do_send
raise ConnectionError("Remote end closed")
pytg.exceptions.ConnectionError: Remote end closed

@mariorossi77
Copy link

mariorossi77 commented Aug 31, 2020

same exception on arch, telegram-cli is set up correctly and not running.

@diego-rapoport
Copy link

Same problem and also arch.

@matheusfillipe
Copy link
Author

This project is long unmaintained, I don't know if any fork continued it but I found this nice alternative with vi like bindings: https://github.com/paul-nameless/tg

@Nanoseb
Copy link
Owner

Nanoseb commented Dec 14, 2020

Hi all,
Very sorry for not maintaining this project anymore. As @matheusfillipe mentioned there are some alternatives nowadays and https://github.com/paul-nameless/tg seems like the closest one to what ncTelegram is. So feel free to give that project a shot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants