open-interpreter
open-interpreter copied to clipboard
No module named 'pyautogui' in OS mode
Describe the bug
When installing open-interpreter, running interpreter --os gives the error ModuleNotFoundError: No module named 'pyautogui'.
Reproduce
- On macOS, install open-interpreter (
pipx install --python python3.12 open-interpreter) - Run
interpreter --os - 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
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
Try using pip install open-interpreter[os].
⚠️ 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