python version for imx-4.14.98-2.0.0

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

python version for imx-4.14.98-2.0.0

ソリューションへジャンプ
1,062件の閲覧回数
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 解決策
1,040件の閲覧回数
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 返信
1,041件の閲覧回数
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 件の賞賛
返信