Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

貌似Crypto有破坏性更新 #16

Open
frozonTzh opened this issue Jun 21, 2022 · 2 comments
Open

貌似Crypto有破坏性更新 #16

frozonTzh opened this issue Jun 21, 2022 · 2 comments

Comments

@frozonTzh
Copy link

报错日志

Traceback (most recent call last):
File "/run/media/frozon/manjaro home/frozon/下载/rime/ssfconv/./ssfconv", line 1211, in
exit(main(args))
File "/run/media/frozon/manjaro home/frozon/下载/rime/ssfconv/./ssfconv", line 1170, in main
extractSsf(args.src, dest_dir)
File "/run/media/frozon/manjaro home/frozon/下载/rime/ssfconv/./ssfconv", line 35, in extractSsf
ssfAES = AES.new(aesKey, AES.MODE_CBC, iv)
File "/run/media/frozon/manjaro home/frozon/下载/rime/ssfconv/venv/lib/python3.10/site-packages/Crypto/Cipher/AES.py", line 95, in new
return AESCipher(key, *args, **kwargs)
File "/run/media/frozon/manjaro home/frozon/下载/rime/ssfconv/venv/lib/python3.10/site-packages/Crypto/Cipher/AES.py", line 59, in init
blockalgo.BlockAlgo.init(self, _AES, key, *args, **kwargs)
File "/run/media/frozon/manjaro home/frozon/下载/rime/ssfconv/venv/lib/python3.10/site-packages/Crypto/Cipher/blockalgo.py", line 141, in init
self._cipher = factory.new(key, *args, **kwargs)
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

环境

python 版本

Python 3.10.5

pip list

numpy 1.22.4
Pillow 9.1.1
pip 22.0.4
pycrypto 2.6.1
setuptools 58.1.0

@frozonTzh
Copy link
Author

更换了Python 3.9.13问题就不存在了

@ydrk12
Copy link

ydrk12 commented Aug 10, 2023

我这边也是这个问题,使用的是python3.10,这应该是个值得注意的修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants