Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

/reset command not working #112

Open
Eikosa opened this issue Sep 11, 2023 · 2 comments
Open

/reset command not working #112

Eikosa opened this issue Sep 11, 2023 · 2 comments

Comments

@Eikosa
Copy link
Contributor

Eikosa commented Sep 11, 2023

The problem

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/telegram/ext/_application.py", line 1173, in process_update
    await coroutine
  File "/usr/local/lib/python3.10/dist-packages/telegram/ext/_basehandler.py", line 141, in handle_update
    return await self.callback(update, context)
  File "/root/EdgeGPT-Telegram-Bot/src/cmds.py", line 253, in reset_bot
    os.execv(sys.argv[0], sys.argv)
PermissionError: [Errno 13] Permission denied

Version of python

.

Version of EdgeGPT-Telegram-Bot

.

Operating system running EdgeGPT-Telegram-Bot

.

Running on your machine? Running on docker?

.

Logs & file uploads

.

@scmanjarrez
Copy link
Owner

you need to give execution permissions to src/edge.py

$ chmod +x src/edge.py

@scmanjarrez
Copy link
Owner

I'll keep it open until I add a try-except to explain this

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

No branches or pull requests

2 participants