e2b-dev / desktop

E2B Desktop Sandbox for LLMs. E2B Sandbox with desktop graphical environment that you can connect to any LLM for secure computer use.
https://e2b.dev
Apache License 2.0
177 stars 16 forks source link

TypeError: unsupported operand type(s) #2

Open mishushakov opened 3 weeks ago

mishushakov commented 3 weeks ago
Traceback (most recent call last):
  File "/Users/mish/Documents/Playground/claude-computer/hello.py", line 1, in <module>
    from e2b_desktop import Sandbox
  File "/Users/mish/Documents/Playground/claude-computer/.venv/lib/python3.9/site-packages/e2b_desktop/__init__.py", line 3, in <module>
    from .main import Sandbox
  File "/Users/mish/Documents/Playground/claude-computer/.venv/lib/python3.9/site-packages/e2b_desktop/main.py", line 10, in <module>
    class Sandbox(SandboxBase):
  File "/Users/mish/Documents/Playground/claude-computer/.venv/lib/python3.9/site-packages/e2b_desktop/main.py", line 74, in Sandbox
    def locate_on_screen(self, text: str) -> tuple[int, int] | None:
TypeError: unsupported operand type(s) for |: 'types.GenericAlias' and 'NoneType'

code in question:

def locate_on_screen(self, text: str) -> tuple[int, int] | None: