I had a similar error. Fixed by: export PYTHONPATH=/usr/lib/python3/dist-packages (I found the location using "locate gps|fgrep py")