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 #2

Open
bjenmonk opened this issue Sep 23, 2022 · 0 comments
Open

PY_SSIZE_T_CLEAN macro must be defined for '#' formats #2

bjenmonk opened this issue Sep 23, 2022 · 0 comments

Comments

@bjenmonk
Copy link

On 3.10 any module(s) that use the # variant when parsing arguments need to have a #define PY_SSIZE_T_CLEAN before including Python.h.

From the docs:

For all # variants of formats (s#, y#, etc.), the macro PY_SSIZE_T_CLEAN must be defined before including Python.h. On Python 3.9 and older, the type of the length argument is Py_ssize_t if the PY_SSIZE_T_CLEAN macro is defined, or int otherwise.

Solution
pip uninstall pycrypto
pip install pycryptodome

Can you update the requirements.txt with pycryptodome

BTW, thanks for the package. Great Job.

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