# Fatal Python error: init\_fs\_encoding: failed to get the Python codec of the filesystem encoding

**URL:** <https://discuss.python.org/t/fatal-python-error-init-fs-encoding-failed-to-get-the-python-codec-of-the-filesystem-encoding/3173>\
**Category:** Python Help\
**Created:** [February 11, 2020, 1:29pm UTC](https://discuss.python.org/t/fatal-python-error-init-fs-encoding-failed-to-get-the-python-codec-of-the-filesystem-encoding/3173 "2020-02-11T13:29:01Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![settermjd](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/settermjd/32/3381_2.png) [@settermjd](https://discuss.python.org/u/settermjd)\
**Post date:** [January 29, 2021, 6:08pm UTC](https://discuss.python.org/t/fatal-python-error-init-fs-encoding-failed-to-get-the-python-codec-of-the-filesystem-encoding/3173/7 "2021-01-29T18:08:10Z")

</div>

This was the case for me when I set it in my .vimrc file. Thanks for the fix.

---

_[View the full topic](https://discuss.python.org/t/fatal-python-error-init-fs-encoding-failed-to-get-the-python-codec-of-the-filesystem-encoding/3173)._
