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

运行报错了PY_SSIZE_T_CLEAN macro must be defined for '#' formats #16

Open
410463305 opened this issue Nov 7, 2023 · 0 comments
Open

Comments

@410463305
Copy link

11月3号还能用,4号报错了
main.py运行直接报错,login.py输入短信验证码后报错
PRIVATE_AES_KEY配置了环境变量,后来改明文试过也是同样的报错
已尝试重新拉库,重新配置,依旧报错

报错内容:
Traceback (most recent call last):
File "/ql/data/scripts/397179459_iMaoTai-reserve/iMaoTai-reserve/login.py", line 70, in
encrypt_mobile = privateCrypt.encrypt_aes_ecb(mobile, aes_key)
File "/ql/data/scripts/397179459_iMaoTai-reserve/iMaoTai-reserve/privateCrypt.py", line 29, in encrypt_aes_ecb
cipher = AES.new(key, AES.MODE_ECB)
File "/usr/local/lib/python3.10/site-packages/Crypto/Cipher/AES.py", line 95, in new
return AESCipher(key, *args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/Crypto/Cipher/AES.py", line 59, in init
blockalgo.BlockAlgo.init(self, _AES, key, *args, **kwargs)
File "/usr/local/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

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

1 participant