Can't start sim_vehicles.py Errorno:10

I am very new to arduPlane. I have installed Cygwin and trying to run sim_vehicle.py. I have installed pymavlink and mavproxy using pip. The following error is occurring:

SIM_VEHICLE: Start
SIM_VEHICLE: Killing tasks
[pkill] An exception has occurred with command: 'pkill ArduSub.elf'
[Errno 10] No child processes
SIM_VEHICLE: Killing tasks
[pkill] An exception has occurred with command: 'pkill ArduSub.elf'
[Errno 10] No child processes
Exception KeyError: KeyError(8388,) in <module 'threading' from 'C:\Python27\lib
\threading.pyc'> ignored
1 Like

I’m having exactly the same issue at the moment. SITL has been working on my system for months before this, but recently I updated to latest version of master and this issue has come up. I’ve tried uninstalling and re-installing the entire toolchain and still can’t find a fix. I can build for all targets fine just cant run SITL.

Is the “pkill” command available in the environment you’re running in?

Do you have the “psutil” Python package installed?

Peter

Hi! Thanks for the help! The pkill command is available, however when I try to install the psutil package using pip I get the following output:

Collecting psutil
Using cached psutil-5.7.0.tar.gz (449 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python2.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-RtPUXj/psutil/setup.py'"'"'; __file__='"'"'/tmp/pip-install-RtPUXj/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-RtPUXj/psutil/pip-egg-info
   cw d: /tmp/pip-install-RtPUXj/psutil/
    Complete output (1 lines):
    platform cygwin is not supported
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info 
Check the logs for full command output.

Hi! Thanks for the help! The pkill command is available, however when I try to install the psutil package using pip I get the following output:

Ah, well. Could you paste the full output from an invocation, please?
From the commandline through to the last of the error.

platform cygwin is not supported

Apparently all the cool kids are doing WSL2 now-adays :slight_smile:

pkill output:

calla@DESKTOP-MLOCGH6 ~
$ pkill --help

Usage:
 pkill [options] <pattern>

Options:
 -<sig>, --signal <sig>    signal to send (either number or name)
 -e, --echo                display what is killed
 -c, --count               count of matching processes
 -f, --full                use full process name to match
 -g, --pgroup <PGID,...>   match listed process group IDs
 -G, --group <GID,...>     match real group IDs
 -i, --ignore-case         match case insensitively
 -n, --newest              select most recently started
 -o, --oldest              select least recently started
 -P, --parent <PPID,...>   match only child processes of the given parent
 -s, --session <SID,...>   match session IDs
 -t, --terminal <tty,...>  match by controlling terminal
 -u, --euid <ID,...>       match by effective IDs
 -U, --uid <ID,...>        match by real IDs
 -x, --exact               match exactly with the command name
 -F, --pidfile <file>      read PIDs from file
 -L, --logpidfile          fail if PID file is not locked
 -r, --runstates <state>   match runstates [D,S,Z,...]
 --ns <PID>                match the processes that belong to the same
                           namespace as <pid>
 --nslist <ns,...>         list which namespaces will be considered for
                           the --ns option.
                           Available namespaces: ipc, mnt, net, pid, user, uts

 -h, --help     display this help and exit
 -V, --version  output version information and exit

For more details see pgrep(1).

attempt to install psutil:

calla@DESKTOP-MLOCGH6 ~
$ pip2 install psutil

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting psutil
  Using cached psutil-5.7.0.tar.gz (449 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python2.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-lL7fyZ/psutil/setup.py'"'"'; __file__='"'"'/tmp/pip-install-lL7fyZ/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-lL7fyZ/psutil/pip-egg-info
         cwd: /tmp/pip-install-lL7fyZ/psutil/
    Complete output (1 lines):
    platform cygwin is not supported
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Well, I’ve just set up Ubuntu 18.04 using WSL 2, and set up the build environment. Everything, including SITL working like a charm, so I think I’ll just stick to this in the future. :sunglasses: