OpenInterpreter / open-interpreter

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

Added conditional support for Windows, computer not found error #1227

Open Abdullah-Gohar opened 5 months ago

Abdullah-Gohar commented 5 months ago

Changed one of the conditional statements to account for the import of computer module.

Fixes #1225

Pre-Submission Checklist (optional but appreciated):

OS Tests (optional but appreciated):

KillianLucas commented 5 months ago

Hi @Abdullah-Gohar! Thanks for this PR, I think we might want to solve this issue in another way though. Some folks might want to run a lightweight Open Interpreter in Python without the computer API (I think we should remove reference to it in the system message for this reason, so it won't try to use it unless it has access to it).

We could make it simply print instructions for importing the computer API (initializing interpreter with interpreter = OpenInterpreter(import_computer_api=True)) if "computer" is spotted in the code, and import_computer_api is False. Do you think those solutions would work?