Hi!
I am trying to build a project, however, the sdk-packed python installation seems utterly broken.
With 2.5 toolchain:
Traceback (most recent call last): File "/opt/firmware/device/c2usb/modules/hid-rp/modules/hid-usage-tables/src/hid/codegen/cpp.py", line 14, in <module> from hid.parser import parse_database File "/home/me/.local/lib/python3.11/site-packages/hid/__init__.py", line 2, in <module> import ctypes File "/home/me/ncs/toolchains/7795df4459/usr/local/lib/python3.8/ctypes/__init__.py", line 7, in <module> from _ctypes import Union, Structure, Array ModuleNotFoundError: No module named '_ctypes'
With 2.4, 2.3 and 2.2 toolchains:
-- Found Python: /home/me/ncs/toolchains/1f9b40e71a/usr/local/bin/python3.8 (found suitable version "3.8.2", minimum required is "3") found components: Interpreter
Python path configuration:
PYTHONHOME = '/home/me/ncs/toolchains/1f9b40e71a/usr/local'
PYTHONPATH = '/home/me/ncs/toolchains/1f9b40e71a/usr/local/lib/python3.8/site-packages'
program name = 'python'
isolated = 0
environment = 1
user site = 1
safe_path = 0
import site = 1
is in build tree = 0
stdlib dir = '/home/me/ncs/toolchains/1f9b40e71a/usr/local/lib/python3.11'
sys._base_executable = '/usr/bin/python'
sys.base_prefix = '/home/me/ncs/toolchains/1f9b40e71a/usr/local'
sys.base_exec_prefix = '/home/me/ncs/toolchains/1f9b40e71a/usr/local'
sys.platlibdir = 'lib'
sys.executable = '/usr/bin/python'
sys.prefix = '/home/me/ncs/toolchains/1f9b40e71a/usr/local'
sys.exec_prefix = '/home/me/ncs/toolchains/1f9b40e71a/usr/local'
sys.path = [
'/home/me/ncs/toolchains/1f9b40e71a/usr/local/lib/python3.8/site-packages',
'/home/me/ncs/toolchains/1f9b40e71a/usr/local/lib/python311.zip',
'/home/me/ncs/toolchains/1f9b40e71a/usr/local/lib/python3.11',
'/home/me/ncs/toolchains/1f9b40e71a/usr/local/lib/python3.11/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'
With 2.1 toolchain:
CMake Error at /opt/firmware/nrfconnect/zephyr/cmake/modules/FindZephyr-sdk.cmake:56 (find_package):
Could not find a configuration file for package "Zephyr-sdk" that is
compatible with requested version "0.15".
The following configuration files were considered but not accepted:
/home/me/ncs/toolchains/v2.1.0/opt/zephyr-sdk/cmake/Zephyr-sdkConfig.cmake, version: 0.14.1
Call Stack (most recent call first):
/opt/firmware/nrfconnect/zephyr/cmake/modules/FindHostTools.cmake:53 (find_package)
/opt/firmware/nrfconnect/zephyr/cmake/modules/dts.cmake:9 (find_package)
/opt/firmware/nrfconnect/zephyr/cmake/modules/zephyr_default.cmake:115 (include)
/opt/firmware/nrfconnect/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/opt/firmware/nrfconnect/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:2 (find_package)
Thanks in advance,
Karel