Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: [WinError 193] %1 is not a valid Win32 application #90

Open
agaertner opened this issue Dec 23, 2022 · 0 comments
Open

OSError: [WinError 193] %1 is not a valid Win32 application #90

agaertner opened this issue Dec 23, 2022 · 0 comments

Comments

@agaertner
Copy link

[ERROR] [Planner.py-4]: exception occurred while executing process:
Traceback (most recent call last):
  File "F:\ros2\ros2_humble\install\Lib\site-packages\launch\actions\execute_local.py", line 546, in __execute_process
    transport, self._subprocess_protocol = await async_execute_process(
  File "F:\ros2\ros2_humble\install\Lib\site-packages\osrf_pycommon\process_utils\async_execute_process_asyncio\impl.py", line 135, in async_execute_process
    transport, protocol = await _async_execute_process_pty(
  File "F:\ros2\ros2_humble\install\Lib\site-packages\osrf_pycommon\process_utils\async_execute_process_asyncio\impl.py", line 45, in _async_execute_process_nopty
    transport, protocol = await loop.subprocess_exec(
  File "c:\python38\lib\asyncio\base_events.py", line 1630, in subprocess_exec
    transport = await self._make_subprocess_transport(
  File "c:\python38\lib\asyncio\windows_events.py", line 385, in _make_subprocess_transport
    transp = _WindowsSubprocessTransport(self, protocol, args, shell,
  File "c:\python38\lib\asyncio\base_subprocess.py", line 36, in __init__
    self._start(args=args, shell=shell, stdin=stdin, stdout=stdout,
  File "c:\python38\lib\asyncio\windows_events.py", line 881, in _start
    self._proc = windows_utils.Popen(
  File "c:\python38\lib\asyncio\windows_utils.py", line 153, in __init__
    super().__init__(args, stdin=stdin_rfd, stdout=stdout_wfd,
  File "c:\python38\lib\subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "c:\python38\lib\subprocess.py", line 1307, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
OSError: [WinError 193] %1 is not a valid Win32 application

I am getting this error in all my ROS packages. Research suggest that shell has to be explicitely passed in a subprocess call, but none of my packages actually do this call but the logs always reference osrf_pycommon so I am posting it here for awareness.
Ref. https://stackoverflow.com/questions/25651990/oserror-winerror-193-1-is-not-a-valid-win32-application

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant