【问题标题】:Libfreenect macOS Big Sur Python 3.9.7 - Failing to build wrappersLibfreenect macOS Big Sur Python 3.9.7 - 无法构建包装器
【发布时间】:2021-12-16 10:04:04
【问题描述】:

我尝试使用 python3 setup.py install 但这发生在 ubuntu 上它运行良好...


freenect.c:8444:134: warning: code will never be executed [-Wunreachable-code]
...__pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 794; __pyx...
^~~~~~~
freenect.c:10210:31: error: no member named 'tp_print' in 'struct _typeobject'
__pyx_type_8freenect_CtxPtr.tp_print = 0;
freenect.c:11450:22: warning: '_PyUnicode_get_wstr_length' is deprecated [-Wdeprecated-declarations]
                  (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :

【问题讨论】:

  • 你有想过这个吗?

标签: python-3.x macos


【解决方案1】:

这在其他一些地方有所暗示,但万一有人遇到这种将 Python 降级到 3.8 的情况为我解决了这个问题。

这似乎是由 Cython 兼容性问题引起的。也许这对于 Cython 3.0+ 来说不是问题,但目前这适用于我的 Intel OS X Monterey 安装。

【讨论】:

    猜你喜欢
    • 2022-10-02
    • 2021-06-08
    • 2021-03-01
    • 2021-09-04
    • 2021-11-26
    • 1970-01-01
    • 2021-11-21
    • 2021-02-27
    • 2021-07-20
    相关资源
    最近更新 更多