You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the code assumes it's always defined, but often it's not (e.g., if you're logging in via ssh)
Reproduce
(base) pasquale@host:~$ interpreter
Open Interpreter 1.0.0
Copyright (C) 2024 Open Interpreter Team
Licensed under GNU AGPL v3.0
A modern command-line assistant.
Usage: i [prompt]
or: interpreter [options]
Documentation: docs.openinterpreter.com
Run 'interpreter --help' for all options
> [sample instruction]
Traceback (most recent call last):
File "/home/../miniconda3/lib/python3.12/site-packages/interpreter/tools/computer.py", line 14, in <module>
import pyautogui
File "/home/../miniconda3/lib/python3.12/site-packages/pyautogui/__init__.py", line 246, in <module>
import mouseinfo
File "/home/../miniconda3/lib/python3.12/site-packages/mouseinfo/__init__.py", line 223, in <module>
_display = Display(os.environ['DISPLAY'])
~~~~~~~~~~^^^^^^^^^^^
File "<frozen os>", line 714, in __getitem__
KeyError: 'DISPLAY'
Failed to import pyautogui. Computer tool will not work.
Describe the bug
the code assumes it's always defined, but often it's not (e.g., if you're logging in via
ssh
)Reproduce
Expected behavior
no
KeyError: 'DISPLAY'
Screenshots
No response
Open Interpreter version
latest @development
Python version
3.12.7
Operating System name and version
GNU/Linux aarch64
Additional context
No response
The text was updated successfully, but these errors were encountered: