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

Command stuck when running CLI or AppleScript on Mac #1183

Open
brstream opened this issue Apr 7, 2024 · 3 comments
Open

Command stuck when running CLI or AppleScript on Mac #1183

brstream opened this issue Apr 7, 2024 · 3 comments

Comments

@brstream
Copy link

brstream commented Apr 7, 2024

Describe the bug

Thank you for this revolutionary software! Over the past few days I have done my best to see what I am doing wrong on my end. Every time the interpreter suggests running a CLI program on the Mac, or AppleScript, it gets stuck--for hours. Strangely, running Python code works. I've tried giving both kitty (the terminal software I use) and the built-in terminal program access to everything. MacOS usually puts up a dialog box when a folder is being accessed which is restricted. In short, interpreter sticks on trying to run any CLI command or AppleScript, and only works when running straight Python code. How to fix this?

Reproduce

  1. Run "interpreter"
  2. Enter "Give me a list of files on the desktop"
  3. Interpreter proposes "ls /Users/brstream/Desktop"
  4. A circular cursor after the proposed code stays, and the program sticks indefinitely.
  5. CTRL-C breaks out of the stuck program.
  6. Interpreter, after the traceback from a Keyboard Interrupt, says "It seems that the command to list files on the desktop is taking too long to execute. Let me try a different approach."
  7. Interpreter proposes "import os
    files = os.listdir('/Users/brstream/Desktop')
    files"
  8. Code runs quickly and as expected.

Expected behavior

  1. Run "interpreter"
  2. Enter "Give me a list of files on the desktop"
  3. Interpreter proposes "ls /Users/brstream/Desktop"
  4. Command runs quickly and as expected, giving the output of the "ls" command for the Desktop folder.

Screenshots

Screenshot 2024-04-07 at 10 48 44 AM

Open Interpreter version

0.2.4

Python version

3.9.19

Operating System name and version

macOS 14.2.1

Additional context

I use fish shell, but have reproduced the same problem on zsh.

@MemeFormer
Copy link

MemeFormer commented Apr 7, 2024

I created a similar project myself, although it's quite basic and not as advanced as this one. When I saw your post, I wanted to see how my assistant would handle it, and surprisingly, he did well 😎 I can relate to experiencing similar issues. If cmd didn't work on the first try, it would error out. For now, my solution is to feed him the error message and instruct him to come up with a solution based on the error. It has worked for small issues.

Uploading assistant.mov…

@MemeFormer
Copy link

@twilight-sparkle-irl
Copy link

Also happening to me on Void Linux, same freeze spot

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

3 participants