Merged
【PR】【fix】:修复pyacl构建错误 #4924
wuqifanAdd on Sep 14
【PR】【fix】:修复pyacl构建错误 #4924
Merged
Merged fromweixin_46600764/runtimemasterintocann/runtimemaster
Pull Request has been successfully merged by CANN-robot.
(Thank you for wuqifan's contribution.)Sep 14 Added label: enhancement
Sep 14 Associated issue: [Bug-Report|缺陷反馈]: pyacl构建错误
atomgit-bot
Sep 14 Comments:
Sep 14 Comments:
变更摘要
本次 PR 是一个 Bug 修复,目的是修复 pyacl 的构建错误:在 python/pyACL/himpi/himpi_venc.cpp 的 GetVencJpegHuffmanParamFromPydict 函数中,将参数校验时抛出的异常类型从 PyErr_ValueError 修正为 PyExc_TypeError,使 dc_tables、ac_tables 参数缺失或类型不正确时抛出更符合语义的 TypeError。
主要改动
dc_tables参数校验异常类型修正: 在GetVencJpegHuffmanParamFromPydict中,当dc_tables缺失或非 list 时,CHECK_BOOL抛出的异常类型由PyErr_ValueError改为PyExc_TypeErrorac_tables参数校验异常类型修正: 同理,当ac_tables缺失或非 list 时,异常类型由PyErr_ValueError改为PyExc_TypeError,修复pyacl的构建错误


Incorrect?
atomgit-bot
Sep 14 Comments:
Sep 14 Comments:
Sep 14 Added label: cann-cla/yes
CANN-robot
Sep 14 Comments:
Sep 14 Comments:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/runtime | ✅ 王涛, 卢煜坤 (2/2) | ✅ 王涛, 卢煜坤 (2/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)


CANN-robot
Sep 14 Comments:
Sep 14 Comments:
Sep 14 Set wangtao43,zhangpengpeng8,yanmingxiang,Reyn52166,ykl999,houyanbao,tingwood as approver
Sep 14 Set wangtao43,zhangpengpeng8,yanmingxiang,Reyn52166,ykl999,houyanbao,tingwood as approver
Sep 14 Set wangtao43,zhangpengpeng8,yanmingxiang,Reyn52166,ykl999,houyanbao,tingwood as approver
Sep 14 Set wangtao43,zhangpengpeng8,yanmingxiang,Reyn52166,ykl999,houyanbao,tingwood as approver
wuqifan
Sep 14 Comments:
Sep 14 Comments:
/compile


Sep 14 Pre merge succeeded (commit_id: e8b5ffcdb350740b5a54c9c33102817ffa9551d8)
CANN-robot
Sep 14 Comments:
Sep 14 Comments:
| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


Sep 14 Added label: ci-pipeline-running
Sep 14 Removed label: ci-pipeline-running
Sep 14 Added label: ci-pipeline-passed
ykl999
Sep 14 Comments:
Sep 14 Comments:
/approve
/lgtm


Sep 14 Added label: approved
wangtao
Sep 14 Comments:
Sep 14 Comments:
/approve


Sep 14 Added label: lgtm
Sep 14 Closed associated issue
Sep 14 Merged pull request
Pull Request
描述
请清晰准确地描述本次 Pull Request 的意图和变更内容。
修复pyacl构建错误,将PyErr_ValueError修改为PyExc_TypeError。
变更类型
请选择本次引入的变更类型:
关联的Issue
#976
如何测试
描述测试此变更的步骤和前提条件:
1.
2.
核对清单
其他信息
在此添加任何其他关于本次 PR 的说明。