-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal Python Error when using any ESP8266 board with Arduino IDE. #8096
Comments
Can you please describe your system in more detail, @saintofinternet ? We need to be able to reproduce the failure to do anything here, and this is not an issue we've seen on the Windows CI VMs or most other users' Windows installs. What Windows version? Which IDE version and how installed (MS Store, download, standalone)? Running as an admin or unpriv. user? Is Python installed already? How installed (Store, Python.org download, etc.)? Is that Python in your default path? Also, to capture all your environment variables, can you run a |
tried all options but Arduino IDE is still failing. it keeps going to \AppData\Local\Arduino15\packages\esp8266\tools\python3\3.7.2-post1/python3 and gives the following error Fatal Python error: initfsencoding: unable to load the file system codec Current thread 0x00000fec (most recent call first): I have Python 3.8 installed on my Windows 7 machine and the path has been added to the environment variables. Python can be executed from command prompt through any folder or directly without issues. Only Arduino IDE is unable to use Python for itself. I also can't understand how to change the path of Python which is used by Arduino IDE when compiling. I think I will have to stop using Arduino IDE permanently. I have now shifted to Visual Studio Code and it's working fine on VS Code |
No MCVE/script and nonreproducible given the limited info present. If someone has the same problem and can give the add'l requested info, we can look at it. Until then, closing. |
When Python is installed on Windows separately (i.e. Windows Store, Python.org MSI, etc.) it set the PYTHONHOME environment variable to the installed path. When we call our own portable Python, it tries to use the support PYC files in PYTHONHOME. If they're from a different version of Python, however, they won't work. Even though we're running our own distributed Python.exe, we are crashing on the system-wide Python installation. Add -I to all python3 calls, ignore PYTHONHOME/etc. environment vars. Tested under Ubuntu 18.04 Linux w/o any ill effects (we ship pyserial ourselves and add it manually to the Python search path). Fixes esp8266#8096, or should as I understand it.
When Python is installed on Windows separately (i.e. Windows Store, Python.org MSI, etc.) it set the PYTHONHOME environment variable to the installed path. When we call our own portable Python, it tries to use the support PYC files in PYTHONHOME. If they're from a different version of Python, however, they won't work. Even though we're running our own distributed Python.exe, we are crashing on the system-wide Python installation. Add -I to all python3 calls, ignore PYTHONHOME/etc. environment vars. Tested under Ubuntu 18.04 Linux w/o any ill effects (we ship pyserial ourselves and add it manually to the Python search path). Fixes #8096, or should as I understand it.
Arduino 1.8.19 on Windows10. Compiling throws So I went to C:\Users\hase\AppData\Local\Arduino15\packages\rp2040\tools\pqt-python3\1.0.1-base-3a57aed/ in a Powershell and started the python3.exe in that directory manualls. Current thread 0x00003108 (most recent call first): Arduino-IDE 2.0.1 calls the same binary and throws the same error. For me this is new, compiling for the Pico on this machine did work before. |
Hi,
my arduino ide installation is throwing up a strange problem when I change the board to any ESP8266... following is the error... unable to understand what the issue is.
The text was updated successfully, but these errors were encountered: