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

cd command is not executing without sudo #529

Open
rvnikita opened this issue Apr 2, 2024 · 1 comment
Open

cd command is not executing without sudo #529

rvnikita opened this issue Apr 2, 2024 · 1 comment

Comments

@rvnikita
Copy link

rvnikita commented Apr 2, 2024

I attempted to navigate to the tg_community_manager directory using the following shell command:

sgpt -s "go to tg_community_manager"

This command resulted in a prompt:

cd tg_community_manager
[E]xecute, [D]escribe, [A]bort: e

After selecting 'E' to execute, nothing happened.

I was able to navigate to the tg_community_manager directory manually using

cd tg_community_manager with success.

Additionally, the command works as expected when using sudo:

sudo sgpt -s "go to tg_community_manager"

Is there a different installation procedure that I should follow?

@Robinsane
Copy link
Contributor

Robinsane commented Jun 21, 2024

Edit:
Nevermind my attempt at helping below; if it works with sudo, that probably means you don't use a container.

Hi @rvnikita

Just a guess, but is it possible you're running ShellGPT in a Docker container?
If yes, executing commands will not work (/ try it inside the container, of which you won't see much).

If using Docker => it's recommended to disable shell interaction

change "interaction" in app.py source code, line 60
or wait for my Pull request #540 to be merged, then the env variable "SHELL_INTERACTION" willb e available :)

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

2 participants