anthropics / anthropic-quickstarts

A collection of projects designed to help developers quickly get started with building deployable applications using the Anthropic API
MIT License
5.49k stars 673 forks source link

Failed to take screenshot: /bin/sh: scrot: command not found #79

Open rajasekar-venkatesan opened 1 day ago

rajasekar-venkatesan commented 1 day ago

The docker runs successfully.

% docker run \ -e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY \ -v $HOME/.anthropic:/home/computeruse/.anthropic \ -p 5900:5900 \ -p 8501:8501 \ -p 6080:6080 \ -p 8080:8080 \ -it ghcr.io/anthropics/anthropic-quickstarts:computer-use-demo-latest Xvfb started successfully on display :1 Xvfb PID: 9 starting tint2 on display :1 ... starting mutter starting vnc PORT=5900 starting noVNC noVNC started successfully ✨ Computer Use Demo is ready! ➡️ Open http://localhost:8080 in your browser to begin

But, from localhost:8080. when try with any query, it shows

Failed to take screenshot: /bin/sh: scrot: command not found

Screenshot 2024-10-23 at 3 41 24 PM
bmacer commented 18 hours ago

what was the first command/instruction you ran?

x5a commented 17 hours ago

@rajasekar-venkatesan Is this issue consistent or just happened this once? I'm wondering if your $PATH or env got mangled somehow.

rajasekar-venkatesan commented 13 hours ago

@bmacer It happens for whatever command/instruction I give. In this instance, I was testing with: "search the logo of anthropic claude in internet and download to the computer"

@x5a The issue is consistent. It always happen. I am using the default getting started code only. I don't think any issue with environment variable.

% docker run -e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY -v $HOME/.anthropic:/home/computeruse/.anthropic -p 5900:5900 -p 8501:8501 -p 6080:6080 -p 8080:8080 -it ghcr.io/anthropics/anthropic-quickstarts:computer-use-demo-latest