已关闭
[Bug-Report|缺陷反馈]: pyacl构建错误 #976
wuqifan创建于  16 天前关闭于  16 天前
wuqifan
wuqifan
16 天前 创建

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。

不涉及

Special notes for this issue/备注 (Optional / 选填)

likedislike
wuqifan
wuqifan
16 天前 评论:

/assign

likedislike
CANN-robotCANN-robot成员
16 天前 将 weixin_46600764 设为负责人
wuqifanwuqifan
16 天前 关联了pull request:【PR】【fix】:修复pyacl构建错误
wuqifanwuqifan
16 天前 修改了issue 的描述
CANN-robotCANN-robot成员
16 天前 关闭了 issue
CANN-robotCANN-robot成员
16 天前 添加了label:resolved