Re: new to Zephyr: "Failed to test python version" error

Bøe, Sebastian <Sebastian.Boe@...>


this is a known bug. It's fix is awaiting review.

From: Cufi, Carles
Sent: Monday, December 10, 2018 11:54:30 PM
To: Eric; users@...; Bøe, Sebastian
Subject: Re: [Zephyr-users] new to Zephyr: "Failed to test python version" error

Hi Eric,

There was a patch introduced recently to improve the detection of the Python executable. I have copied the author to see if he can spot the issue.


From: <users@...> on behalf of Eric <ericmdwest@...>
Date: Monday, 10 December 2018 at 17:13
To: "users@..." <users@...>
Subject: [Zephyr-users] new to Zephyr: "Failed to test python version" error

[Edited Message Follows]
I'm running Zephyr on a Ubuntu 18.04 VM, and just followed the getting started instructions.

On my first build of "hello world", I'm getting this "Failed to test python version" error.
dev1@dev1-VirtualBox:~/ZephyrSDK/gitproj/zephyr/samples/hello_world$ cmake -GNinja -DBOARD=arduino_101
CMake Error at /home/dev1/ZephyrSDK/gitproj/zephyr/cmake/backports/FindPythonInterp.cmake:46 (message):
Failed to test python version
Call Stack (most recent call first):
/home/dev1/ZephyrSDK/gitproj/zephyr/cmake/backports/FindPythonInterp.cmake:58 (determine_python_version)
/home/dev1/ZephyrSDK/gitproj/zephyr/cmake/app/boilerplate.cmake:103 (include)
CMakeLists.txt:3 (include)

-- Configuring incomplete, errors occurred!
I'm using the Zephyr SDK and did install the Python dependencies. Any ideas on what's causing this?

I've also made sure that ~/.local/bin is at the front of PATH environment variable.
dev1@dev1-VirtualBox:~/ZephyrSDK/gitproj/zephyr/samples/hello_world/build$ echo $PATH/home/dev1/.local/bin:/home/dev1/ZephyrSDK/gitproj/zephyr/scripts:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

Join to automatically receive all group messages.