This is a follow-up to the last issue I posted linked below
https://discuss.ardupilot.org/t/custom-mavlink-messages-lost-in-sitl/31380
I tried to upgrade and update the pymavlink and MavProxy using the following
sudo pip install --upgrade pymavlink MAVProxy
Which results in the following failure
In file included from src/lxml/etree.c:661:0:
src/lxml/includes/etree_defs.h:14:31: fatal error: libxml/xmlversion.h: No such file or directory
compilation terminated.
Compile failed: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
creating tmp
cc -I/usr/include/libxml2 -c /tmp/xmlXPathInit4fhSFx.c -o tmp/xmlXPathInit4fhSFx.o
/tmp/xmlXPathInit4fhSFx.c:1:26: fatal error: libxml/xpath.h: No such file or directory
compilation terminated.
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
Can’t roll back lxml; was not uninstalled
I’ve tried installing libxml2-dev and libxslt1-dev as well and I’m continuing to see fail to fetch in the package installation.
" 404 Not Found [IP: 91.189.91.23 80]
Err http://security.ubuntu.com/ubuntu/ wily-security/main libxml2-dev amd64 2.9.2+zdfsg1-4ubuntu0.4
404 Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/i/icu/icu-devtools_55.1-4ubuntu1_amd64.deb 404 Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu-dev_55.1-4ubuntu1_amd64.deb 404 Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/libx/libxml2/libxml2-dev_2.9.2+zdfsg1-4ubuntu0.4_amd64.deb 404 Not Found [IP: 91.189.91.23 80]
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/libx/libxslt/libxslt1-dev_1.1.28-2build2_amd64.deb 404 Not Found [IP: 91.189.91.23 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
"
the apt-get update with fix-missing or otherwise doesn’t seem to help either.
Now when I run my simulator I see the following
STABILIZE> Mode STABILIZE
Exception in thread main_loop:
Traceback (most recent call last):
File “/usr/lib/python2.7/threading.py”, line 810, in __bootstrap_inner
self.run()
File “/usr/lib/python2.7/threading.py”, line 763, in run
self.__target(*self.__args, **self.__kwargs)
File “/usr/local/bin/mavproxy.py”, line 783, in main_loop
master.wait_heartbeat()
File “/usr/local/lib/python2.7/dist-packages/pymavlink-2.2.2-py2.7-linux-x86_64.egg/pymavlink/mavutil.py”, line 385, in wait_heartbeat
return self.recv_match(type=‘HEARTBEAT’, blocking=blocking)
File “/usr/local/lib/python2.7/dist-packages/pymavlink-2.2.2-py2.7-linux-x86_64.egg/pymavlink/mavutil.py”, line 346, in recv_match
m = self.recv_msg()
File “/usr/local/lib/python2.7/dist-packages/pymavlink-2.2.2-py2.7-linux-x86_64.egg/pymavlink/mavutil.py”, line 320, in recv_msg
msg = self.mav.parse_char(s)
File “/usr/local/lib/python2.7/dist-packages/pymavlink-2.2.2-py2.7-linux-x86_64.egg/pymavlink/dialects/v10/ardupilotmega.py”, line 9727, in parse_char
self.__callbacks(m)
File “/usr/local/lib/python2.7/dist-packages/pymavlink-2.2.2-py2.7-linux-x86_64.egg/pymavlink/dialects/v10/ardupilotmega.py”, line 9704, in __callbacks
self.callback(msg, *self.callback_args, **self.callback_kwargs)
File “/usr/local/lib/python2.7/dist-packages/MAVProxy/modules/mavproxy_link.py”, line 460, in master_callback
mavutil.mavlink.MAV_TYPE_DODECAROTOR]:
AttributeError: ‘module’ object has no attribute ‘MAV_TYPE_DODECAROTOR’
Any help is appreciated.