Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fatal Error in Python
#1
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.
Reply
#2
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.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
Are you using cx_Freeze?
https://github.com/anthony-tuininga/cx_F...issues/399
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#4
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.
Reply
#5
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.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#6
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?
Reply
#7
more Evidence.

İmage
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Handling Python Fatal Error richajain1785 7 5,759 Oct-14-2021, 01:34 PM
Last Post: Tails86
  Fatal error after trying to play sound. giladal 0 1,897 Oct-22-2020, 10:27 AM
Last Post: giladal
  Fatal python error, need help ryanmagid 0 2,333 Aug-09-2020, 05:51 PM
Last Post: ryanmagid
  appear fatal error popup for Python 2.7, what to do to Not appear again...? lsepolis123 1 2,037 Mar-23-2020, 10:44 PM
Last Post: lsepolis123
  Windows fatal exception: access violation czhhua28 0 5,870 Mar-11-2020, 01:53 AM
Last Post: czhhua28
  Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesyste jiapei100 0 10,065 Feb-11-2020, 01:27 PM
Last Post: jiapei100
  Fatal error in launcher: Unable to create process using '"' rsmldmv 0 5,453 May-13-2019, 01:34 AM
Last Post: rsmldmv
  Fatal Python error: Py_Initialize: unable to load the file system codec ecg1g15 0 3,535 Feb-12-2019, 12:16 PM
Last Post: ecg1g15
  Fatal Python error: init_sys_streams: can't initialize sys standard streams Attribute FatalPythonError 24 57,316 Aug-22-2018, 06:10 PM
Last Post: FatalPythonError
  pip fatal error MikeALC 2 6,965 Mar-06-2018, 09:24 AM
Last Post: MikeALC

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020