-
Notifications
You must be signed in to change notification settings - Fork 76
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
Permission denied & CLI Process died while starting Pytg #110
Comments
Please turn on verbose logging: |
@luckydonald I have fixed by doing this: tg = Telegram(telegram="/home/marcobuster/tg-cli/tg/bin/telegram-cli", pubkey_file="/home/marcobuster/tg-cli/tg/tg-server.pub") But now I have this problem: INFO:pytg:Starting Telegram Executable: "/home/marcobuster/tg-cli/tg/bin/telegram-cli -R -W -P 4458 -k /home/marcobuster/tg-cli/tg/tg-server.pub --json --permanent-peer-ids --permanent-peer-ids"
DEBUG:pytg.sender:Parsing raw: Argument help - <command> (needed)
DEBUG:pytg.sender:Sending command >[disable_preview] help
<
INFO:pytg:CLI did not responde.
DEBUG:pytg.sender:Parsing raw: Argument help - <command> (needed)
DEBUG:pytg.sender:Sending command >[disable_preview] help
<
INFO:pytg:CLI did not responde.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/pytg/__init__.py", line 52, in __init__
raise AssertionError("CLI Process died.")
AssertionError: CLI Process died. |
This usually means the CLI terminated. It shouldn't have done that. |
You can also look for the telegram progress in tools like In your case that would be home/marcobuster/tg-cli/tg/bin/telegram-cli -R -W -P 4458 -k /home/marcobuster/tg-cli/tg/tg-server.pub --json --permanent-peer-ids --permanent-peer-ids See if that works. |
The problem
All folders of tg-cli are chmod-ed with 777 permission and the file is runned by sudo.
EDIT: Fixed by doing
tg = Telegram(telegram="/home/marcobuster/tg-cli/tg/bin/telegram-cli", pubkey_file="/home/marcobuster/tg-cli/tg/tg-server.pub")
Now I have this problem:
Your environment
I'm using Python 3.5.2 on Linux Ubuntu 16.04.
Steps to reproduce
Import pytg
Inizialize a Telegram object
The text was updated successfully, but these errors were encountered: