Skip to content

Pillow now seems to be required in the agent server#580

Merged
xingyaoww merged 2 commits intomainfrom
add-pillow-to-docker
Oct 1, 2025
Merged

Pillow now seems to be required in the agent server#580
xingyaoww merged 2 commits intomainfrom
add-pillow-to-docker

Conversation

@tofarr
Copy link
Copy Markdown
Collaborator

@tofarr tofarr commented Oct 1, 2025

When starting a conversation:

 File \"uvicorn/protocols/http/h11_impl.py\", line 403, in run_asgi
 File \"uvicorn/middleware/proxy_headers.py\", line 60, in __call__
 File \"fastapi/applications.py\", line 1054, in __call__
 File \"starlette/applications.py\", line 113, in __call__
 File \"starlette/middleware/errors.py\", line 186, in __call__
 File \"starlette/middleware/errors.py\", line 164, in __call__
 File \"starlette/middleware/cors.py\", line 85, in __call__
 File \"starlette/middleware/exceptions.py\", line 63, in __call__
 File \"starlette/_exception_handler.py\", line 53, in wrapped_app
 File \"starlette/_exception_handler.py\", line 42, in wrapped_app
 File \"starlette/routing.py\", line 716, in __call__
 File \"starlette/routing.py\", line 736, in app
 File \"starlette/routing.py\", line 290, in handle
 File \"starlette/routing.py\", line 78, in app
 File \"starlette/_exception_handler.py\", line 53, in wrapped_app
 File \"starlette/_exception_handler.py\", line 42, in wrapped_app
 File \"starlette/routing.py\", line 75, in app
 File \"fastapi/routing.py\", line 302, in app
 File \"fastapi/routing.py\", line 213, in run_endpoint_function
 File \"openhands/agent_server/conversation_router.py\", line 129, in start_conversation
 File \"openhands/agent_server/conversation_service.py\", line 203, in start_conversation
 File \"openhands/agent_server/event_service.py\", line 206, in start
 File \"openhands/sdk/conversation/impl/local_conversation.py\", line 99, in __init__
 File \"openhands/sdk/agent/agent.py\", line 84, in init_state
 File \"openhands/sdk/agent/base.py\", line 186, in init_state
 File \"openhands/sdk/agent/base.py\", line 196, in _initialize
 File \"openhands/sdk/tool/registry.py\", line 143, in resolve_tool
 File \"openhands/sdk/tool/registry.py\", line 97, in _resolve
 File \"openhands/tools/browser_use/definition.py\", line 598, in create
 File \"pyimod02_importers.py\", line 457, in exec_module
 File \"openhands/tools/browser_use/impl.py\", line 13, in <module>
 File \"pyimod02_importers.py\", line 457, in exec_module
 File \"openhands/tools/browser_use/server.py\", line 1, in <module>
 File \"pyimod02_importers.py\", line 457, in exec_module
 File \"browser_use/mcp/__init__.py\", line 6, in <module>
 File \"pyimod02_importers.py\", line 457, in exec_module
 File \"browser_use/mcp/client.py\", line 32, in <module>
 File \"pyimod02_importers.py\", line 457, in exec_module
 File \"browser_use/agent/views.py\", line 25, in <module>
 File \"pyimod02_importers.py\", line 457, in exec_module
 File \"browser_use/filesystem/file_system.py\", line 11, in <module>
 File \"pyimod02_importers.py\", line 457, in exec_module
 File \"reportlab/lib/styles.py\", line 26, in <module>
 File \"pyimod02_importers.py\", line 457, in exec_module
 File \"reportlab/lib/colors.py\", line 43, in <module>
 File \"pyimod02_importers.py\", line 457, in exec_module
 File \"reportlab/lib/rl_accel.py\", line 34, in <module>
 File \"pyimod02_importers.py\", line 457, in exec_module
 File \"reportlab/lib/utils.py\", line 15, in <module>
ModuleNotFoundError: No module named 'PIL'"}

Agent Server images for this PR

GHCR package: https://github.com/All-Hands-AI/agent-sdk/pkgs/container/agent-server

Variants & Base Images

Variant Base Image Docs / Tags
golang golang:1.21-bookworm Link
java eclipse-temurin:17-jdk Link
python nikolaik/python-nodejs:python3.12-nodejs22 Link

Pull (multi-arch manifest)

docker pull ghcr.io/all-hands-ai/agent-server:9474e16-python

Run

docker run -it --rm \
  -p 8000:8000 \
  --name agent-server-9474e16-python \
  ghcr.io/all-hands-ai/agent-server:9474e16-python

All tags pushed for this build

ghcr.io/all-hands-ai/agent-server:9474e16-golang
ghcr.io/all-hands-ai/agent-server:v1.0.0_golang_tag_1.21-bookworm_golang
ghcr.io/all-hands-ai/agent-server:9474e16-java
ghcr.io/all-hands-ai/agent-server:v1.0.0_eclipse-temurin_tag_17-jdk_java
ghcr.io/all-hands-ai/agent-server:9474e16-python
ghcr.io/all-hands-ai/agent-server:v1.0.0_nikolaik_s_python-nodejs_tag_python3.12-nodejs22_python

The 9474e16 tag is a multi-arch manifest (amd64/arm64); your client pulls the right arch automatically.

@xingyaoww xingyaoww enabled auto-merge (squash) October 1, 2025 02:31
@xingyaoww xingyaoww merged commit b28fdd0 into main Oct 1, 2025
14 checks passed
@xingyaoww xingyaoww deleted the add-pillow-to-docker branch October 1, 2025 02:33
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

Successfully merging this pull request may close these issues.

2 participants