Python Forum
Fatal Error in Python - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/Forum-Python-Coding)
+--- Forum: General Coding Help (https://python-forum.io/Forum-General-Coding-Help)
+--- Thread: Fatal Error in Python (/Thread-Fatal-Error-in-Python)



Fatal Error in Python - MrRobot - Feb-11-2019

I'm facing this problem for about 4 months I've searched everywhere but no solution.

Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00004e04 (most recent call first):

my Os is Windows 10

please give me any solution when I can't code anything it gives me that error. it happened after I installed another python 2 and I'm using python 3.

Thanks very much.


RE: Fatal Error in Python - buran - Feb-12-2019

Please, post your code (minimal, complete and verifiable example) in python tags. Post full traceback in error tags.
Tell us more where this encodings module is expected to come from.


RE: Fatal Error in Python - buran - Feb-12-2019

Are you using cx_Freeze?
https://github.com/anthony-tuininga/cx_Freeze/issues/399


RE: Fatal Error in Python - MrRobot - Feb-12-2019

I think it happened after I installed another version of python .. I am using python 3 and installed python 2 by accident. I am still a beginner so I code something like this.
import math
print(math.pi)
Radius = float(input("enter the radius"))
Area = round(math.pi,2)*math.pow(Radius,2)
print("Area =",Area)
I don't know what is cx_freeze.


RE: Fatal Error in Python - buran - Feb-13-2019

I am puzzled and have no idea what may cause this problem.
cx_Freeze is a set of scripts and modules for freezing Python scripts into executables.


RE: Fatal Error in Python - MrRobot - Feb-13-2019

I don't know either, but is there anything that I can do to make all those things return back to its original? like a checkpoint or something, is this error related to system variables?


RE: Fatal Error in Python - MrRobot - Feb-14-2019

more Evidence.

─░mage