Problems with mavproxy and raspberrypi

Hi,
I’m building a “On Board CS” based on Raspberry pi 2 to control a VRBRain 5.2 or a pixhawk clone.
I’ve installed raspbian jessie lite and then followed the guide for mavlink and mavproxy and dronekit connecting RPI to arducopter base FC via USB.
The problem is that I cannot install via pip command: I get the message “File “/usr/lib/python2.7/dist-packages/pip/download.py”, line 25, in <module from requests.compat import IncompleteRead
ImportError: cannot import name IncompleteRead
as in the screeshot

anyone can help/support?

Hello, you need to update pip.
Try

sudo apt-get purge python-requests python-pip
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py

And the reinstall pymavlink !

1 Like

Thanks.
I’ll try and let know

ok. it works perfectly.

But the problem now is that when I start mavproxy from rc.local to forward from USB to network, VRBrain stucks, instead if I wait RPi is up&running and then start mavproxy VRBrain works perfectly.
Tomorrow I’ll test pixhawk clone

I start mavproxy as following (I have RPi connected to lan (192.168.2.x) for testing and acting as AccessPoint (network 10.0.1.x)

sudo mavproxy.py --master=/dev/ttyACM0 --out=udpbcast:192.168.2.255:14550 --out=tcpin:192.168.2.210:9999 --out=udpbcast:10.0.2.255:14550