Werkzeug raises BrokenFilesystemWarning Werkzeug raises BrokenFilesystemWarning flask flask

Werkzeug raises BrokenFilesystemWarning


This is not a critical error, just a warning that Werkzeug couldn't detect a good locale and so is using UTF-8 instead. This guess is probably correct.

See this Arch Linux wiki article for how to set up the locale correctly. It mentions that Python may see the ANSI_X3.4-1968 encoding even if the locale is properly configured, if you are running from certain environments such as Vim.

When executing :!python -c "import sys; print(sys.stdout.encoding)" in ViM, the output may be ANSI_X3.4-1968, even if the locale is set correctly everyhere. Set the PYTHONIOENCODING environment variable to utf-8 to remedy the situation.


I saw this error too. After digging the code, I saw that this error is harmless and just a warning in /usr/local/lib/python2.7/dist-packages/werkzeug/filesystem.py:

        warnings.warn(            'Detected a misconfigured UNIX filesystem: Will use UTF-8 as '            'filesystem encoding instead of {0!r}'.format(rv),            BrokenFilesystemWarning)

So, I would not worry about this warning.