必须为'#&#x27定义uwsgi py_ssize_t_clean acro。格式

发布于 2025-02-03 01:57:47 字数 298 浏览 3 评论 0原文

我有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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

许久 2025-02-10 01:57:47

有一个合并的拉力请求,但包含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.

弱骨蛰伏 2025-02-10 01:57:47

另一个解决方案是直接使用redis,我决定使用redis

another solution is to use Redis directly, I decided to use Redis

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文