[uWSGI] Is Python 3.5 supported?

Lele Gaifax lele at metapensiero.it
Sun Sep 27 23:50:23 CEST 2015

Hi all,

I have a very simple Flask application exposed to nginx thru uwsgi.
It works great up to Python 3.4, but with Python 3.5 I get this error:

    ERROR:raccoon.thumbnailer:Exception on /adapt [GET]
    io.UnsupportedOperation: fileno

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1817, in wsgi_app
        response = self.full_dispatch_request()
      File "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1477, in full_dispatch_request
        rv = self.handle_user_exception(e)
      File "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1381, in handle_user_exception
        reraise(exc_type, exc_value, tb)
      File "/usr/local/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
        raise value
      File "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1475, in full_dispatch_request
        rv = self.dispatch_request()
      File "/usr/local/lib/python3.5/site-packages/flask/app.py", line 1461, in dispatch_request
        return self.view_functions[rule.endpoint](**req.view_args)
      File "/srv/app/src/raccoon/thumbnailer/__init__.py", line 88, in adapt_requested_image
        return send_file(f, mimetype='image/png')
      File "/usr/local/lib/python3.5/site-packages/flask/helpers.py", line 523, in send_file
        data = wrap_file(request.environ, file)
      File "/usr/local/lib/python3.5/site-packages/werkzeug/wsgi.py", line 716, in wrap_file
        return environ.get('wsgi.file_wrapper', FileWrapper)(file, buffer_size)
    SystemError: <built-in function uwsgi_sendfile> returned a result with an error set

Is it a known problem or some kind of fault of mine?

Thanks in advance,
bye, lele.
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at metapensiero.it  |                 -- Fortunato Depero, 1929.

More information about the uWSGI mailing list