OpenInterpreter / open-interpreter

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

'computer' module not found #1225

Open Abdullah-Gohar opened 2 months ago

Abdullah-Gohar commented 2 months ago

Describe the bug

Any question that needs the interpreter to access the features of the computer module end up giving a "NameError: name 'computer' is not defined". This may be due to the codespace in which the interpreter is running the code.

Reproduce

  1. Install latest open-interpreter
  2. Run any code that requires computer module i.e
    
    from interpreter import interpreter

if name == "main": interpreter.chat("Email John 'Hi'")



### Expected behavior

The computer module should be accessible.

### Screenshots

![Screenshot 2024-04-23 111251](https://github.com/OpenInterpreter/open-interpreter/assets/74107339/adeef7a5-817b-469c-a71a-003fe9910be7)

### Open Interpreter version

0.2.4

### Python version

3.11.7

### Operating System name and version

Windows 11

### Additional context

_No response_
aj47 commented 1 week 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

1225 #1276 #1047