Hi, I try to run mcuxpresso on Debian 12. When I try to run my app I obtain the error
Could not determine GDB version using command: arm-none-eabi-gdb --version
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = (not set)
program name = '/usr/local/bld-tools/bld-tools-virtual-env/bin/python'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/usr/local/bld-tools/bld-tools-virtual-env/bin/python'
sys.base_prefix = '/usr'
sys.base_exec_prefix = '/usr'
sys.executable = '/usr/local/bld-tools/bld-tools-virtual-env/bin/python'
sys.prefix = '/usr'
sys.exec_prefix = '/usr'
sys.path = [
'/usr/lib/python38.zip',
'/usr/lib/python3.8',
'/usr/lib/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
Current thread 0x00007f562539fc00 (most recent call first):
<no Python frame>
What can I do in order to resolve?
Many thanks
I originally have been using bookworm's gdb-multiarch with MCUXpresso but ran into issues, especially when debugging FreeRTOS applications - but in general it can work.
Alternatively, one can install Python 3.8, which can actually be done without compiling it manually:
1. Install a prerequisite from http://ftp.at.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1w-0+deb11u1_amd64.deb (e.g., wget http://ftp.de.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1w-0+deb11u1_amd64.deb && sudo apt install ./libssl1.1_1.1.1w-0+deb11u1_amd64.deb)
2. install a minimal Python 3.8:
Not exactly great but seems to work. I am not sure if MCUX uses the Python capabilities at all anyway...
Hi,
Same error Ubuntu22.04.
Regards
JP
Hello @denisgottardello
MCUXpresso IDE v11.8.1 official supports
• Linux – Ubuntu 20.04 LTS and 22.04 LTS
• Only 64-bit versions of Linux are supported.
Dot supports Debian 12.
If you have interest, you can try to install python 3.8 to have a try, or google the error message to find some methods.
Recommend use the Linux versions install guide mentioned.
BR
Alice