LittleFS - Fatal Python error: initfsencoding: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' #3078
Replies: 5 comments 1 reply
-
If you are using the IDE then you do not need to install Python globally, it's part of the tools that are put into the core package directory (it's a portable, non-global version). If you are using Platform.IO then you need Python running just to run that wrapper and again, nothing special to install here. The error looks like you have an old core version where the Windows uninstall wasn't done right on an upgrade. Remove it from the IDE, exit the IDE and log out (to ensure no hanging processes left) and log back in and install the latest version. #2853 basically rewrote part of the core to work around the IDE/Windows issue. 4.5.1 or later has that patch. |
Beta Was this translation helpful? Give feedback.
-
Hi Thank you for you quick response Fatal Python error: initfsencoding: unable to load the file system codec Current thread 0x00003770 (most recent call first): Compilation error: exit status 0xc0000409 |
Beta Was this translation helpful? Give feedback.
-
The error at compile time was because I selected the MBed Core (note Mbed LittleFS works fine) |
Beta Was this translation helpful? Give feedback.
-
LittleFS Filesystem Uploader v1.1.8 -- https://github.com/earlephilhower/arduino-littlefs-upload Sketch Path: C:\Users\sjgco\AppData\Local\Temp.arduinoIDE-unsaved2025716-12904-cnnq2r.ev88\FSUpload Building LittleFS filesystem Uploading LittleFS filesystem Current thread 0x00002914 (most recent call first): |
Beta Was this translation helpful? Give feedback.
-
That worked ! Many thanks for your help |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I would appreciate some help with this.
I installed python 3.13 with the setting set path and removed and reinstalled the arduino-pico core
path = C:\Users\sjgco\AppData\Local\Programs\Python\Python313
I also tried setting PYTHONHOME and PYTHOMPATH to the same but with no change in the error
I can start python from the command line
C:\Users\sjgco>python
Python 3.13.7 (tags/v3.13.7:bcee1c3, Aug 14 2025, 14:15:11) [MSC v.1944 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
The arduino-core install... (Arduino IDE 2.3.6)
Installing rp2040:[email protected]
Configuring tool.
rp2040:[email protected] installed
Installing rp2040:[email protected]
Configuring tool.
rp2040:[email protected] installed
Installing rp2040:[email protected]
Configuring tool.
rp2040:[email protected] installed
Installing rp2040:[email protected]
Configuring tool.
rp2040:[email protected] installed
Installing rp2040:[email protected]
Configuring tool.
rp2040:[email protected] installed
Installing rp2040:[email protected]
Configuring tool.
rp2040:[email protected] installed
Installing rp2040:[email protected]
Configuring tool.
rp2040:[email protected] installed
Installing platform rp2040:[email protected]
Configuring platform.
Platform rp2040:[email protected] installed
Where does arduino IDE and or LittleFS look to find python.
.
Thank you for any assistancein resolving this
Steve
Beta Was this translation helpful? Give feedback.
All reactions