No way to get autotest.py running

Hi everybody ¡,

I’ve been looking for a solution for several days, but I’m not able to fix it.

I’ve install all stuff related to ArduPilot, following, step-by-step this two guides from a clean installation of ubuntu 14.04:

1- http://ardupilot.org/dev/docs/setting-up-sitl-on-windows.html
2- http://ardupilot.org/dev/docs/setting-up-sitl-on-linux.html

Today I’ve install again from scratch, so I should be up-to-date.
The point is, when I try to run autotest.py whith arducopter:

./Tools/autotest/autotest.py build.ArduCopter fly.ArduCopter --map

I’m getting this error:

Traceback (most recent call last):
File “./Tools/autotest/autotest.py”, line 497, in run_tests
if not run_step(step):
File “./Tools/autotest/autotest.py”, line 304, in run_step
return arducopter.fly_ArduCopter(binary, viewerip=opts.viewerip, use_map=opts.map, valgrind=opts.valgrind, gdb=opts.gdb)
File “/home/diego/ardupilot/Tools/autotest/arducopter.py”, line 969, in fly_ArduCopter
sitl = util.start_SITL(binary, wipe=True, model=frame, home=home, speedup=speedup_default)
File “/home/diego/ardupilot/Tools/autotest/pysim/util.py”, line 219, in start_SITL
child = pexpect.spawn(first, rest, logfile=sys.stdout, encoding=ENCODING, timeout=5)
TypeError: init() got an unexpected keyword argument 'encoding’
check step: fly.ArduCopter

I’d be really gratefull if anyone can help me.

1 Like

I’ve fixed it installing pexpect via pip. Thanks.