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

Exception raised #241

Closed
danieldw69ios opened this issue Sep 10, 2023 · 18 comments
Closed

Exception raised #241

danieldw69ios opened this issue Sep 10, 2023 · 18 comments
Labels
Bug Something isn't working

Comments

@danieldw69ios
Copy link

Describe the bug
Exception raised frozen runpy

To Reproduce
Steps to reproduce the behavior:

  1. installed latest version of anaconda
  2. conda create -n oi python=3.11.4
  3. conda activate oi
  4. pip install open-interpreter
  5. interpreter -y
  6. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
$ interpreter -y

what files are on my desktop
NoneType: None
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\User.conda\envs\oi\Scripts\interpreter.exe_main
.py", line 7, in
File "C:\Users\User\AppData\Roaming\Python\Python311\site-packages\interpreter\interpreter.py", line 131, in cli
cli(self)
File "C:\Users\User\AppData\Roaming\Python\Python311\site-packages\interpreter\cli.py", line 207, in cli
interpreter.chat()
File "C:\Users\User\AppData\Roaming\Python\Python311\site-packages\interpreter\interpreter.py", line 287, in chat
self.respond()
File "C:\Users\User\AppData\Roaming\Python\Python311\site-packages\interpreter\interpreter.py", line 509, in respond
raise Exception("")
Exception

System (please complete the following information):

  • OS: both on Windows and iOS
  • Python 3.11.4
  • Open Interpreter version 0.1.2

Additional context
Add any other context about the problem here.

@danieldw69ios danieldw69ios added the Bug Something isn't working label Sep 10, 2023
@NachoVazquez
Copy link

NachoVazquez commented Sep 10, 2023

I'm having the same issue on MacOS.

MacOS: 13.5.2
Python: 3.11.5
Open interpreter: 0.1.2

@NachoVazquez
Copy link

I'm having the same issue on MacOS.

MacOS: 13.5.2 Python: 3.11.5 Open interpreter: 0.1.2

Uninstalling a reinstalling fixed it for me.

@kecbigmt
Copy link

I have the same issue.
Reinstalling didn't fix it for me.

  • MacOS: 13.5.1
  • Python: 3.10.13
  • Open interpreter: 0.1.2
Press CTRL-C to exit.

> hi
NoneType: None
Traceback (most recent call last):
  File "/open-interpreter-workspace/.venv/bin/interpreter", line 8, in <module>
    sys.exit(cli())
  File "/open-interpreter-workspace/.venv/lib/python3.10/site-packages/interpreter/interpreter.py", line 131, in cli
    cli(self)
  File "/open-interpreter-workspace/.venv/lib/python3.10/site-packages/interpreter/cli.py", line 207, in cli
    interpreter.chat()
  File "/open-interpreter-workspace/.venv/lib/python3.10/site-packages/interpreter/interpreter.py", line 287, in chat
    self.respond()
  File "/open-interpreter-workspace/.venv/lib/python3.10/site-packages/interpreter/interpreter.py", line 509, in respond
    raise Exception("")
Exception

@Videoteq
Copy link

Same issue with Linux Mint (and Mac)
Python 3.11.4
Tried re-installing but no joy

Linux response:

what files are on the desktop
NoneType: None
Traceback (most recent call last):
File "/home/bob/anaconda3/envs/i/bin/interpreter", line 8, in
sys.exit(cli())
^^^^^
File "/home/bob/anaconda3/envs/i/lib/python3.11/site-packages/interpreter/interpreter.py", line 131, in cli
cli(self)
File "/home/bob/anaconda3/envs/i/lib/python3.11/site-packages/interpreter/cli.py", line 207, in cli
interpreter.chat()
File "/home/bob/anaconda3/envs/i/lib/python3.11/site-packages/interpreter/interpreter.py", line 287, in chat
self.respond()
File "/home/bob/anaconda3/envs/i/lib/python3.11/site-packages/interpreter/interpreter.py", line 509, in respond
raise Exception("")
Exception

@bakertn
Copy link

bakertn commented Sep 10, 2023

