You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this issue when trying to use rosbridge under Jazzy on Windows 10.
I've also tried copying rosapi_node to "rosapi_node.exe" and running it, and then I get
C:\Users\robot\colcon_ws\install\rosapi\Lib\rosapi>rosapi_node.exe
This version of C:\Users\robot\colcon_ws\install\rosapi\Lib\rosapi\rosapi_node.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.
However, this isn't going to help, since rosapy_node is a python script. The issue seems to be that Windows doesn't handle shebangs.
The short version of this is that rosbridge has a number of Python packages that are currently built using ament_cmake. To make it work under Windows, they will need to be converted to use ament_python (as far as I can tell).
ament_python invokes setuptools and will generate exe file wrappers for all the Python scripts listed in the entry_points['console_scripts'] dictionary inside setup.py. These can be run on Windows.
It's not clear (and may be impossible) to generate the exe wrappers using ament_cmake and ament_cmake_python.
I've been able to get rosapi to work by converting it to an ament_python package. I'll try to get a fork and PR up soon.
Description
I compiled rosbridge_suite in windows, then occuer this error.
Steps To Reproduce
Expected Behavior
rosbridge run sucessfully.
Actual Behavior
OSError: [WinError 193] %1 is not a valid Win32 application
The text was updated successfully, but these errors were encountered: