-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Observing a Python path Issue with Git based Compile #12066
Comments
@vikramuk can you please describe what the issue is? |
I know it might be a configuration issue.. but just want someone to update if there have been similar issues during start-up. |
I don't think using 'bash' (MSYS) on Windows is supported. Can you reproduce the issue with cmd.exe? |
@SebastianBoe @vikramuk |
Hi, C:\ProgApps\Zephyr\samples\hello_world>cmake -GNinja -DBOARD=stm32_min_dev -- Configuring incomplete, errors occurred! |
could you run "C:> where python" ? And "--version" on each of the programs found. And do the same for 'python3'. We need to prove that it should be possible for FindPythonInterp.cmake to find an appropriate version. EDIT: Nevermind, I found the bug. Will fix. |
I ran the same with Qemu .. 12/06/2018 04:47 PM .12/06/2018 04:47 PM .. 12/06/2018 04:47 PM 175 CMakeLists.txt 12/06/2018 04:47 PM 75 prj.conf 12/06/2018 04:47 PM 1,015 README.rst 12/06/2018 04:47 PM 696 sample.yaml 12/06/2018 04:47 PM src 4 File(s) 1,961 bytes 3 Dir(s) 435,901,440,000 bytes free C:\ProgApps\Zephyr\samples\synchronization>mkdir build C:\ProgApps\Zephyr\samples\synchronization>cmake -GNinja -DBOARD=qemu_x86 -- Configuring incomplete, errors occurred! _C:\ProgApps\Zephyr\samples\synchronization>where python C:\ProgApps\Zephyr\samples\synchronization>where python3 |
Fixed a bug where an old version of python on path would break the python detection mechanism. This fixes zephyrproject-rtos#12066 Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
Fixed a bug where an old version of python on path would break the python detection mechanism. This fixes #12066 Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
Describe the bug
environment variables are sourced but Python version is different when/with cmake runs
To Reproduce
Steps to reproduce the behavior:
using Gitbash to set environment and start build.
$ cmake -GNinja -DBOARD=stm32_min_dev
CMake Error at C:/ProgApps/cmake-3.13.1-win64-x64/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find PythonInterp: Found unsuitable version "1.4", but required
is at least "3.4" (found C:/ProgApps/Anaconda/python.exe)
Call Stack (most recent call first):
C:/ProgApps/cmake-3.13.1-win64-x64/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:376 (_FPHSA_FAILURE_MESSAGE)
C:/ProgApps/Zephyr/cmake/backports/FindPythonInterp.cmake:165 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
C:/ProgApps/Zephyr/cmake/app/boilerplate.cmake:95 (include)
CMakeLists.txt:3 (include)
-- Configuring incomplete, errors occurred!
$ bash --version
GNU bash, version 4.4.19(2)-release (x86_64-pc-msys)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ where python
C:\ProgApps*Py37*\python.exe
Expected behavior
Able to compile and generate binary for STM32 similar to https://docs.zephyrproject.org/latest/boards/arm/stm32_min_dev/doc/stm32_min_dev.html
Impact
not able to compile on windows.
Screenshots or console output
Environment (please complete the following information):
VERSION_MAJOR = 1
VERSION_MINOR = 13
PATCHLEVEL = 99
VERSION_TWEAK = 0
EXTRAVERSION = d62e861
Additional context
Unable to configure the Python environment for Build to complete.
![gitbasherror](https://user-images.githubusercontent.com/4569591/49938156-08a5cf80-feff-11e8-8d77-0e1393a38e
samples-hello_world.zip
c4.png)
The text was updated successfully, but these errors were encountered: