python version for imx-4.14.98-2.0.0

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

python version for imx-4.14.98-2.0.0

跳至解决方案
963 次查看
bryan_hong
Senior Contributor I

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 项奖励
回复
1 解答
941 次查看
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 项奖励
回复
1 回复
942 次查看
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 项奖励
回复