Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
pyacl构建报错,问题出在himpi_venc.cpp: error出现'PyErr_ValueError' was not declared in this scope错误,导致构建失败。
在 python/pyACL/himpi/himpi_venc.cpp 的 GetVencJpegHuffmanParamFromPydict 函数中,将参数校验时抛出错误的异常类型。应修正为 PyExc_TypeError,使 dc_tables、ac_tables 参数缺失或类型不正确时抛出更符合语义的 TypeError。
Environment / 环境信息 (Mandatory / 必填)
不涉及
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
拉取pyacl代码进行构建重现
Describe the expected behavior / 预期结果 (Mandatory / 必填)
Thanks for sending an issue! Please fill in the following template to help quickly solve your problem.
Describe the current behavior / 问题描述 (Mandatory / 必填)
pyacl构建报错,问题出在himpi_venc.cpp: error出现'PyErr_ValueError' was not declared in this scope错误,导致构建失败。
在 python/pyACL/himpi/himpi_venc.cpp 的 GetVencJpegHuffmanParamFromPydict 函数中,将参数校验时抛出错误的异常类型。应修正为 PyExc_TypeError,使 dc_tables、ac_tables 参数缺失或类型不正确时抛出更符合语义的 TypeError。
Environment / 环境信息 (Mandatory / 必填)
不涉及
Steps to reproduce the issue / 重现步骤 (Mandatory / 必填)
拉取pyacl代码进行构建重现
Describe the expected behavior / 预期结果 (Mandatory / 必填)
在himpi_vnc.cpp中1217行和1226行两处PyErr_ValueError应修改为PyExc_TypeError。
Related log / screenshot / 日志 / 截图 (Mandatory / 必填)
不涉及
Special notes for this issue/备注 (Optional / 选填)