{"action":"created","issue":{"url":"https://api.github.com/repos/unbit/uwsgi/issues/853","labels_url":"https://api.github.com/repos/unbit/uwsgi/issues/853/labels{/name}","comments_url":"https://api.github.com/repos/unbit/uwsgi/issues/853/comments","events_url":"https://api.github.com/repos/unbit/uwsgi/issues/853/events","html_url":"https://github.com/unbit/uwsgi/issues/853","id":58749020,"number":853,"title":"PyPy + Django + gevent loop engine","user":{"login":"dmk23","id":1828444,"avatar_url":"https://avatars.githubusercontent.com/u/1828444?v=3","gravatar_id":"","url":"https://api.github.com/users/dmk23","html_url":"https://github.com/dmk23","followers_url":"https://api.github.com/users/dmk23/followers","following_url":"https://api.github.com/users/dmk23/following{/other_user}","gists_url":"https://api.github.com/users/dmk23/gists{/gist_id}","starred_url":"https://api.github.com/users/dmk23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmk23/subscriptions","organizations_url":"https://api.github.com/users/dmk23/orgs","repos_url":"https://api.github.com/users/dmk23/repos","events_url":"https://api.github.com/users/dmk23/events{/privacy}","received_events_url":"https://api.github.com/users/dmk23/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-24T14:52:57Z","updated_at":"2015-02-25T05:34:43Z","closed_at":null,"body":"I am trying to deploy the configuration in the headline and having no luck.\r\n\r\nAs a starting point, I am using the working configuration on CPython and just replacing virtualenv with the one created under PyPy (with uWSGI executable installed via pip on that virtualenv)\r\n\r\nThis configuration fails in multiple ways, specifically:\r\n\r\n1. First of all gevent loop engine does not load and if strict = True logs ```[strict-mode] unknown config directive: gevent```. I was expecting gevent support to be built under pip\r\n\r\n2. With strict turned off, the Django app fails to load ```*** no app loaded. going in full dynamic mode ***``` . Here I was expecting for PyPy virtualenv to honor the same options as CPython\r\n\r\n3. I did look up the options for PyPy module and tried ```pypy-wsgi = django.core.handlers.wsgi:WSGIHandler()``` resulting in the following error:\r\n\r\n```\r\nFrom cffi callback <function uwsgi_pypy_loader at 0x00007f2f93ad6f98>:\r\nTraceback (most recent call last):\r\n  File \"c callback\", line 304, in uwsgi_pypy_loader\r\nAttributeError: 'module' object has no attribute 'WSGIHandler()'\r\n*** no app loaded. going in full dynamic mode ***\r\n```\r\n\r\nAt this point I am not quite sure how to proceed. I find it counter-intuitive that it is not possible to simply swap the virtualenv and preserve the same options and behaviors.\r\n\r\nIn any case would appreciate help figuring out the proper configuration. At the moment the docs are silent on compatibility of PyPy with Django, Gevent or any other plugins / apps."},"comment":{"url":"https://api.github.com/repos/unbit/uwsgi/issues/comments/75908291","html_url":"https://github.com/unbit/uwsgi/issues/853#issuecomment-75908291","issue_url":"https://api.github.com/repos/unbit/uwsgi/issues/853","id":75908291,"user":{"login":"unbit","id":254469,"avatar_url":"https://avatars.githubusercontent.com/u/254469?v=3","gravatar_id":"","url":"https://api.github.com/users/unbit","html_url":"https://github.com/unbit","followers_url":"https://api.github.com/users/unbit/followers","following_url":"https://api.github.com/users/unbit/following{/other_user}","gists_url":"https://api.github.com/users/unbit/gists{/gist_id}","starred_url":"https://api.github.com/users/unbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unbit/subscriptions","organizations_url":"https://api.github.com/users/unbit/orgs","repos_url":"https://api.github.com/users/unbit/repos","events_url":"https://api.github.com/users/unbit/events{/privacy}","received_events_url":"https://api.github.com/users/unbit/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T05:34:43Z","updated_at":"2015-02-25T05:34:43Z","body":"Gevent under pypy is still an experimental effort (you need a special almost-working branch of gevent for it)\r\n\r\nThe PyPy plugin has no explicit support for virtualenv, but PEP405 should work\r\n\r\nThe colon-based form is not supported for pypy-wsgi, just use pypy-wsgi-file with wsgi.py"}}