Hi,
I'm trying to port django-hotsauce to PyPy.
I'm getting an exception when I use Cython compiled under CPython:
DEBUG:Traceback (most recent call last):
File "lib/notmm/controllers/wsgi.pyx", line 206, in
notmm.controllers.wsgi.BaseController.get_response
(lib/notmm/controllers/wsgi.c:4174)
File
"/home/erob/src/django-hotsauce-pypy/lib/notmm/utils/django_compat.py",
line 230, in resolve
sub_match = pattern.resolve(new_path)
File
"/home/erob/src/django-hotsauce-pypy/lib/notmm/utils/django_compat.py",
line 155, in resolve
return (self.callback, args, kwargs)
File
"/home/erob/src/django-hotsauce-pypy/lib/notmm/utils/django_compat.py",
line 166, in _get_callback
raise ViewDoesNotExist, "Tried %s in module %s. Error was: %s" %
(func_name, mod_name, str(e))
ViewDoesNotExist: Tried index in module mainapp.research.views. Error
was: 'builtin-code' object has no attribute 'co_code'
Traceback (most recent call last):
File "/usr/lib/pypy/lib-python/2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File "/usr/lib/pypy/lib-python/2.7/wsgiref/validate.py", line 176, in
lint_app
iterator = application(environ, start_response_wrapper)
File
"/home/erob/src/django-hotsauce-oauthclient/lib/wsgi_oauth2/middleware.py",
line 292, in __call__
return self.application(environ, start_response)
File "lib/notmm/controllers/wsgi.pyx", line 136, in
notmm.controllers.wsgi.BaseController.__call__
(lib/notmm/controllers/wsgi.c:2842)
File "lib/notmm/controllers/wsgi.pyx", line 151, in
notmm.controllers.wsgi.BaseController.application
(lib/notmm/controllers/wsgi.c:3177)
AttributeError: 'builtin-code' object has no attribute 'co_code'
127.0.0.1 - - [12/Oct/2017 16:37:03] "GET / HTTP/1.1" 500 59
In wsgi.pyx:
with sessionmanager(environ):
request.environ.update(environ)
#assert request.environ['PATH_INFO'] == request.path_url
response = self.get_response(request=request)
return response(environ, start_response)
Any ideas why using a @contextmanager here yield this exception with
PyPy 5.6.0 and Cython 0.25.2 ?
Thank you in advance,
Etienne
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev