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

No module named 'pyautogui' in OS mode

Open henryaj opened this issue 1 year ago • 3 comments

Describe the bug

When installing open-interpreter, running interpreter --os gives the error ModuleNotFoundError: No module named 'pyautogui'.

Reproduce

  1. On macOS, install open-interpreter (pipx install --python python3.12 open-interpreter)
  2. Run interpreter --os
  3. See the error above.

Full stacktrace:

Traceback (most recent call last):
  File "/opt/homebrew/bin/interpreter", line 5, in <module>
    from interpreter.terminal_interface.start_terminal_interface import main
  File "/opt/homebrew/lib/python3.11/site-packages/interpreter/__init__.py", line 52, in <module>
    from .computer_use.loop import run_async_main
  File "/opt/homebrew/lib/python3.11/site-packages/interpreter/computer_use/loop.py", line 38, in <module>
    from .tools import BashTool, ComputerTool, EditTool, ToolCollection, ToolResult
  File "/opt/homebrew/lib/python3.11/site-packages/interpreter/computer_use/tools/__init__.py", line 4, in <module>
    from .computer import ComputerTool
  File "/opt/homebrew/lib/python3.11/site-packages/interpreter/computer_use/tools/computer.py", line 16, in <module>
    import pyautogui
ModuleNotFoundError: No module named 'pyautogui'

Expected behavior

OS mode should work with a fresh install.

Screenshots

No response

Open Interpreter version

0.4.3

Python version

3.11

Operating System name and version

macOS Sonoma 14.3.1

Additional context

No response

henryaj avatar Jan 06 '25 17:01 henryaj

This is how I setup the python env and run os mode:

conda create -n openit python=3.11 -y
conda activate openit
python -m pip install open-interpreter pyautogui uvicorn fastapi

cyizhuo avatar Jan 26 '25 07:01 cyizhuo

Try using pip install open-interpreter[os].

CyanideByte avatar Feb 13 '25 20:02 CyanideByte

⚠️ if you face the error Client.__init__() got an unexpected keyword argument 'proxies' it is due to the upgrade of httpx to the version 0.28. ⚠️

To solve the issue, downgrade to version 0.27.2 of httpx: python -m pip install httpx==0.27.2

Or the full command:

conda create -n openit python=3.11 -y
conda activate openit
python -m pip install open-interpreter pyautogui uvicorn fastapi httpx==0.27.2

hervenivon avatar Feb 14 '25 22:02 hervenivon