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

Error NoneType: None Traceback (most recent call last): #247

Closed
joewebbxp opened this issue Sep 10, 2023 · 9 comments
Closed

Error NoneType: None Traceback (most recent call last): #247

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

Comments

@joewebbxp
Copy link

Imm getting this on Mac OS. Why would this be?

NoneType: None
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/bin/interpreter", line 8, in
sys.exit(cli())
^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/interpreter/interpreter.py", line 131, in cli
cli(self)
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/interpreter/cli.py", line 207, in cli
interpreter.chat()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/interpreter/interpreter.py", line 287, in chat
self.respond()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/interpreter/interpreter.py", line 509, in respond
raise Exception("")
Exception

@joewebbxp joewebbxp added the Bug Something isn't working label Sep 10, 2023
@joewebbxp joewebbxp changed the title Error Error NoneType: None Traceback (most recent call last): Sep 10, 2023
@metincc
Copy link

metincc commented Sep 10, 2023

I see the same issue on Windows as well as WSL

@giswqs
Copy link

giswqs commented Sep 10, 2023

Same error on Linux

@kinwong-ds
Copy link

Same error on Linux with py3.10

@SwannSchilling
Copy link

SwannSchilling commented Sep 10, 2023

Same Error here...
Windows 10, Python 3.10.4

@cnguyenWurl
Copy link

this problem is because setting the openai key in the interpreter doesn't work. To make it work use this command before starting interpreter. There is probably a bug in the code where it tries to set the key when it asks you for the key if you didn't set export first.

export OPENAI_API_KEY=<your key>

@moniljo
Copy link

moniljo commented Sep 10, 2023

This fixed it, thank you!

@joewebbxp
Copy link
Author

Absolute legend!!!

@KillianLucas
Copy link
Collaborator

Hey all, my apologies for this. That exception should have contained relevant info (like that an API key was missing, if it was)— the last version would just raise Exception("") if it had any error with OpenAI at all.

Fixed in 0.1.3:

pip install --upgrade open-interpreter

@SwannSchilling
Copy link

Btw depending on your system you might have to change the syntax, on Windows it is
set OPENAI_API_KEY=sk-...

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

8 participants