Open tiry opened 7 months ago
Yep, getting this error too. quick hack: output = output[0]["content"]
after output = self.computer.run("python", code_to_run)
https://github.com/OpenInterpreter/open-interpreter/commit/e5fdc57726869e2149e6cef36b287a957a58d507 seems to be at fault
from main
:
git bisect start
git bisect bad
git checkout 68ab324 # parent of e5fdc57
poetry install
poetry run interpreter
# given welcome message, prompted for open ai key...
[nix-shell:~/code/work/foss/SgtPooki/open-interpreter]$ git bisect good
# continue through git bisect, checking if `poetry run interpreter` works..
e5fdc57726869e2149e6cef36b287a957a58d507 is the first bad commit
commit e5fdc57726869e2149e6cef36b287a957a58d507
Author: killian <63927363+KillianLucas@users.noreply.github.com>
Date: Thu Mar 21 12:18:11 2024 -0700
Fixed rare skill issue
interpreter/core/computer/skills/skills.py | 32 +++++++++++++++++++++++++++++-
1 file changed, 31 insertions(+), 1 deletion(-)
Hey @tiry Are you able to try the fix that @SgtPooki mentioned to see if it resolves the issue?
Hey @MikeBirdTech, I was able to fix the code and make it run on my side, but I figured I should report so it gets fixed properly in the main branch since it looks to me like a miss alignment between 2 parts of the code.
And yes, the fix proposed by @SgtPooki is very similar to what I did to be able to run the code, so it should fix the issue.
Describe the bug
Trying to run the interpreter from the source code / main branch (the wheel version works ok)
Basically, it seems that the
output
is a dictionarywhereas the code expected a string
In my case, output = [{'type': 'console', 'format': 'output', 'content': ''}]
Reproduce
Expected behavior
Display the interpreter prompt without errir
Screenshots
No response
Open Interpreter version
main branch
Python version
3.11.8
Operating System name and version
MacOS 14.4
Additional context
No response