NagaAgent icon indicating copy to clipboard operation
NagaAgent copied to clipboard

一键配置脚本存在依赖链断裂问题。

Open kirkchinese opened this issue 1 year ago • 2 comments

问题描述:当用户采用python3.8.9等大于3.8但版本较低的python时,一键配置脚本存在依赖链断裂的问题。 表征: No solution found when resolving dependencies for split (python_full_version == '3.9.*'): -> Because the requested Python version (>=3.8) does not satisfy Python>=3.10 and mcp>=1.6.0 depends on Python>=3.10, we can conclude that mcp>=1.6.0 cannot be used. And because only the following versions of mcp are available: mcp<=1.6.0 mcp==1.7.0 mcp==1.7.1 mcp==1.8.0 mcp==1.8.1 mcp==1.9.0 mcp==1.9.1 mcp==1.9.2 mcp==1.9.3 mcp==1.9.4 mcp==1.10.0 mcp==1.10.1 mcp==1.11.0 mcp==1.12.0 we can conclude that mcp>=1.6.0 cannot be used. And because your project depends on mcp>=1.6.0 and your project requires nagaagent[audio], we can conclude that your project's requirements are unsatisfiable.  hint: The requires-pythonvalue (>=3.8) includes Python versions that are not supported by your dependencies (e.g., mcp>=1.6.0 only supports >=3.10). Consider using a more restrictiverequires-pythonvalue (like >=3.10).  hint: While the active Python version is 3.13, the resolution failed for other Python versions supported by your project. Consider limiting your project's supported Python versions usingrequires-python`. Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple 原因分析: 1.项目声明:支持 Python >=3.8(如 pyproject.toml 中的 requires-python = ">=3.8")。 2.依赖项要求:包 mcp>=1.6.0 要求 Python >=3.10。 3. 冲突结果: 当 Python 版本为 3.8 或 3.9 时,无法安装 mcp>=1.6.0。 而项目依赖 nagaagent[audio],它又依赖 mcp>=1.6.0,这导致依赖链断裂。

尝试我的解决方法是: 修改脚本依赖setup.psl 第四行 $pythonMinVersion = "3.8"为$pythonMinVersion = "3.10" 修改项目元数据文件pyproject.toml 第九行 requires-python = ">=3.8" 修改为 requires-python = ">=3.10"

结果: 成功

kirkchinese avatar Jul 22 '25 04:07 kirkchinese

啊哈我用uv是也遇到了这个问题,我在issue中亦提及过此问题

acgurl avatar Jul 22 '25 06:07 acgurl

收到

RTGS2017 avatar Jul 22 '25 11:07 RTGS2017