#1578·guardrails

[错误]

作者: athmedata创建于 2026年7月15日更新于 2026年9月22日
标签bugStale

描述错误

guardrails hub install hub://guardrails/secrets_present 在我们的 Docker 构建中始终失败,其中包含:

ERROR:guardrails-cli:Failed to install guardrails-grhub-secrets-present
Exit code: 1
stderr: ERROR: Could not find a version that satisfies the requirement guardrails-grhub-secrets-present (from versions: none)
ERROR: No matching distribution found for guardrails-grhub-secrets-present
stdout: Looking in indexes: https://__token__:****@pypi.guardrailsai.com/simple, https://pypi.org/simple

我们将此问题归结为私有包索引本身 - 直接查询它会返回一个内部服务器错误:

bash
curl -s -u __token__:$GUARDRAILS_TOKEN https://pypi.guardrailsai.com/simple/guardrails-grhub-secrets-present/
{"message":"Internal Server Error"}

验证器的 hub 页面 (https://guardrailsai.com/hub/validator/guardrails/secrets_present) 加载正常,并列出了我们正在使用的安装命令,因此这似乎不是重命名或已过时的包 - 私有 PyPI 样式索引 (pypi.guardrailsai.com) 为该包的 /simple/ 端点返回 500。

内容来源: guardrails-ai/guardrails