-
Notifications
You must be signed in to change notification settings - Fork 21
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
In Python 3.10, PY_SSIZE_T_CLEAN must be defined before including Python.h #44
Comments
Also have some deprecated C-API functions to update in miltermodule.c |
Is this commit sufficient for getting dkimpy-milter back up? or, Release needed here? are the "deprecated C-API functions" just cleanup? Or req'd for 3.10 usage? |
The deprecated C-API functions are cleanup - they will disappear in some future Python release. |
+1
& here,
does the trick. outbound dkim signing by dkimpy-milter, with python 3.10, working as expected. thx o/ |
What do you regard a "fix for #12" ? Go with the current api? |
Have these now-releaed fixes made their way into dkimpy/dkimpy-milter releaes? Or still not sufficient? On
still seeing pymilter v1.0.4 |
I have not had time to work on updates based on the new API in 1.0.5. Pip isn't going to see 1.0.5 though until you upload it to pip (or give me permissions to). |
Trying to get upload to work. They can't make up their mind what the markup format is. What is it supposed to be these days? The check tool says it is invalid, but gives no clues as to the target. |
Currently complaining: line 129: Error: Unexpected indentation. |
Released on PyPi - docs formatting improved over 1.0.4 but still messed up. |
Issue was reported against dkimpy-milter, but I think this is in pymilter:
2021-11-02T15:56:39.946644-04:00 mx dkimpy-milter[30551]: SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
2021-11-02T15:56:39.946668-04:00 mx dkimpy-milter[30551]: SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
2021-11-02T15:56:39.946688-04:00 mx dkimpy-milter[30551]: dkimpy-filter: milter claimed not to reply in state 9 but did anyway 4
noting
Python 3.10: SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats
https://gitlab.gnome.org/GNOME/libxml2/-/issues/203
Parsing arguments and building values
https://docs.python.org/3/c-api/arg.html
"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."
See https://bugs.launchpad.net/dkimpy-milter/+bug/1949520 for details.
The text was updated successfully, but these errors were encountered: