Summary
I'm using an IDE that builds and compiles C and C++ projects using Make (IAR Workbench)
I have a post-build command that should launch a Python script that must read a .bin file and generate a .crc file
The post-build command line is
python3.11 <folder of the python script>\generate_crc_stm32.py <folder of the bin file>\firmware.bin
But I'm getting
cmd /C cd C:\<fodler of IAR project>\EWARM\Appli && python3.11 python3.11 <folder of the python script>\generate_crc_stm32.py <folder of the bin file>\firmware.bin
(uv internal error) Failed to spawn the python child process: entity not found. (os error 2)
If I try to open the cmd and run the exact same script as above, it works correctly. Path are correct
My Python script is just a simple .py with inside a
import sys
import os
..
def main():
..
if __name__ == '__main__':
main()
Using uv run instead works
Platform
Windows 10 Pro 64bit 22H2
Version
uv 0.10.2 (a788db7 2026-02-10)
Python version
Python 3.11.11
Summary
I'm using an IDE that builds and compiles C and C++ projects using Make (IAR Workbench)
I have a post-build command that should launch a Python script that must read a .bin file and generate a .crc file
The post-build command line is
python3.11 <folder of the python script>\generate_crc_stm32.py <folder of the bin file>\firmware.binBut I'm getting
If I try to open the cmd and run the exact same script as above, it works correctly. Path are correct
My Python script is just a simple .py with inside a
Using
uv runinstead worksPlatform
Windows 10 Pro 64bit 22H2
Version
uv 0.10.2 (a788db7 2026-02-10)
Python version
Python 3.11.11