anthropics / anthropics/claude-quickstarts

ImportError: EditTool20250429 not found in computer-use-demo Docker image

オープン
#317 コメント 5 件 リアクション 0 件 担当者 1 名 @PedramNavid が担当を希望しています GitHub で見る
bug computer use docker priority-high
主要言語
TypeScript
スター
17.6k
フォーク
3k
平均マージ
5時間 13分
マージ済み PR(30日)
3

説明

## Bug Description
The published Docker image `ghcr.io/anthropics/anthropic-quickstarts:computer-use-demo-latest`
fails to start due to an import error.

## Error Message
```
ImportError: cannot import name 'EditTool20250429' from 'computer_use_demo.tools.edit'
(/home/computeruse/computer_use_demo/tools/edit.py)
```

## Steps to Reproduce
1. Pull the latest Docker image:
```bash
docker pull ghcr.io/anthropics/anthropic-quickstarts:computer-use-demo-latest
```

2. Run the container:
```bash
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
```

3. Container starts but Streamlit fails with import error

## Environment
- OS: macOS
- Docker version: (run `docker --version` to get this)
- Image: `ghcr.io/anthropics/anthropic-quickstarts:computer-use-demo-latest`
- Date pulled: November 30, 2024

## Expected Behavior
The Streamlit app should start successfully and be accessible at http://localhost:8080

## Actual Behavior
Streamlit crashes with ImportError for `EditTool20250429`

## Full Error Log
```
File "/home/computeruse/computer_use_demo/tools/__init__.py", line 5, in
from .edit import EditTool20241022, EditTool20250124, EditTool20250429, EditTool20250728
ImportError: cannot import name 'EditTool20250429' from 'computer_use_demo.tools.edit'
```

## Suggestion
The `__init__.py` file is trying to import `EditTool20250429` which doesn't exist in
the `edit.py` file in the Docker image. This appears to be a version mismatch between
the code files in the published image.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。