PanicException:加密包的 Python API 调用失败

问题描述 投票:0回答:1

我正在 Jenkins 中使用 moto 运行 Python 单元测试来模拟 SSM 参数。它们工作得很好,直到今天我升级了 Python 版本(3.9.8 -> 3.9.15),并在收集测试会话项目时在 Jenkins 中遇到了错误:

    from cryptography.hazmat.binding._rust import exceptions as rust_exceptions
    pyo3_runtime.PanicException: Python API call failed

构建在本地运行得很好,但在 Jenkins 中崩溃了。我已经回滚到以前的软件包版本,但它仍然存在。我将其与上次成功构建进行了比较,Moto、Crypography、Boto 版本是相同的。在这一点上,我真的已经没有可能的选择了,因为看起来 Jenkins 目前失败的版本和昨天成功的版本之间几乎没有区别。感谢您的帮助!

jenkins cryptography moto
1个回答
0
投票

安装cffi:

pip install cffi --upgrade
© www.soinside.com 2019 - 2024. All rights reserved.