open-interpreter icon indicating copy to clipboard operation
open-interpreter copied to clipboard

TypeError: 'NoneType' object is not iterable

Open skywalk163 opened this issue 2 years ago • 14 comments

Describe the bug

Traceback (most recent call last): File "/opt/conda/envs/python35-paddle120-env/bin/interpreter", line 8, in sys.exit(cli()) File "/opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/interpreter/interpreter.py", line 131, in cli cli(self) File "/opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/interpreter/cli.py", line 207, in cli interpreter.chat() File "/opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/interpreter/interpreter.py", line 291, in chat self.respond() File "/opt/conda/envs/python35-paddle120-env/lib/python3.10/site-packages/interpreter/interpreter.py", line 598, in respond for chunk in response: TypeError: 'NoneType' object is not iterable

Reproduce

after change version to 0.1.3 , got this error

Expected behavior

response shouldn't be 'NoneType'

Screenshots

No response

Open Interpreter version

0.1.3

Python version

3.10.10

Operating System name and version

Linux jupyter-141218-6730729 5.4.0-104-generic #118-Ubuntu

Additional context

No response

skywalk163 avatar Sep 11 '23 14:09 skywalk163

Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in run_code File "Programs\Python\Python311\Scripts\interpreter.exe_main.py", line 7, in File "Programs\Python\Python311\Lib\site-packages\interpreter\interpreter.py", line 131, in cli cli(self) File "Programs\Python\Python311\Lib\site-packages\interpreter\cli.py", line 207, in cli interpreter.chat() File "Programs\Python\Python311\Lib\site-packages\interpreter\interpreter.py", line 412, in chat self.respond() File "Programs\Python\Python311\Lib\site-packages\interpreter\interpreter.py", line 705, in respond response = self.llama_instance( ^^^^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object is not callable ————————————————————————————————————————————————————————

I also ran into this issue

PhilRandWu avatar Sep 14 '23 09:09 PhilRandWu

Does this happen immediate after you start Open Interpreter, or is this during a conversation with the AI? If it's during a conversation, can you please provide enough of the conversation to see what triggered the error?

jordanbtucker avatar Sep 15 '23 06:09 jordanbtucker

Does this happen immediate after you start Open Interpreter, or is this during a conversation with the AI? If it's during a conversation, can you please provide enough of the conversation to see what triggered the error?

happen this during a conversation with the AI

MayueCif avatar Sep 15 '23 08:09 MayueCif

im also getting the same error.. happens right after i choose the downloaded model, it loads the model then starts repeating this :

using windows 11, rtx 2080, 7b medium sized llama model

Screenshot 2023-09-16 163408 Screenshot 2023-09-16 163418

Dix01 avatar Sep 16 '23 13:09 Dix01

im also getting the same error.. happens right after i choose the downloaded model, it loads the model then starts repeating this :

using windows 11, rtx 2080, 7b medium sized llama model

I'm getting the exact same thing as Dix01. I'm trying the 13B medium model but the result is the same. Win 11 RTX3060 12GB VRAM.

Ionaut avatar Sep 17 '23 02:09 Ionaut

This Code seems to be the culprit: image Causing: image

Ionaut avatar Sep 17 '23 02:09 Ionaut

have the same issue 0.1.15 when trying to run "interpreter" in command line after successful install (m2, python 3.11 conda env)

maxpetrusenko avatar Nov 16 '23 20:11 maxpetrusenko

Hey there, @maxpetrusenko!

Could you share some more info about your experience? What model were you using? What was your prompt?

A screenshot or text dump of the error output would be helpful, especially because the error messages in this thread appear to come from pyreadline3 which should only be loaded on Windows.

ericrallen avatar Nov 17 '23 03:11 ericrallen

@ericrallen ,

(base) MacBook-Pro-2:~ maxpetrusenko$ interpreter
Traceback (most recent call last):
  File "/Users/maxpetrusenko/miniforge3/bin/interpreter", line 5, in <module>
    from interpreter import cli
  File "/Users/maxpetrusenko/miniforge3/lib/python3.10/site-packages/interpreter/__init__.py", line 8, in <module>
    sys.modules["interpreter"] = Interpreter()
  File "/Users/maxpetrusenko/miniforge3/lib/python3.10/site-packages/interpreter/core/core.py", line 60, in __init__
    self.extend_config(self.config_file)
  File "/Users/maxpetrusenko/miniforge3/lib/python3.10/site-packages/interpreter/core/core.py", line 79, in extend_config
    self.__dict__.update(config)
TypeError: 'NoneType' object is not iterable

maxpetrusenko avatar Nov 21 '23 15:11 maxpetrusenko

@maxpetrusenko please post your config.yaml interpreter --config

Notnaton avatar Nov 27 '23 18:11 Notnaton

@Notnaton i see the same error

maxpetrusenko$ interpreter --config
Traceback (most recent call last):
  File "/Users/maxpetrusenko/miniforge3/bin/interpreter", line 5, in <module>
    from interpreter import cli
  File "/Users/maxpetrusenko/miniforge3/lib/python3.10/site-packages/interpreter/__init__.py", line 8, in <module>
    sys.modules["interpreter"] = Interpreter()
  File "/Users/maxpetrusenko/miniforge3/lib/python3.10/site-packages/interpreter/core/core.py", line 60, in __init__
    self.extend_config(self.config_file)
  File "/Users/maxpetrusenko/miniforge3/lib/python3.10/site-packages/interpreter/core/core.py", line 79, in extend_config
    self.__dict__.update(config)
TypeError: 'NoneType' object is not iterable

maxpetrusenko avatar Nov 27 '23 18:11 maxpetrusenko

@maxpetrusenko you need to delete your config.yaml file and let it generate again. go to where Open-interpreter is and delete it

Windows: It would typically be something like C:\Users\[Username]\AppData\Local\Open Interpreter\Open Interpreter

macOS: The path would generally be ~/Library/Application Support/Open Interpreter

On Linux: It would typically be ~/.config/Open Interpreter

let me know if it is solved

Notnaton avatar Nov 27 '23 19:11 Notnaton

@Notnaton , Thanks. Resolved

maxpetrusenko avatar Nov 27 '23 20:11 maxpetrusenko

@skywalk163 Is this still an issue? There has been many updates since 0.1.3 please run pip install --upgrade open-interpreter Can anyone confirm it's fixed or not fixed?

Notnaton avatar Nov 27 '23 20:11 Notnaton