How's it going guys,
Getting an error when attempting to send_file a generated xlsx from xlsxwriter through BytesIO
io.UnsupportedOperation: fileno
SystemError: <built-in function uwsgi_sendfile> returned a result with an error set
Did some digging and found some information on the issue:
https://github.com/unbit/uwsgi/issues/1126
https://github.com/jessicabp/CapstoneServer/issues/24
http://beenje.github.io/blog/posts/uwsgi-send_file-and-python35/
Adding the wsgi-disable-file-wrapper = true flag to the uwsgi.ini file seems to be the fix that has been proposed from what I have read.
Is it possible to add flags to the uswgi config through wsgi.py or any other means or should I just rewrite the app to output to csv ?