google / google/visqol

Python binding incompatible with Protobuf 6.x

Open
#143 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
928
Forks
144
PR merge metrics
No merged PRs in 30d

Description

在使用 ViSQOL 时,当 protobuf 版本为 6.32.0 时会出现导入错误。错误发生在尝试导入和使用 visqol_lib_py时。经过测试,将 protobuf 降级到 5.28.3 版本可以解决这个问题。
When using ViSQOL, an import error occurs when the Protobuf version is 6.32.0. The error happens when attempting to import and use visqol_lib_py. Through testing, downgrading Protobuf to version 5.28.3 resolves the issue.
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[6], line 26
21 config.options.svr_model_path = os.path.join(
22 os.path.dirname(visqol_lib_py.__file__), "model", svr_model_path)
24 api = visqol_lib_py.VisqolApi()
---> 26 api.Create(config)

TypeError: Create(): incompatible function arguments. The following argument types are supported:
1. (self: visqol.visqol_lib_py.VisqolApi, arg0: Visqol::VisqolConfig) -> None

Invoked with: , audio {
sample_rate: 48000
}
options {
svr_model_path: "ENV/lib/python3.10/site-packages/visqol/model/libsvm_nu_svr_model.txt"
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.