AVSystem / Anjay-stm32-azurertos-client

Anjay IoT library and Azure RTOS integration layer, featuring STM32 demo projects
Apache License 2.0
3 stars 1 forks source link

Example Projects Compilation Errors #1

Closed gencay3535 closed 1 year ago

gencay3535 commented 1 year ago

Hello, we are trying to compile the example projects for U585-IOT Kit , here we get the following errors for the SBSFU_Boot Project.

My colleague had this kind of compilation error: Windows_NT Postbuild with python script Traceback (most recent call last):   File "D:\repo\cellular\Anjay-stm32-azurertos-client\Middlewares\Third_Party\mcuboot\scripts\imgtool.py", line 19, in <module>     import click ModuleNotFoundError: No module named 'click' postbuild.sh failed

When I try to compile the same project I get

Windows_NT Postbuild with python script Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. postbuild.sh failed make[1]: *** [makefile:96: post-build] Error 1 make: *** [makefile:62: all] Error 2 "make -j12 all" terminated with exit code 2. Build might be incomplete.

Python is installed and can be seen on the path

PS C:\Users\admin\Desktop\Azure\Anjay-stm32-azurertos-client> $env:PATH C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_1.16.10262.0_x64__8wekyb3d8bbwe;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Users\admin\AppData\Local\Programs\Python\Python311\Scripts;C:\Users\admin\AppData\Local\Programs\Python\Python311;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Java\jdk-19\bin;;C:\Program Files\JetBrains\PyCharm Community Edition 2022.3.1\bin;;C:\Users\admin\AppData\Local\Programs\Microsoft VS Code\bin PS C:\Users\admin\Desktop\Azure\Anjay-stm32-azurertos-client> python --version Python 3.11.3

What are we missing?

witekgeb commented 1 year ago

Hi @gencay3535

For now we only support build process on Linux. We can probably prepare a Windows version by the end of this week. I'll let you know when it's ready.

Regards Witold

witekgeb commented 1 year ago

Hi @gencay3535

I just updated the repo. In https://github.com/AVSystem/Anjay-stm32-azurertos-client/blob/main/Projects/B-U585I-IOT02A/README.md you can find new Dependencies section which contain the list of python modules that you need to run the building and flashing process. Furthermore in shell scripts we added PATH for default STM32CubeProgrammer location on Windows.

Regards Witold

gencay3535 commented 1 year ago
witekgeb commented 1 year ago