I have uwsgi==2.0.20 and python[CPython 3.10.4]. And I can't execute the following code:
uwsgi.cache_get(key, 'mycache')
Error:
PY_SSIZE_T_CLEAN macro must be defined for '#' formats.
Is there any way to fix this for myself by setting PY_SSIZE_T_CLEAN to a Dockerfile or something? Because in the latest version of uwsgi it is not fixed yet, as I understand it.
There is a merged pull request, but the new version containing that fix isn't released yet. What we ended up doing in our company is using the source code from the development branch. You can install it from GitHub using pip. Though it isn't the best idea to have a dependency from a development version of a package.