open-interpreter icon indicating copy to clipboard operation
open-interpreter copied to clipboard

'computer' module not found

Open Abdullah-Gohar opened this issue 1 year ago • 1 comments

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

Open Interpreter version

0.2.4

Python version

3.11.7

Operating System name and version

Windows 11

Additional context

No response

Abdullah-Gohar avatar Apr 23 '24 06:04 Abdullah-Gohar

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

aj47 avatar Jun 23 '24 05:06 aj47