Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the DISPLAY environment variable can be undefined #1552

Open
pminervini opened this issue Dec 8, 2024 · 0 comments
Open

the DISPLAY environment variable can be undefined #1552

pminervini opened this issue Dec 8, 2024 · 0 comments

Comments

@pminervini
Copy link

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

(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.

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

@pminervini pminervini reopened this Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant