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

pivy: SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats #2150

Closed
looooo opened this issue Jan 19, 2022 · 4 comments
Closed

Comments

@looooo
Copy link

looooo commented Jan 19, 2022

Not sure if this is an issue with swig, but with python3.10 I must define PY_SSIZE_T_CLEAN before including Python.h. Is there a way to do this with swig?

ref.: coin3d/pivy#88

@wsfulton
Copy link
Member

%begin %{
#define PY_SSIZE_T_CLEAN
%}

@looooo
Copy link
Author

looooo commented Jan 20, 2022

Thanks

@hramrach
Copy link
Contributor

Can this be generated automagically by swig?

This is required on this python version, generating code without the define is broken.

@wsfulton
Copy link
Member

It is for swig-4.1.0, see abc8e0b and issue #2277.

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

3 participants