Li4n0 / hugo_encryptor

A tools for encrypting hugo posts
155 stars 28 forks source link

SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats #24

Open waynia opened 2 years ago

waynia commented 2 years ago

Hello, when I used your package to encrypt my hugo blog, the console threw out an error that wrote "SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats". I found that this may be related to the version of Python. Is there any way to patch this ?

Thanks!

zerofancy commented 1 year ago

You may replace pycrypto with pycryptodome in requirements.txt. https://stackoverflow.com/questions/70705404/systemerror-py-ssize-t-clean-macro-must-be-defined-for-formats