mcuxpressoide-11.8.0 fails to install on Debian 12 (bookworm) due to missing libpython3.8

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mcuxpressoide-11.8.0 fails to install on Debian 12 (bookworm) due to missing libpython3.8

Jump to solution
2,078 Views
_Chris_
Contributor II

Hi,

I'm updating my development environment with the latest SDK (2.14), and MCUXpressoIDE (11.8.0) however the installer fails due to a missing package libpython3.8.

Debian 12 is using python 3.11, version 3.8 is no longer available.

E: Sub-process /usr/bin/dpkg returned an error code (1)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libpython3.8
E: Couldn't find any package by glob 'libpython3.8'

 

MCUXpresso is running and compiling, but when debugging is started it fails:

 

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 0x00007f3f9dae5c00 (most recent call first):
<no Python frame>


Is there a fix available for this issue ?

 

Bests,

Chris

0 Kudos
1 Solution
2,047 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @_Chris_ 

MCUXpresso is not supported in Debian.

You can verify it in this link 

Miguel04_0-1692380821753.png

Best Regards, Miguel.

View solution in original post

0 Kudos
8 Replies
1,271 Views
abbbb
Contributor I

Python 3.8 installation on Debian 12 :

1. install prerequisites

sudo apt update
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libsqlite3-dev libreadline-dev libffi-dev curl libbz2-dev liblzma-dev

2. dowload python 3.8 source code & untar:

curl -O https://www.python.org/ftp/python/3.8.9/Python-3.8.9.tar.xz
tar -xf Python-3.8.2.tar.xz

 3. configure for compilation: 

cd Python-3.8.9
./configure --enable-optimizations --enable-loadable-sqlite-extensions

4. start make

make -j 4

5. install

sudo make altinstall

6. test

python3.8 --version
0 Kudos
280 Views
marcossantos
Contributor I

Thanks ! - MCUExpresso DOES work on Debian Bookworm!

0 Kudos
1,984 Views
thomasfaguet
Contributor I

Hi both of you,

It appears that by installing python 3.8 on my Ubuntu 22.04, it works. I seems that the software look for it and do not use python3.10 that was installed by default.

Best regards,

Thomas

0 Kudos
2,000 Views
thomasfaguet
Contributor I

Hi Chris, Hi Miguel,

I have the same problem on MCUxpresso under Ubuntu22.04 LTS...

0 Kudos
1,995 Views
_Chris_
Contributor II

Hi Thomasfaguet,

That's strange, after my problems with Debian I did a test on the latest Ubuntu 22.04.3 LTS  and it worked for me. 

It was a fresh install of Ubuntu, maybe that made the difference ?

Best regards,

Chris

0 Kudos
2,048 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @_Chris_ 

MCUXpresso is not supported in Debian.

You can verify it in this link 

Miguel04_0-1692380821753.png

Best Regards, Miguel.

0 Kudos
57 Views
fjrg76
Contributor IV

1 year later...

Same happening here while trying to install IDE 11.9.1 running Linux Mint 23.1 (Ubuntu derivative), pythonlib3.8 doesn't even exist in the distro repositories, so I can't install this library (at least directly).

Any hint?

 

0 Kudos
1,997 Views
_Chris_
Contributor II

Hi Miguel,

You are right, my fault, it used to work in the past which seemed to be a coincident. I managed to get it working by building / installing python3.8 manually. 

 

Best regards,

Chris

0 Kudos