Code Monkey home page Code Monkey logo

Comments (7)

fernando-freitas-alves avatar fernando-freitas-alves commented on June 2, 2024 1

I was also facing the same issue in a Debian with i3wm. Same version: 0.2.4.

It seems like the changes @MikeBirdTech commented are not in that version yet. However, you can simply apply them yourself and see it fixed!

Thanks, @MikeBirdTech! πŸ™‡

from open-interpreter.

MikeBirdTech avatar MikeBirdTech commented on June 2, 2024

Hey @Jpkovas
Sorry to hear that you're having issues. We're working on a fix

from open-interpreter.

MikeBirdTech avatar MikeBirdTech commented on June 2, 2024

@Jpkovas Are you sure you're on 0.2.4?
Can you please run %info after you launch interpreter to verify?

This should have been resolved in https://github.com/OpenInterpreter/open-interpreter/pull/1117/files

Thanks :)

from open-interpreter.

tstodter avatar tstodter commented on June 2, 2024

I'm also seeing this problem on 0.2.4:
image

from open-interpreter.

darinkishore avatar darinkishore commented on June 2, 2024

Also seeing on 0.2.4.

Trace:

File
"/Users/darin/interpreter/.venv/lib/python3.11/site-packages/interpreter/core/llm/u
tils/convert_to_openai_messages.py", line 173, in convert_to_openai_messages
    new_message["content"] = new_message["content"].strip()
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'strip'

~/interpreter 34s
.venv ❯ [IPKernelApp] WARNING | Parent appears to have exited, shutting down.
[IPKernelApp] WARNING | Parent appears to have exited, shutting down.


~/interpreter 34s
.venv ❯ interpreter --os

β–Œ OS Control enabled

> %info
[IPKernelApp] WARNING | Parent appears to have exited, shutting down.
[IPKernelApp] WARNING | Parent appears to have exited, shutting down.

        Python Version: 3.11.7
        Pip Version: 23.2.1
        Open-interpreter Version: cmd: Open Interpreter 0.2.4 New Computer Update
, pkg: 0.2.4
        OS Version and Architecture: macOS-14.2.1-arm64-arm-64bit
        CPU Info: arm
        RAM Info: 16.00 GB, used: 6.88, free: 0.36


        # Interpreter Info

        Vision: True
        Model: gpt-4-vision-preview
        Function calling: False
        Context window: 110000
        Max tokens: 4096

        Auto run: True
        API base: None
        Offline: False

        Curl output: Not local
        ```

from open-interpreter.

nate-dryer avatar nate-dryer commented on June 2, 2024

I'm also seeing the same issue on 0.2.4.

Issue occurs when computer.display.view() is called to capture a screenshot, resulting in interpreter crashing with: AttributeError: 'list' object has no attribute 'strip'`

Environment Details:

  • Python Version: 3.11.1
  • Pip Version: 24.0
  • OS Version and Architecture: macOS-14.5-arm64-arm-64bit
  • CPU Info: arm
  • RAM Info: 16.00 GB, used: 7.40, free: 0.40

Error Details

  • Function Causing Error: convert_to_openai_messages
  • Error Description: Attempting to call strip() on a list item within new_message["content"]

Interpreter Settings

  • Version: 0.2.4
  • Vision: True
  • Model: gpt-4-vision-preview
  • Function calling: False
  • Context window: 110000 tokens
  • Max tokens: 4096
  • Auto run: True
  • API base: None
  • Offline: False
  • Curl output: Not local

Trace:

File "/Users/nathandryer/.pyenv/versions/3.11.1/envs/open-interpreter/lib/python3.11/site-packages/interpreter/core/llm/utils/convert_to_openai_messages.py", line 173, in convert_to_openai_messages
    new_message["content"] = new_message["content"].strip()
AttributeError: 'list' object has no attribute 'strip'

Let me know if you need anymore info.

from open-interpreter.

grass29 avatar grass29 commented on June 2, 2024

How does one apply these changes?

from open-interpreter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.