使用 uwsgi 和 pypy 进行示例测试应用程序时出现 AssertionError

使用 uwsgi 和 pypy 进行示例测试应用程序时出现 AssertionError

我正在尝试使用 uwsgi 和 pypy 运行示例 pypy 测试 hello world 应用程序。我尝试使用 pypy 插件 (使用python uwsgiconfig.py --plugin plugins/pypy) 和主目录中的 pypy 构建 uwsgi。

http://uwsgi-docs.readthedocs.org/en/latest/PyPy.html

但是,当我使用命令时

 ~/uwsgi-2.0.4/uwsgi --plugin ~/uwsgi-2.0.4/pypy --http-socket :9090 --pypy-home ~/pypy-2.2.1-linux64/ --pypy-wsgi uwsgi_pypy_test.wsgi --pypy-lib ~/uwsgi-2.0.4/plugins/pypy/libpypy-c-x86_64_20130524.so

它以OperationalErrorand退出AssertionError

*** Starting uWSGI 2.0.4 (64bit) on [Wed May  7 11:14:46 2014] ***
compiled with version: 4.6.3 on 01 May 2014 10:11:39
os: Linux-3.8.0-35-generic #52~precise1-Ubuntu SMP Thu Jan 30 17:24:40 UTC 2014
nodename: mcp03
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 8
current working directory: /var/www/pypytest/src
detected binary path: /home/alphad/uwsgi-2.0.4/uwsgi
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 128233
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to TCP address :9090 fd 3
debug: OperationError:
debug:  operror-type: AssertionError
debug:  operror-value:

uwsgi_pypy_test.wsgi

def application(e, sr):
    sr('200 Ok', [('Content-Type', 'text/html')])
    return "ciao"

有人让 pypy 与 uwsgi 成功运行吗?我在这里尝试最基本的配置,我做错了什么?

相关内容