Skip to content

(uv internal error) Failed to spawn the python child process: entity not found. (os error 2) #17966

Description

@NicoCaldo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwindowsSpecific to the Windows platform

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions