OpenInterpreter / open-interpreter

A natural language interface for computers
http://openinterpreter.com/
GNU Affero General Public License v3.0
52.42k stars 4.63k forks source link

computer is not defined #1276

Open mccoysc opened 4 months ago

mccoysc commented 4 months ago

Describe the bug

When AI generates code calling computer.browser.search, an error occurs with the message "computer.browser.search is not defined". However, it used to work properly before and the issue only started happening suddenly yesterday.

Reproduce

no

Expected behavior

computer.browser.search work well

Screenshots

No response

Open Interpreter version

0.25

Python version

3.12.3

Operating System name and version

windows 10 x64

Additional context

No response

onigetoc commented 4 months ago

I have the same bug

AncalagonX commented 3 months ago

Any resolution here? I've been having the same problem for the last month as well. I don't use -os, because I don't want the extra control over my computer, but I appreciated it having a native ability to search the web for up to date info or documentation as it's working.

aj47 commented 3 months ago

i have this issue running --os i was able to overcome it using os.py profile with interpreter --profile os.py

make sure you have the os.py profile in your profiles directory (interpreter --profiles)

you can find the file here: https://github.com/OpenInterpreter/open-interpreter/blob/main/interpreter/terminal_interface/profiles/defaults/os.py

https://github.com/OpenInterpreter/open-interpreter/issues/1225 https://github.com/OpenInterpreter/open-interpreter/issues/1276 https://github.com/OpenInterpreter/open-interpreter/issues/1047