R2B3 Windows - Failed to create process - Installation Test

Just some notes for others on my resolved R2B3 Windows install issues. I followed the installation procedures for Windows Binary Release - https://github.com/ros2/ros2/wiki/Windows-Install-Binary.

  1. After install, running c:\dev\ros2\local_setup.bat failed and reported that it couldn’t find a file. Turns out it expects python to be in c:\Python36, when it was actually installed in c:\program files\python36. The path is hard coded in the root local_setup.bat, where you must change it to the correct install directory.

  2. Running the local_setup.bat now works, feeling pretty good, until I tried to run the demo_nodes example. Immediately fails with “Failed to create process”. Make sure there is no space in your python path. I spent way too much time figuring that one out…

One quick test: after running local_setup.bat, if you just try to run ros2 with no args, and it reports “Failed to create process”, it’s most likely due to a space in the python path.

I’ve just followed the windows installation and also got the failed to create process error. Turned out that choco installed Python 3.7, and as mentioned above, ros2 is expecting 3.6

I downgraded to 3.6.5, but I now get this error:

Traceback (most recent call last):
  File "C:\dev\ros2\lib\demo_nodes_py\listener-script.py", line 11, in <module>
    load_entry_point('demo-nodes-py==0.5.1', 'console_scripts', 'listener')()
  File "C:\dev\ros2\Lib\site-packages\demo_nodes_py\topics\listener.py", line 37, in main
    rclpy.init(args=args)
  File "C:\dev\ros2\Lib\site-packages\rclpy\__init__.py", line 27, in init
    args if args is not None else sys.argv)
RuntimeError: Failed to init: failed to load shared library of rmw implementation. Exception: Cannot load library: C:\dev\ros2\bin/rmw_fastrtps_cpp.dll, at C:\J\workspace\ci_packaging_windows\ws\src\ros2\rmw_implementation\rmw_implementation\src\functions.cpp:135, at C:\J\workspace\ci_packaging_windows\ws\src\ros2\rcl\rcl\src\rcl\rcl.c:92

Note: Duplicate Post: https://github.com/ros2/ros2/issues/421#issuecomment-403561753

@mcevoyandy You comment has nothing to do with the original post. Please post this in a separate thread. For questions like this we recommend to ask a question on answers.ros.org instead.