buildprog.py not working

Hey

I try to follow the guide here: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.4.1/nrf/applications/nrf5340_audio/README.html#building-and-running

when i use the scrip approach i get the following error:

peter:~/ncs/v2.4.1/nrf/applications/nrf5340_audio((no branch))$ python buildprog.py -h
Python path configuration:
PYTHONHOME = '/home/peter/ncs/toolchains/1f9b40e71a/usr/local'
PYTHONPATH = '/home/peter/ncs/toolchains/1f9b40e71a/usr/local/lib/python3.8/site-packages'
program name = 'python'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/usr/bin/python'
sys.base_prefix = '/home/peter/ncs/toolchains/1f9b40e71a/usr/local'
sys.base_exec_prefix = '/home/peter/ncs/toolchains/1f9b40e71a/usr/local'
sys.platlibdir = 'lib'
sys.executable = '/usr/bin/python'
sys.prefix = '/home/peter/ncs/toolchains/1f9b40e71a/usr/local'
sys.exec_prefix = '/home/peter/ncs/toolchains/1f9b40e71a/usr/local'
sys.path = [
'/home/peter/ncs/toolchains/1f9b40e71a/usr/local/lib/python3.8/site-packages',
'/home/peter/ncs/toolchains/1f9b40e71a/usr/local/lib/python310.zip',
'/home/peter/ncs/toolchains/1f9b40e71a/usr/local/lib/python3.10',
'/home/peter/ncs/toolchains/1f9b40e71a/usr/local/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
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00007f4f5fc8c740 (most recent call first):
<no Python frame>
peter:~/ncs/v2.4.1/nrf/applications/nrf5340_audio((no branch))$ 

i have installed latest sdk 2.4.1 and it works if i build it manually as described in the steps below.

Parents Reply Children
Related