成功解决 Jenkins打开CANoe报错 pywintypes.com_error: (-2147024882, ‘Not enough memory resources...‘)

解决问题

我们在使用Jenkins去打开CANoe的工程时,报了下面的错误:

pywintypes.com_error: (-2147024882, 'Not enough memory resources...')

解决思路

我们尝试打开CANoe的账号没有权限。

解决方法

1.在Windows 11中,在下方的Serch中搜索"Component Services":

2.依次寻找Component Services -> Computers -> My Computer -> DCOM Config -> Vector CANoe Application

右键"Vector CANoe Application",选择"Security"

然后,依次将我们需要添加的账户添加到"Launch and Activation Permissions", "Access Permissions"和"Configuration Permissions"(通过"Customize" -> "Edit")。

3.重启电脑