Skip to content

Python binding incompatible with Protobuf 6.x #143

@buhaneryu

Description

@buhaneryu

在使用 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: <visqol.visqol_lib_py.VisqolApi object at 0x7fb4bc5bc5f0>, audio {
  sample_rate: 48000
}
options {
  svr_model_path: "ENV/lib/python3.10/site-packages/visqol/model/libsvm_nu_svr_model.txt"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions