agentscope-ai / agentscope-ai/agentscope-runtime
[Bug] Build error info should be pass to user level error
- 主要語言
- Python
- 星號
- 863
- 分支
- 168
- PR 合併指標
- 30 天內沒有已合併 PR
描述
**Security Issues: If this involves security vulnerabilities, report via [Alibaba Security Response Center (ASRC)](https://security.alibaba.com/) instead of creating a public issue.**
## Bug Description
尝试跑agentscope-runtime/examples/deployments/k8s_deploy/app_deploy_to_k8s.py, 报这个错,能帮忙看一下吗?
本质是
```
[root@iZbp1eyem4ewqkov6zd55oZ ~]# docker build -t agent_app:linux-amd64-1 --platform linux/amd64 /root/agentscope-runtime/examples/deployments/k8s_deploy/.agentscope_runtime/builds/k8s_20251222_160632_c58291/.agentscope_runtime/
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
STEP 1/17: FROM python:3.10-slim-bookworm
STEP 2/17: WORKDIR /app
--> Using cache bed6cb435084a04edfb6d239021b426499b7a7bae1609ebb03fe2d9375327c40
--> bed6cb435084
STEP 3/17: ENV PYTHONDONTWRITEBYTECODE=1
--> Using cache 5be12ef8ece08e7cd5871e0412a8c8ae821df8c8f7a0cac8707ed6d3d4e2838c
--> 5be12ef8ece0
STEP 4/17: ENV PYTHONUNBUFFERED=1
--> Using cache 7aa4fb14f1620558e2775e929946dd7bf30f151237d53aa00fe5859c3ae86b95
--> 7aa4fb14f162
STEP 5/17: RUN rm -f /etc/apt/sources.list.d/*.list
--> Using cache 7f1d697d6c8e9c7656cdf138411c987776194ea6d8dc37a358528025d8bea753
--> 7f1d697d6c8e
STEP 6/17: RUN echo "deb https://mirrors.aliyun.com/debian/ bookworm main contrib " "non-free non-free-firmware" > /etc/apt/sources.list && echo "deb https://mirrors.aliyun.com/debian/ bookworm-updates main " "contrib non-free non-free-firmware" >> /etc/apt/sources.list && echo "deb https://mirrors.aliyun.com/debian-security/ " "bookworm-security main contrib non-free " "non-free-firmware" >> /etc/apt/sources.list
--> Using cache bc91ee816f1c375ae17fe7839e83e3105fd045c2bde98ccc98d904f42329d1db
--> bc91ee816f1c
STEP 7/17: RUN mkdir -p /etc/apt/sources.list.d && cat > /etc/apt/sources.list.d/debian.sources <<'EOF'
--> Using cache 6166a1040e1478472623cb68d6fa8ccf859041d9871c9e5d646d9f76c3df606e
--> 6166a1040e14
STEP 8/17: RUN rm -rf /var/lib/apt/lists/*
--> Using cache ba23cea9af4baaff6a7fc223dfda2382b16602374c9c450a76e20464f6485f4e
--> ba23cea9af4b
STEP 9/17: RUN apt-get update && apt-get install -y gcc curl && rm -rf /var/lib/apt/lists/*
--> Using cache f3e1d9cb7b0782b76bff26e50483e81ec4c94fe0fa4d6472c6f8caac1569c9a3
--> f3e1d9cb7b07
STEP 10/17: COPY . /app/
--> Using cache fb7ae852636aae4c37fc91acf384ae5306032200252929a88eebe328c3ffd3ac
--> fb7ae852636a
STEP 11/17: RUN pip install --no-cache-dir --upgrade pip
--> Using cache afea9226d269530f267944ffd00f320f4680c59e475f0c40024f3cb7dbce3f95
--> afea9226d269
STEP 12/17: RUN if [ -f requirements.txt ]; then pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple; fi
time="2025-12-22T16:15:15+08:00" level=warning msg="can't raise ambient capability CAP_CHOWN: operation not permitted"
time="2025-12-22T16:15:15+08:00" level=warning msg="can't raise ambient capability CAP_DAC_OVERRIDE: operation not permitted"
time="2025-12-22T16:15:15+08:00" level=warning msg="can't raise ambient capability CAP_FOWNER: operation not permitted"
time="2025-12-22T16:15:15+08:00" level=warning msg="can't raise ambient capability CAP_FSETID: operation not permitted"
time="2025-12-22T16:15:15+08:00" level=warning msg="can't raise ambient capability CAP_KILL: operation not permitted"
time="2025-12-22T16:15:15+08:00" level=warning msg="can't raise ambient capability CAP_NET_BIND_SERVICE: operation not permitted"
time="2025-12-22T16:15:15+08:00" level=warning msg="can't raise ambient capability CAP_NET_RAW: operation not permitted"
time="2025-12-22T16:15:15+08:00" level=warning msg="can't raise ambient capability CAP_SETFCAP: operation not permitted"
time="2025-12-22T16:15:15+08:00" level=warning msg="can't raise ambient capability CAP_SETGID: operation not permitted"
time="2025-12-22T16:15:15+08:00" level=warning msg="can't raise ambient capability CAP_SETPCAP: operation not permitted"
time="2025-12-22T16:15:15+08:00" level=warning msg="can't raise ambient capability CAP_SETUID: operation not permitted"
time="2025-12-22T16:15:15+08:00" level=warning msg="can't raise ambient capability CAP_SYS_CHROOT: operation not permitted"
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Could not find a version that satisfies the requirement agentscope (from versions: none)
ERROR: No matching distribution found for agentscope
Error: building at STEP "RUN if [ -f requirements.txt ]; then pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple; fi": while running runtime: exit status 1
```
## Affected Component
- [x] Engine
- [ ] Sandbox
- [ ] Tools
- [ ] Common
- [ ] Documentation
- [ ] Other:___________
## Reproduction Steps
1. Your code: [paste code here]
2. How to run: [command used]
3. Error occurs at: [describe when]
## Expected vs Actual Behavior
**Expected:** [what should happen]
**Actual:** [what actually happened]
## Error Messages
[Paste full error messages/stack traces]
## Environment
- **AgentScope Runtime Version:** [e.g. v0.1.0]
- **Python Version:** [e.g. 3.10]
- **OS:** [e.g. Ubuntu 20.04]
- **Installation:** [pip/source]
## Additional Context
[Any other relevant information]
貢獻指南
評估
這個 Issue 還沒有評估資料。