Same issue. Widows, Anaconda Navigator, Updated Anaconda and Python to latest versions just before installing.

Chat: Hello

Response:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\lbake\anaconda3\envs\oi\Scripts\interpreter.exe_main
.py", line 7, in
File "C:\Users\lbake\anaconda3\envs\oi\Lib\site-packages\interpreter\interpreter.py", line 131, in cli
cli(self)
File "C:\Users\lbake\anaconda3\envs\oi\Lib\site-packages\interpreter\cli.py", line 207, in cli
interpreter.chat()
File "C:\Users\lbake\anaconda3\envs\oi\Lib\site-packages\interpreter\interpreter.py", line 287, in chat
self.respond()
File "C:\Users\lbake\anaconda3\envs\oi\Lib\site-packages\interpreter\interpreter.py", line 509, in respond
raise Exception("")
Exception

Update. I went over to the Colab link and tried it there. Not surprised to see it's crashing there as well.

When you run the sample request this is the response in Colab.

Response:

NoneType: None

Exception Traceback (most recent call last)
in <cell line: 1>()
----> 1 interpreter.chat("Please print hello world.")

1 frames
/usr/local/lib/python3.10/dist-packages/interpreter/interpreter.py in respond(self)
507 else:
508 traceback.print_exc()
--> 509 raise Exception("")
510
511 elif self.local:

Exception:

@victoriano
Copy link

victoriano commented Sep 10, 2023

same issue here! An hour and a half ago when I tried it for the first time, I was super hooked, I felt like I could do anything. I'm almost glad it broke so I can sleep tonight 😂

@Videoteq
Copy link

It doesn't work in Colab either! There must be a fundamental flaw, but way beyond my paygrade to figure out!

@Snape888
Copy link

Same issue here:
MacOS Ventura (clean install) 13.5.2

@thenetguy
Copy link

Same issue here

@contang0
Copy link

same...

@diatche
Copy link

diatche commented Sep 10, 2023

Judging by the solutions in #247, if this happens immediately, then the OpenAI key hasn't been exported beforehand, but if it happens later on, it could be an error while calling the OpenAI endpoint causing the process to fail. If the latter is the case, then it seems error recovery would need to be looked at.

@kecbigmt
Copy link

I got a workaround.
I tried to set OPENAI_API_KEY to environment variables before running interpreter.

export OPENAI_API_KEY=sk-xxxxxx && interpreter

And it works.

Thank you, @diatche.

@Videoteq
Copy link

Videoteq commented Sep 11, 2023

Thanks @kecbigmt and @diatche

When I opened interpreter (on my Linux machine) it promted to upgrade to v0.1.3, after which I saved the API key as you suggested and now it's all working fine (and amazing is is too!). Have to ty it on my Mac now.....

Previously, I'd noticed that there was no usage for my API key so I guess it wasn't being passed.

@victoriano
Copy link

export OPENAI_API_KEY=sk-xxxxxx && interpreter

yep this worked for me too. Seems like a problem reading the API key from the input prompt then :)

@danieldw69ios
Copy link
Author

It worked once I upgraded to v0.1.3 using 'pip install --upgrade open-interpreter.' After that, I verified the upgrade with 'pip show open-interpreter.' Then, I executed 'set OPENAI_API_KEY=sk-xxxxx.' Afterward, I ran 'interpreter -y' and asked how many files are on my desktop? However, I encountered the following error message: 'openai.error.InvalidRequestError: The model 'gpt-4' does not exist, or you do not have access to it. Learn more: [link].' So, I then used the following command: 'interpreter --fast -y' and asked the same question, and it worked.

@Videoteq
Copy link

I'm no expert, but should you use export OPENAI_API_KEY=sk-xxxx and not set?

@danieldw69ios
Copy link
Author

I think export is for iOS - I used set for my Windows installation and export for my Mac installation.

@ericrallen
Copy link
Collaborator

Going to close this one as stale.

Feel encouraged to reopen it if this is still an issue in the latest version.

@ericrallen ericrallen closed this as not planned Won't fix, can't repro, duplicate, stale Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests