Failed building wheel for uwsgi

Your exception explicitly says what’s wrong: gcc_version_components = gcc_version.split(‘.’) AttributeError: ‘NoneType’ object has no attribute ‘split’ and raise Exception(“you need a C compiler to build uWSGI”) Exception: you need a C compiler to build uWSGI So in general your system does not have c compiler installed (e.g. gcc). Try installing it. In Ubuntu it would … Read more

X-Forwarded-Proto and Flask

You are missing the ProxyFix() middleware component. See the Flask Proxy Setups documentation. There is no need to subclass anything; simply add this middleware component to your WSGI stack: # Werkzeug 0.15 and newer from werkzeug.middleware.proxy_fix import ProxyFix from flask import Flask app = Flask(__name__) app.wsgi_app = ProxyFix(app.wsgi_app, x_proto=1) If you have Flask installed, you … Read more

Gunicorn sends info message Handling signal: winch

A winch signal (or SIGWINCH, short for Signal Window Change) is normally sent to applications when the terminal window size changes, so that applications know to redraw on the screen. However, gunicorn interprets it to shutdown the worker processes, but only when the application is daemonized. Daemonized is just another way of saying an application … Read more

uwsgi IOError: write error

The problem is that clients abort the connection and then Nginx closes the connection without telling uwsgi to abort. Then when uwsgi comes back with the result the socket is already closed. Nginx writes a 499 error in the log and uwsgi throws a IOError. The non optimal solution is to tell Nginx not to … Read more

Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding, when trying to start uwsgi

I see your PYTHONHOME is set to PYTHONHOME = ‘/home/env3/educ’. Try to check if it is really there. The solution for me was to remove the PYTHONHOME environment variable. For you, it can be just that, or setting that variable to another value. This worked on Windows, and would work on Linux for sure. If … Read more

error code: 521