Merged
【PR】【fix】:修复pyacl构建错误 #4924
wuqifanAdd on Sep 14
【PR】【fix】:修复pyacl构建错误 #4924
Merged
wuqifanAdd on Sep 14
wuqifan
wuqifan
Sep 14

Pull Request

描述

请清晰准确地描述本次 Pull Request 的意图和变更内容。
修复pyacl构建错误,将PyErr_ValueError修改为PyExc_TypeError。

变更类型

请选择本次引入的变更类型:

关联的Issue

#976

如何测试

描述测试此变更的步骤和前提条件:
1.
2.

核对清单

其他信息

在此添加任何其他关于本次 PR 的说明。

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for wuqifan's contribution.)
wuqifanwuqifan
Sep 14 Added label: enhancement
wuqifanwuqifan
Sep 14 Created pull request, commit 9228ee4a
wuqifanwuqifan
Sep 14 Associated issue: [Bug-Report|缺陷反馈]: pyacl构建错误
atomgit-bot
atomgit-bot
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_TypeError
  • ac_tables 参数校验异常类型修正: 同理,当 ac_tables 缺失或非 list 时,异常类型由 PyErr_ValueError 改为 PyExc_TypeError,修复 pyacl 的构建错误
likedislike
Incorrect?
atomgit-bot
atomgit-bot
Sep 14 Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
CANN-robotCANN-robotCollaborators
Sep 14 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
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 /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)
likedislike
CANN-robot
CANN-robotCollaborators
Sep 14 Comments:

CLA Signature Pass

weixin_46600764, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robotCANN-robotCollaborators
Sep 14 Set wangtao43,zhangpengpeng8,yanmingxiang,Reyn52166,ykl999,houyanbao,tingwood as approver
CANN-robotCANN-robotCollaborators
Sep 14 Set wangtao43,zhangpengpeng8,yanmingxiang,Reyn52166,ykl999,houyanbao,tingwood as approver
wuqifan
wuqifan
Sep 14 Comments:

/compile

likedislike
wuqifanwuqifan
Sep 14 Pre merge succeeded (commit_id: e8b5ffcdb350740b5a54c9c33102817ffa9551d8)
CANN-robot
CANN-robotCollaborators
Sep 14 Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
Sep 14 Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Sep 14 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Sep 14 Added label: ci-pipeline-passed
ykl999
ykl999Collaborators
Sep 14 Comments:

/approve
/lgtm

likedislike
CANN-robotCANN-robotCollaborators
Sep 14 Added label: approved
wangtao
wangtaoCollaborators
Sep 14 Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
Sep 14 Added label: lgtm
CANN-robotCANN-robotCollaborators
Sep 14 Closed associated issue
CANN-robotCANN-robotCollaborators
Sep 14 Merged pull request