Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

fix: add missing PIL Image import in macos handler (#817)

cyril992f98238c1e
diff --git a/libs/python/computer-server/computer_server/handlers/macos.py b/libs/python/computer-server/computer_server/handlers/macos.py
index 86f11d5a44..c994e38e78 100644
--- a/libs/python/computer-server/computer_server/handlers/macos.py
+++ b/libs/python/computer-server/computer_server/handlers/macos.py
@@ -73,7 +73,7 @@ except Exception as e:
# Trigger screen recording prompt on macOS
try:
- from PIL import ImageGrab
+ from PIL import ImageGrab, Image
ImageGrab.grab()
except Exception as e: