Skip to main content
Added result of calling with Python
Source Link
Roberto
  • 151
  • 6

EDIT: I just realized that calling ROS2 from Python does work:

> python Scripts\ros2-script.py
usage: ros2 ...

But running the .exe gives the error:

> ros2.exe
failed to create process.

EDIT: I just realized that calling ROS2 from Python does work:

> python Scripts\ros2-script.py
usage: ros2 ...

But running the .exe gives the error:

> ros2.exe
failed to create process.
Source Link
Roberto
  • 151
  • 6

ROS2 Humble on Windows - "failed to create process."

I am trying to install ROS2 "Humble Hawksbill" on Windows 10, but when done and trying to run ros2 I get the error:

failed to create process.

I get the same result when activating the ROS environment first with local_setup.

I followed the instructions here: https://docs.ros.org/en/humble/Installation/Windows-Install-Binary.html#install-python
The only difference is I have Python 3.8.10. Other system info:

> systeminfo.exe

Host Name:                 xxxx
OS Name:                   Microsoft Windows 10 Pro
OS Version:                10.0.19045 N/A Build 19045
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Member Workstation
OS Build Type:             Multiprocessor Free
Registered Owner:          sa-install
Registered Organization:   Demcon
Product ID:                00330-80000-00000-AA932
Original Install Date:     15-4-2022, 05:14:30
System Boot Time:          12-9-2023, 10:41:29
System Manufacturer:       HP
System Model:              HP ZBook Fury 15.6 inch G8 Mobile Workstation PC
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 141 Stepping 1 GenuineIntel ~2304 Mhz
BIOS Version:              HP T95 Ver. 01.08.20, 14-3-2022
Windows Directory:         C:\windows
System Directory:          C:\windows\system32
Boot Device:               \Device\HarddiskVolume1
System Locale:             en-gb;English (United Kingdom)
Input Locale:              en-us;English (United States)
Time Zone:                 (UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna
Total Physical Memory:     16'048 MB
Available Physical Memory: 6'033 MB
Virtual Memory: Max Size:  28'336 MB
Virtual Memory: Available: 11'376 MB
Virtual Memory: In Use:    16'960 MB
Page File Location(s):     C:\pagefile.sys
Domain:                    xxxx
Logon Server:              xxxx
Hotfix(s):                 20 Hotfix(s) Installed.

There are some similar questions already, but their accepted answers did not help me: