【问题标题】:rpy2 through WSGI on Apache yields a subinterpreter errorrpy2 通过 Apache 上的 WSGI 产生子解释器错误
【发布时间】:2020-04-05 19:52:06
【问题描述】:

使用 R3.6 和 python 3.6.9,我可以从命令行运行它,但通过 WSGI 和 Apache 调用,我的请求永远不会返回,并且我在 Apache 徽标中看到以下错误:

extern "Python": function _rinterface_cffi_api._processevents() called, but @ffi.def_extern() was not called in the current subinterpreter.  Returning 0.

你有什么想法吗?

【问题讨论】:

    标签: python rpy2


    【解决方案1】:

    如果有人遇到过类似的经历,使用 RPY2_CFFI_MODE=ABI python setup.py build 从源代码编译 rpy2 (3.2.7) 似乎可以解决问题。不知道为什么。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-06-14
    • 1970-01-01
    • 2010-11-23
    • 2011-03-12
    • 2014-09-28
    • 2021-08-06
    • 2016-01-21
    • 2017-08-03
    相关资源
    最近更新 更多