python version for imx-4.14.98-2.0.0

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

python version for imx-4.14.98-2.0.0

Jump to solution
490 Views
bryan_hong
Contributor V

Dear NXP

I use Python 2.7.18 on `Ubuntu 22.04.3 LTS`
and I will try to build `
imx-4.14.98-2.0.0`
BTW, I had meet the below error.
Which version python should I use ?

===

~/work/imx-4.14.98-2.0.0/imx6qsabresd_build$ bitbake core-image-base
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = '/usr/lib/python2.7'
program name = 'python3'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/usr/bin/python3'
sys.base_prefix = '/usr'
sys.base_exec_prefix = '/usr'
sys.platlibdir = 'lib'
sys.executable = '/usr/bin/python3'
sys.prefix = '/usr'
sys.exec_prefix = '/usr'
sys.path = [
'/usr/lib/python2.7',
'/usr/lib/python310.zip',
'/usr/lib/python3.10',
'/usr/lib/python3.10/lib-dynload',
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
File "/usr/lib/python2.7/encodings/__init__.py", line 123
raise CodecRegistryError,\
^
SyntaxError: invalid syntax

Current thread 0x00007f7ea2457000 (most recent call first):
<no Python frame>

===

thank
Bryan

0 Kudos
Reply
1 Solution
468 Views
Harvey021
NXP TechSupport
NXP TechSupport

Would recommend to use Ubuntu version 16.04 or later 18.04 as host for BSP 4.14.98. 

 

Best regards

Harvey

View solution in original post

0 Kudos
Reply
1 Reply
469 Views
Harvey021
NXP TechSupport
NXP TechSupport

Would recommend to use Ubuntu version 16.04 or later 18.04 as host for BSP 4.14.98. 

 

Best regards

Harvey

0 Kudos
Reply