必须为'#&#x27定义uwsgi py_ssize_t_clean acro。格式
我有uwsgi == 2.0.20和python [cpython 3.10.4]。而且我无法执行以下代码:
uwsgi.cache_get(key, 'mycache')
错误:
PY_SSIZE_T_CLEAN macro must be defined for '#' formats.
是否有任何方法可以通过将py_ssize_t_clean设置为dockerfile或其他东西来为自己解决? 因为在最新版本的UWSGI中,它尚未修复,据我了解。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有一个合并的拉力请求,但包含FIX的新版本未发布。然而。我们最终在公司中所做的是使用开发分支机构的源代码。您可以使用pip 安装。尽管从软件包的开发版本中获得依赖性并不是最好的主意。
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.
另一个解决方案是直接使用redis,我决定使用redis
another solution is to use Redis directly, I decided to use Redis