nvidia-riva-client 2.25.1: missing `protobuf` dependency causes import-time failure
还没有人认领这个 Issue。
评估
调研方向
首先定位定义安装要求的软件包元数据,然后运行 issue 中的 pip 安装和 import 命令以重现失败。更新依赖声明,使兼容的 protobuf 版本在安装前被选中,并确认重现时不再在 import 阶段失败。
由索引模型根据 Issue 内容生成。
描述
Summary
v2.25.1 wheel ships _pb2.py files compiled with protoc 6.31.1, but does not declare protobuf as a dependency. pip can
install the package alongside an incompatible protobuf runtime, and the failure surfaces only at import.
Adding protobuf>=6.31.1,<7 to install requirements would let the resolver catch this before installation.
Repro
Run:
pip install "protobuf~=5.29.6" "nvidia-riva-client==2.25.1"
python -c "import riva.client"
Produces an error:
google.protobuf.runtime_version.VersionError: Detected incompatible Protobuf Gencode/Runtime versions when loading riva/proto/riva_asr.proto: gencode 6.31.1 runtime 5.29.6.
- 主要语言
- Python
- 星标
- 142
- 派生
- 52
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nvidia-riva/python-clients 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 45/100
nvidia-riva/python-clients#145 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
nvidia-riva/python-clients#110 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
nvidia-riva/python-clients#100 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 15/100
-
难度 4/5 3-5 天 新手友好度 25/100
nvidia-riva/python-clients#93 · 1 个 reaction ·
查看 nvidia-riva/python-clients 的全部 Issue
相似的 Issue
-
json_params_matcher fails on falsy top-level JSON primitives (0, False, "")可能已有人在做 @mayureshsonawane17 今天认领。 未关闭Waiting for: Product Owner
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
bojieli/ai-agent-book#1169 ·
维护者通常 1 天内回复
-
priority:low ready-for-dev
难度 2/5 1-3 小时 新手友好度 78/100
OpenHands/extensions#738 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
micronaut-projects/micronaut-core#13677 ·
维护者通常 1 天内回复