This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OpenCPN pypilot plugin disconnected
#11
(2021-06-24, 03:05 AM)seandepagnier Wrote: I believe what you have is the old version of pypilot and the new version of the pypilot opencpn plugin.   This is confusing (even for me) because the openplotter-pypilot plugin version 2.1.1 which is what is installed by openplotter will give you pypilot 0.15.    So you can either update pypilot directly from git, or it would be great if you could try out my improvements to openplotter-pypilot which are currently being evaluated but hopefully this version will be in openplotter soon.

https://github.com/pypilot/openplotter-pypilot

Just use "sudo python3 setup.py install" and then try running openplotter-pypilot and update pypilot.    This gives a bit more control.   If you run into trouble let me know, and if you cannot update pypilot from the gui there just try pulling pypilot directly from git
https://github.com/pypilot/pypilot

again "sudo python3 setup.py install"

This should get everything updated to the new version of pypilot which automatically communicates with signalk (once you grant it read/write permission)

note:  port 20220 is not signalk, it is nmea0183

(2021-06-26, 04:38 PM)seandepagnier Wrote: pypilot does not take arguments, so "pyplot -- autopilot" would do the same as just running "pypilot"

Running pypilot after install (at least without reboot) gives a none function pypilot (NA values). Pypilot -- autopilot should just be used to check if installation worked (first it didn't after refresh it did but pypilot would not start the program). Reboot will help get pypilot functioning again
Reply
#12
You don't need to reboot after upgrade.. so likely pypilot is already running and this is the reason.
Reply
#13
Hi, I have installed the latest version of pypilot (https://github.com/pypilot/pypilot), and communication with OpenCPN plugin works fine !

Though, the web client fails to connect. (it displays the interface but shows "no connection") I have tried to fix it with

sudo pip3 uninstall python-socketio python-engineio flask-socketio
sudo pip3 install "flask-socketio<5" "python-socketio<5"

as it solved the problem for the 2.1.1 version that openplotter installs, but no success

Maybe I forgot to install something ?

Thanks
Reply
#14
I am using the latest version of flask socketio now.

What do you get from the result of pip freeze? You may need to clear the browser cache.
Reply
#15
(2021-07-07, 06:42 PM)seandepagnier Wrote: I am using the latest version of flask socketio now.

What do you get from the result of pip freeze?   You may need to clear the browser cache.

Here's the output 


Code:
arandr==0.1.9
asn1crypto==0.24.0
blinker==1.4
Click==7.0
colorama==0.3.7
configparser==3.5.0b2
cryptography==2.6.1
entrypoints==0.3
enum34==1.1.6
Flask==1.0.2
gpiozero==1.6.2
gps==3.17
ipaddress==1.0.17
itsdangerous==0.24
Jinja2==2.10
keyring==17.1.1
keyrings.alt==3.1.1
MarkupSafe==1.1.0
numpy==1.16.2
picamera==1.13
pigpio==1.78
pycairo==1.16.2
pycrypto==2.6.1
PyGObject==3.30.4
pyinotify==0.9.6
pyOpenSSL==19.0.0
pyserial==3.4
pyxdg==0.25
RPi.GPIO==0.7.0
SecretStorage==2.3.1
simplejson==3.16.0
six==1.12.0
spidev==3.5
Werkzeug==0.14.1

and another issue I encountered with the latest pypilot version : it is impossible to calibrate the IMU, the data rate seems to be limited to one position per second (and even when not moved, the position on the globe won't turn yellow or green, only red dots every second)
Reply
#16
Something is definitely not working right. The data rate has been increased to 20 per second from 10.

It is a dependency issue most likely. Can you stop pypilot:

sudo systemctl pypilot stop

and run pypilot:
pypilot

This will give a debugging output directly to the console with possible clues.

When you installed pypilot from git, it now runs a dependency script which should install the required dependencies. Your pip freeze output does not list all of them, so it is not clear what is going on. Could you rerun this script, or install pypilot again with sudo python3 setup.py install and post the output? If I can correct the dependency script it should hopefully resolve this.
Reply
#17
I tried reinstalling it (again, from https://github.com/pypilot/pypilot).

After clone and install (and reboot just in case), running pypilot produces this output


Code:
imu process 1980
nmea process 1985
nmea server on port 20220: bind failed.
loading servo calibration /home/pi/.pypilot/servocalibration
WARNING: using default servo calibration!!
gps process 1987
Loaded Pilots: ['learning', 'basic', 'absolute', 'simple']
warning: failed to open special file /dev/watchdog0 for writing
         cannot stroke the watchdog
made imu process realtime
Using settings file RTIMULib.ini
pypilotServer process 1989
Settings file RTIMULib.ini loaded
Detected MPU9250/MPU9255 at standard address
Using fusion algorithm Kalman STATE4
IMU Name: MPU-925x
min/max compass calibration not in use
Using ellipsoid compass calibration
Using accel calibration
pypilot_server: bind failed; already running a server?
serialprobe removing gps device /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0001-if00-port0
servo probe ('/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0', 38400) 411.327210832
failed to open servo on: ('/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0', 38400) [Errno 16] could not open port /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0: [Errno 16] Device or resource busy: '/dev/serial/by-id/usb-1a86_USB_Serial-if00-port0'
MPU-925x init complete
read imu running too _slowly_ 0.03575441099997079 0.05
read imu running too _slowly_ 0.05084480900001154 0.05
read imu running too _slowly_ 0.05086964299999863 0.05
read imu running too _slowly_ 0.05090269999999464 0.05
nmea server on port 20220: bind failed.
read imu running too _slowly_ 0.050789102999999614 0.05
failed to read IMU! 412.299198139
Detected MPU9250/MPU9255 at standard address
Using fusion algorithm Kalman STATE4
IMU Name: MPU-925x
min/max compass calibration not in use
Using ellipsoid compass calibration
Using accel calibration
I2C read error from 12, 16 - Failed to read compass fuse ROM
ERROR: IMU Init Failed, no inertial data available 412.29987439
imu process failed to keep time 0.3076836920000119 412.299191935 412.606746214 412.606802346 412.606874516

The calibration still runs at verry slow rate but now yellow squares are created. 
Web client still won't connect to the server ("no connection"), but OpenCPN plugin works fine
And probably not a bug but i don't know how to configure a motor controller without the UI (openCPN plugin shows "no motor controller") 


This is the output of sudo python3 setup.py install


Code:
checking for RTIMULIB2...done
checking for serial...done
checking for numpy...done
checking for scipy...done
checking for libpython3-dev...libpython3-dev not found
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
libpython3-dev est déjà la version la plus récente (3.7.3-1).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 1 non mis à jour.
install dependency libpython3-dev success
checking for swig...swig not found
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
swig est déjà la version la plus récente (3.0.12-2).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 1 non mis à jour.
install dependency swig success
checking for ujson...done
checking for pyudev...done
checking for zeroconf...done
checking for requests...done
checking for websocket...done
checking for pil...done
checking for wiringpi...wiringpi not found
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
wiringpi est déjà la version la plus récente (2.50).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 1 non mis à jour.
install dependency wiringpi success
checking for flask...done
checking for gevent-websocket...done
checking for python-socketio...done
checking for flask-socketio...flask-socketio not found
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Le paquet « python3-flask-socketio » n'est pas installé, et ne peut donc être supprimé
0 mis à jour, 0 nouvellement installés, 0 à enlever et 1 non mis à jour.
failed to install via apt, trying with pip
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: flask-socketio in /usr/local/lib/python3.7/dist-packages (4.3.2)
Requirement already satisfied: python-socketio<5,>=4.3.0 in /usr/local/lib/python3.7/dist-packages (from flask-socketio) (4.6.1)
Requirement already satisfied: Flask>=0.9 in /usr/lib/python3/dist-packages (from flask-socketio) (1.0.2)
Requirement already satisfied: six>=1.9.0 in /usr/lib/python3/dist-packages (from python-socketio<5,>=4.3.0->flask-socketio) (1.12.0)
Requirement already satisfied: python-engineio<4,>=3.13.0 in /usr/local/lib/python3.7/dist-packages (from python-socketio<5,>=4.3.0->flask-socketio) (3.14.2)
dependency failed to install flask-socketio
checking for flask-babel...done
checking for python3-wxgtk4.0...python3-wxgtk4.0 not found
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
python3-wxgtk4.0 est déjà la version la plus récente (4.0.4+dfsg-2).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 1 non mis à jour.
install dependency python3-wxgtk4.0 success
checking for opengl...done
checking for pyglet...done
checking for pywavefront...done
checking for data...data not found
Clonage dans 'pypilot_data'...
remote: Enumerating objects: 16, done.
remote: Counting objects: 100% (16/16), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 16 (delta 0), reused 13 (delta 0), pack-reused 0
Dépaquetage des objets: 100% (16/16), fait.
'pypilot_data/README.md' -> '/home/pi/pypilot/README.md'
'pypilot_data/arduino/weathersensors/font.ttf' -> '/home/pi/pypilot/arduino/weathersensors/font.ttf'
'pypilot_data/hat/font.ttf' -> '/home/pi/pypilot/hat/font.ttf'
'pypilot_data/ui/Vagabond.mtl' -> '/home/pi/pypilot/ui/Vagabond.mtl'
'pypilot_data/ui/Vagabond.obj' -> '/home/pi/pypilot/ui/Vagabond.obj'
'pypilot_data/ui/compass.png' -> '/home/pi/pypilot/ui/compass.png'
'pypilot_data/web/static/font/Roboto-Regular.ttf' -> '/home/pi/pypilot/web/static/font/Roboto-Regular.ttf'
install dependency data success


summary of pypilot dependencies
autopilot core autopilot or imu-only mode:SUCCESS
optimize (recommended) core autopilot operations:SUCCESS
signalk communicate with signalk-node-server distributed with openploter:SUCCESS
hat SPI lcd keypad, and remote control interface:SUCCESS
web web browser control:failed to detect after installing flask-socketio
python_gui python scripts for control and configuration:SUCCESS
data data files used by various pypilot components:SUCCESS


running install
running bdist_egg
running egg_info
creating pypilot.egg-info
writing pypilot.egg-info/PKG-INFO
writing dependency_links to pypilot.egg-info/dependency_links.txt
writing entry points to pypilot.egg-info/entry_points.txt
writing top-level names to pypilot.egg-info/top_level.txt
writing manifest file 'pypilot.egg-info/SOURCES.txt'
reading manifest file 'pypilot.egg-info/SOURCES.txt'
writing manifest file 'pypilot.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/pypilot
copying pypilot/signalk.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/nonblockingpipe.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/quaternion.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/nmea.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/pyjson.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/vector.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/sensors.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/__init__.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/servo_calibration.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/calibration_fit.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/failedimports.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/client.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/boatimu.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/values.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/server.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/autogain.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/bufferedsocket.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/serialprobe.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/autopilot.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/gpsd.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/tacking.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/version.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/resolv.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/servo.py -> build/lib.linux-armv7l-3.7/pypilot
copying pypilot/rudder.py -> build/lib.linux-armv7l-3.7/pypilot
creating build/lib.linux-armv7l-3.7/pypilot/arduino_servo
copying pypilot/arduino_servo/arduino_servo_python.py -> build/lib.linux-armv7l-3.7/pypilot/arduino_servo
copying pypilot/arduino_servo/__init__.py -> build/lib.linux-armv7l-3.7/pypilot/arduino_servo
creating build/lib.linux-armv7l-3.7/pypilot/pilots
copying pypilot/pilots/learning.py -> build/lib.linux-armv7l-3.7/pypilot/pilots
copying pypilot/pilots/__init__.py -> build/lib.linux-armv7l-3.7/pypilot/pilots
copying pypilot/pilots/basic.py -> build/lib.linux-armv7l-3.7/pypilot/pilots
copying pypilot/pilots/absolute.py -> build/lib.linux-armv7l-3.7/pypilot/pilots
copying pypilot/pilots/intellect.py -> build/lib.linux-armv7l-3.7/pypilot/pilots
copying pypilot/pilots/pilot.py -> build/lib.linux-armv7l-3.7/pypilot/pilots
copying pypilot/pilots/simple.py -> build/lib.linux-armv7l-3.7/pypilot/pilots
copying pypilot/pilots/wind.py -> build/lib.linux-armv7l-3.7/pypilot/pilots
creating build/lib.linux-armv7l-3.7/pypilot/linebuffer
copying pypilot/linebuffer/__init__.py -> build/lib.linux-armv7l-3.7/pypilot/linebuffer
creating build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/gpio.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/config.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/arduino.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/wifi_esp32.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/lcd_esp32.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/lircd.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/glut.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/upy_client.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/__init__.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/font.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/web.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/lcd.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/gpio_esp32.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/testlirc.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/menu.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/hat.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/page.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/gettext_esp32.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/test.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/boot.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/config_esp32.py -> build/lib.linux-armv7l-3.7/pypilot/hat
copying hat/testrf.py -> build/lib.linux-armv7l-3.7/pypilot/hat
creating build/lib.linux-armv7l-3.7/pypilot/web
copying web/tinypilot.py -> build/lib.linux-armv7l-3.7/pypilot/web
copying web/__init__.py -> build/lib.linux-armv7l-3.7/pypilot/web
copying web/web.py -> build/lib.linux-armv7l-3.7/pypilot/web
creating build/lib.linux-armv7l-3.7/pypilot/ui
copying ui/client_wx.py -> build/lib.linux-armv7l-3.7/pypilot/ui
copying ui/boatplot.py -> build/lib.linux-armv7l-3.7/pypilot/ui
copying ui/autopilot_control_ui.py -> build/lib.linux-armv7l-3.7/pypilot/ui
copying ui/__init__.py -> build/lib.linux-armv7l-3.7/pypilot/ui
copying ui/calibration_plot.py -> build/lib.linux-armv7l-3.7/pypilot/ui
copying ui/scope_wx.py -> build/lib.linux-armv7l-3.7/pypilot/ui
copying ui/autopilot_control.py -> build/lib.linux-armv7l-3.7/pypilot/ui
copying ui/scope_ui.py -> build/lib.linux-armv7l-3.7/pypilot/ui
copying ui/autopilot_calibration.py -> build/lib.linux-armv7l-3.7/pypilot/ui
copying ui/scope.py -> build/lib.linux-armv7l-3.7/pypilot/ui
copying ui/shape.py -> build/lib.linux-armv7l-3.7/pypilot/ui
creating build/lib.linux-armv7l-3.7/pypilot/hat/ugfx
copying hat/ugfx/__init__.py -> build/lib.linux-armv7l-3.7/pypilot/hat/ugfx
copying hat/ugfx/generate_version.py -> build/lib.linux-armv7l-3.7/pypilot/hat/ugfx
copying hat/ugfx/ugfx_mkfont.py -> build/lib.linux-armv7l-3.7/pypilot/hat/ugfx
copying hat/font.ttf -> build/lib.linux-armv7l-3.7/pypilot/hat
creating build/lib.linux-armv7l-3.7/pypilot/hat/static
copying hat/static/hat_config.js -> build/lib.linux-armv7l-3.7/pypilot/hat/static
copying hat/static/jquery.min.js -> build/lib.linux-armv7l-3.7/pypilot/hat/static
copying hat/static/w3.css -> build/lib.linux-armv7l-3.7/pypilot/hat/static
copying hat/static/socket.io.min.js -> build/lib.linux-armv7l-3.7/pypilot/hat/static
copying hat/static/index.css -> build/lib.linux-armv7l-3.7/pypilot/hat/static
creating build/lib.linux-armv7l-3.7/pypilot/hat/templates
copying hat/templates/index.html -> build/lib.linux-armv7l-3.7/pypilot/hat/templates
creating build/lib.linux-armv7l-3.7/pypilot/web/static
copying web/static/pypilot_control.js -> build/lib.linux-armv7l-3.7/pypilot/web/static
copying web/static/calibration_plot.js -> build/lib.linux-armv7l-3.7/pypilot/web/static
copying web/static/jquery.min.js -> build/lib.linux-armv7l-3.7/pypilot/web/static
copying web/static/w3.css -> build/lib.linux-armv7l-3.7/pypilot/web/static
copying web/static/socket.io.min.js -> build/lib.linux-armv7l-3.7/pypilot/web/static
copying web/static/dark_theme.css -> build/lib.linux-armv7l-3.7/pypilot/web/static
copying web/static/index.css -> build/lib.linux-armv7l-3.7/pypilot/web/static
creating build/lib.linux-armv7l-3.7/pypilot/web/templates
copying web/templates/index.html -> build/lib.linux-armv7l-3.7/pypilot/web/templates
copying web/templates/wifi.html -> build/lib.linux-armv7l-3.7/pypilot/web/templates
copying web/templates/calibrationplot.html -> build/lib.linux-armv7l-3.7/pypilot/web/templates
copying ui/compass.png -> build/lib.linux-armv7l-3.7/pypilot/ui
copying ui/Vagabond.mtl -> build/lib.linux-armv7l-3.7/pypilot/ui
copying ui/Vagabond.obj -> build/lib.linux-armv7l-3.7/pypilot/ui
running build_ext
building 'pypilot/arduino_servo/_arduino_servo' extension
swigging pypilot/arduino_servo/arduino_servo.i to pypilot/arduino_servo/arduino_servo_wrap.cpp
swig -python -c++ -o pypilot/arduino_servo/arduino_servo_wrap.cpp pypilot/arduino_servo/arduino_servo.i
creating build/temp.linux-armv7l-3.7
creating build/temp.linux-armv7l-3.7/pypilot
creating build/temp.linux-armv7l-3.7/pypilot/arduino_servo
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c pypilot/arduino_servo/arduino_servo.cpp -o build/temp.linux-armv7l-3.7/pypilot/arduino_servo/arduino_servo.o -Wno-unused-result
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c pypilot/arduino_servo/arduino_servo_eeprom.cpp -o build/temp.linux-armv7l-3.7/pypilot/arduino_servo/arduino_servo_eeprom.o -Wno-unused-result
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c pypilot/arduino_servo/arduino_servo_wrap.cpp -o build/temp.linux-armv7l-3.7/pypilot/arduino_servo/arduino_servo_wrap.o -Wno-unused-result
arm-linux-gnueabihf-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.7/pypilot/arduino_servo/arduino_servo.o build/temp.linux-armv7l-3.7/pypilot/arduino_servo/arduino_servo_eeprom.o build/temp.linux-armv7l-3.7/pypilot/arduino_servo/arduino_servo_wrap.o -o build/lib.linux-armv7l-3.7/pypilot/arduino_servo/_arduino_servo.cpython-37m-arm-linux-gnueabihf.so
building 'pypilot/linebuffer/_linebuffer' extension
swigging pypilot/linebuffer/linebuffer.i to pypilot/linebuffer/linebuffer_wrap.cpp
swig -python -c++ -o pypilot/linebuffer/linebuffer_wrap.cpp pypilot/linebuffer/linebuffer.i
creating build/temp.linux-armv7l-3.7/pypilot/linebuffer
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c pypilot/linebuffer/linebuffer.cpp -o build/temp.linux-armv7l-3.7/pypilot/linebuffer/linebuffer.o -Wno-unused-result
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c pypilot/linebuffer/linebuffer_wrap.cpp -o build/temp.linux-armv7l-3.7/pypilot/linebuffer/linebuffer_wrap.o -Wno-unused-result
arm-linux-gnueabihf-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.7/pypilot/linebuffer/linebuffer.o build/temp.linux-armv7l-3.7/pypilot/linebuffer/linebuffer_wrap.o -o build/lib.linux-armv7l-3.7/pypilot/linebuffer/_linebuffer.cpython-37m-arm-linux-gnueabihf.so
building 'pypilot/hat/ugfx/_ugfx' extension
swigging hat/ugfx/ugfx.i to hat/ugfx/ugfx_wrap.cpp
swig -python -c++ -DWIRINGPI -o hat/ugfx/ugfx_wrap.cpp hat/ugfx/ugfx.i
creating build/temp.linux-armv7l-3.7/hat
creating build/temp.linux-armv7l-3.7/hat/ugfx
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c hat/ugfx/ugfx.cpp -o build/temp.linux-armv7l-3.7/hat/ugfx/ugfx.o -Wno-unused-result -DWIRINGPI
hat/ugfx/ugfx.cpp: In constructor ‘surface::surface(const char*, int)’:
hat/ugfx/ugfx.cpp:131:33: warning: variable ‘bypp16’ set but not used [-Wunused-but-set-variable]
     uint16_t width16, height16, bypp16, colors16;
                                 ^~~~~~
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.7m -c hat/ugfx/ugfx_wrap.cpp -o build/temp.linux-armv7l-3.7/hat/ugfx/ugfx_wrap.o -Wno-unused-result -DWIRINGPI
arm-linux-gnueabihf-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.7/hat/ugfx/ugfx.o build/temp.linux-armv7l-3.7/hat/ugfx/ugfx_wrap.o -lwiringPi -o build/lib.linux-armv7l-3.7/pypilot/hat/ugfx/_ugfx.cpython-37m-arm-linux-gnueabihf.so
creating build/bdist.linux-armv7l
creating build/bdist.linux-armv7l/egg
creating build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/signalk.py -> build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/nonblockingpipe.py -> build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/quaternion.py -> build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/nmea.py -> build/bdist.linux-armv7l/egg/pypilot
creating build/bdist.linux-armv7l/egg/pypilot/arduino_servo
copying build/lib.linux-armv7l-3.7/pypilot/arduino_servo/arduino_servo_python.py -> build/bdist.linux-armv7l/egg/pypilot/arduino_servo
copying build/lib.linux-armv7l-3.7/pypilot/arduino_servo/_arduino_servo.cpython-37m-arm-linux-gnueabihf.so -> build/bdist.linux-armv7l/egg/pypilot/arduino_servo
copying build/lib.linux-armv7l-3.7/pypilot/arduino_servo/__init__.py -> build/bdist.linux-armv7l/egg/pypilot/arduino_servo
copying build/lib.linux-armv7l-3.7/pypilot/pyjson.py -> build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/vector.py -> build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/sensors.py -> build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/__init__.py -> build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/servo_calibration.py -> build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/calibration_fit.py -> build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/failedimports.py -> build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/client.py -> build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/boatimu.py -> build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/values.py -> build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/server.py -> build/bdist.linux-armv7l/egg/pypilot
creating build/bdist.linux-armv7l/egg/pypilot/pilots
copying build/lib.linux-armv7l-3.7/pypilot/pilots/learning.py -> build/bdist.linux-armv7l/egg/pypilot/pilots
copying build/lib.linux-armv7l-3.7/pypilot/pilots/__init__.py -> build/bdist.linux-armv7l/egg/pypilot/pilots
copying build/lib.linux-armv7l-3.7/pypilot/pilots/basic.py -> build/bdist.linux-armv7l/egg/pypilot/pilots
copying build/lib.linux-armv7l-3.7/pypilot/pilots/absolute.py -> build/bdist.linux-armv7l/egg/pypilot/pilots
copying build/lib.linux-armv7l-3.7/pypilot/pilots/intellect.py -> build/bdist.linux-armv7l/egg/pypilot/pilots
copying build/lib.linux-armv7l-3.7/pypilot/pilots/pilot.py -> build/bdist.linux-armv7l/egg/pypilot/pilots
copying build/lib.linux-armv7l-3.7/pypilot/pilots/simple.py -> build/bdist.linux-armv7l/egg/pypilot/pilots
copying build/lib.linux-armv7l-3.7/pypilot/pilots/wind.py -> build/bdist.linux-armv7l/egg/pypilot/pilots
copying build/lib.linux-armv7l-3.7/pypilot/autogain.py -> build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/bufferedsocket.py -> build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/serialprobe.py -> build/bdist.linux-armv7l/egg/pypilot
creating build/bdist.linux-armv7l/egg/pypilot/linebuffer
copying build/lib.linux-armv7l-3.7/pypilot/linebuffer/_linebuffer.cpython-37m-arm-linux-gnueabihf.so -> build/bdist.linux-armv7l/egg/pypilot/linebuffer
copying build/lib.linux-armv7l-3.7/pypilot/linebuffer/__init__.py -> build/bdist.linux-armv7l/egg/pypilot/linebuffer
copying build/lib.linux-armv7l-3.7/pypilot/autopilot.py -> build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/gpsd.py -> build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/tacking.py -> build/bdist.linux-armv7l/egg/pypilot
creating build/bdist.linux-armv7l/egg/pypilot/hat
creating build/bdist.linux-armv7l/egg/pypilot/hat/templates
copying build/lib.linux-armv7l-3.7/pypilot/hat/templates/index.html -> build/bdist.linux-armv7l/egg/pypilot/hat/templates
copying build/lib.linux-armv7l-3.7/pypilot/hat/gpio.py -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/config.py -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/arduino.py -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/wifi_esp32.py -> build/bdist.linux-armv7l/egg/pypilot/hat
creating build/bdist.linux-armv7l/egg/pypilot/hat/static
copying build/lib.linux-armv7l-3.7/pypilot/hat/static/hat_config.js -> build/bdist.linux-armv7l/egg/pypilot/hat/static
copying build/lib.linux-armv7l-3.7/pypilot/hat/static/jquery.min.js -> build/bdist.linux-armv7l/egg/pypilot/hat/static
copying build/lib.linux-armv7l-3.7/pypilot/hat/static/w3.css -> build/bdist.linux-armv7l/egg/pypilot/hat/static
copying build/lib.linux-armv7l-3.7/pypilot/hat/static/socket.io.min.js -> build/bdist.linux-armv7l/egg/pypilot/hat/static
copying build/lib.linux-armv7l-3.7/pypilot/hat/static/index.css -> build/bdist.linux-armv7l/egg/pypilot/hat/static
copying build/lib.linux-armv7l-3.7/pypilot/hat/lcd_esp32.py -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/lircd.py -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/glut.py -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/upy_client.py -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/__init__.py -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/font.py -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/web.py -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/font.ttf -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/lcd.py -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/gpio_esp32.py -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/testlirc.py -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/menu.py -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/hat.py -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/page.py -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/gettext_esp32.py -> build/bdist.linux-armv7l/egg/pypilot/hat
creating build/bdist.linux-armv7l/egg/pypilot/hat/ugfx
copying build/lib.linux-armv7l-3.7/pypilot/hat/ugfx/__init__.py -> build/bdist.linux-armv7l/egg/pypilot/hat/ugfx
copying build/lib.linux-armv7l-3.7/pypilot/hat/ugfx/generate_version.py -> build/bdist.linux-armv7l/egg/pypilot/hat/ugfx
copying build/lib.linux-armv7l-3.7/pypilot/hat/ugfx/_ugfx.cpython-37m-arm-linux-gnueabihf.so -> build/bdist.linux-armv7l/egg/pypilot/hat/ugfx
copying build/lib.linux-armv7l-3.7/pypilot/hat/ugfx/ugfx_mkfont.py -> build/bdist.linux-armv7l/egg/pypilot/hat/ugfx
copying build/lib.linux-armv7l-3.7/pypilot/hat/test.py -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/boot.py -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/config_esp32.py -> build/bdist.linux-armv7l/egg/pypilot/hat
copying build/lib.linux-armv7l-3.7/pypilot/hat/testrf.py -> build/bdist.linux-armv7l/egg/pypilot/hat
creating build/bdist.linux-armv7l/egg/pypilot/web
copying build/lib.linux-armv7l-3.7/pypilot/web/tinypilot.py -> build/bdist.linux-armv7l/egg/pypilot/web
creating build/bdist.linux-armv7l/egg/pypilot/web/templates
copying build/lib.linux-armv7l-3.7/pypilot/web/templates/index.html -> build/bdist.linux-armv7l/egg/pypilot/web/templates
copying build/lib.linux-armv7l-3.7/pypilot/web/templates/wifi.html -> build/bdist.linux-armv7l/egg/pypilot/web/templates
copying build/lib.linux-armv7l-3.7/pypilot/web/templates/calibrationplot.html -> build/bdist.linux-armv7l/egg/pypilot/web/templates
creating build/bdist.linux-armv7l/egg/pypilot/web/static
copying build/lib.linux-armv7l-3.7/pypilot/web/static/pypilot_control.js -> build/bdist.linux-armv7l/egg/pypilot/web/static
copying build/lib.linux-armv7l-3.7/pypilot/web/static/calibration_plot.js -> build/bdist.linux-armv7l/egg/pypilot/web/static
copying build/lib.linux-armv7l-3.7/pypilot/web/static/jquery.min.js -> build/bdist.linux-armv7l/egg/pypilot/web/static
copying build/lib.linux-armv7l-3.7/pypilot/web/static/w3.css -> build/bdist.linux-armv7l/egg/pypilot/web/static
copying build/lib.linux-armv7l-3.7/pypilot/web/static/socket.io.min.js -> build/bdist.linux-armv7l/egg/pypilot/web/static
copying build/lib.linux-armv7l-3.7/pypilot/web/static/dark_theme.css -> build/bdist.linux-armv7l/egg/pypilot/web/static
copying build/lib.linux-armv7l-3.7/pypilot/web/static/index.css -> build/bdist.linux-armv7l/egg/pypilot/web/static
copying build/lib.linux-armv7l-3.7/pypilot/web/__init__.py -> build/bdist.linux-armv7l/egg/pypilot/web
copying build/lib.linux-armv7l-3.7/pypilot/web/web.py -> build/bdist.linux-armv7l/egg/pypilot/web
copying build/lib.linux-armv7l-3.7/pypilot/version.py -> build/bdist.linux-armv7l/egg/pypilot
creating build/bdist.linux-armv7l/egg/pypilot/ui
copying build/lib.linux-armv7l-3.7/pypilot/ui/client_wx.py -> build/bdist.linux-armv7l/egg/pypilot/ui
copying build/lib.linux-armv7l-3.7/pypilot/ui/Vagabond.obj -> build/bdist.linux-armv7l/egg/pypilot/ui
copying build/lib.linux-armv7l-3.7/pypilot/ui/boatplot.py -> build/bdist.linux-armv7l/egg/pypilot/ui
copying build/lib.linux-armv7l-3.7/pypilot/ui/autopilot_control_ui.py -> build/bdist.linux-armv7l/egg/pypilot/ui
copying build/lib.linux-armv7l-3.7/pypilot/ui/__init__.py -> build/bdist.linux-armv7l/egg/pypilot/ui
copying build/lib.linux-armv7l-3.7/pypilot/ui/calibration_plot.py -> build/bdist.linux-armv7l/egg/pypilot/ui
copying build/lib.linux-armv7l-3.7/pypilot/ui/scope_wx.py -> build/bdist.linux-armv7l/egg/pypilot/ui
copying build/lib.linux-armv7l-3.7/pypilot/ui/autopilot_control.py -> build/bdist.linux-armv7l/egg/pypilot/ui
copying build/lib.linux-armv7l-3.7/pypilot/ui/scope_ui.py -> build/bdist.linux-armv7l/egg/pypilot/ui
copying build/lib.linux-armv7l-3.7/pypilot/ui/autopilot_calibration.py -> build/bdist.linux-armv7l/egg/pypilot/ui
copying build/lib.linux-armv7l-3.7/pypilot/ui/Vagabond.mtl -> build/bdist.linux-armv7l/egg/pypilot/ui
copying build/lib.linux-armv7l-3.7/pypilot/ui/scope.py -> build/bdist.linux-armv7l/egg/pypilot/ui
copying build/lib.linux-armv7l-3.7/pypilot/ui/shape.py -> build/bdist.linux-armv7l/egg/pypilot/ui
copying build/lib.linux-armv7l-3.7/pypilot/ui/compass.png -> build/bdist.linux-armv7l/egg/pypilot/ui
copying build/lib.linux-armv7l-3.7/pypilot/resolv.py -> build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/servo.py -> build/bdist.linux-armv7l/egg/pypilot
copying build/lib.linux-armv7l-3.7/pypilot/rudder.py -> build/bdist.linux-armv7l/egg/pypilot
byte-compiling build/bdist.linux-armv7l/egg/pypilot/signalk.py to signalk.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/nonblockingpipe.py to nonblockingpipe.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/quaternion.py to quaternion.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/nmea.py to nmea.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/arduino_servo/arduino_servo_python.py to arduino_servo_python.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/arduino_servo/__init__.py to __init__.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/pyjson.py to pyjson.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/vector.py to vector.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/sensors.py to sensors.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/__init__.py to __init__.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/servo_calibration.py to servo_calibration.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/calibration_fit.py to calibration_fit.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/failedimports.py to failedimports.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/client.py to client.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/boatimu.py to boatimu.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/values.py to values.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/server.py to server.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/pilots/learning.py to learning.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/pilots/__init__.py to __init__.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/pilots/basic.py to basic.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/pilots/absolute.py to absolute.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/pilots/intellect.py to intellect.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/pilots/pilot.py to pilot.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/pilots/simple.py to simple.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/pilots/wind.py to wind.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/autogain.py to autogain.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/bufferedsocket.py to bufferedsocket.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/serialprobe.py to serialprobe.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/linebuffer/__init__.py to __init__.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/autopilot.py to autopilot.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/gpsd.py to gpsd.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/tacking.py to tacking.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/gpio.py to gpio.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/config.py to config.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/arduino.py to arduino.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/wifi_esp32.py to wifi_esp32.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/lcd_esp32.py to lcd_esp32.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/lircd.py to lircd.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/glut.py to glut.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/upy_client.py to upy_client.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/__init__.py to __init__.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/font.py to font.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/web.py to web.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/lcd.py to lcd.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/gpio_esp32.py to gpio_esp32.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/testlirc.py to testlirc.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/menu.py to menu.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/hat.py to hat.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/page.py to page.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/gettext_esp32.py to gettext_esp32.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/ugfx/__init__.py to __init__.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/ugfx/generate_version.py to generate_version.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/ugfx/ugfx_mkfont.py to ugfx_mkfont.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/test.py to test.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/boot.py to boot.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/config_esp32.py to config_esp32.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/testrf.py to testrf.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/web/tinypilot.py to tinypilot.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/web/__init__.py to __init__.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/web/web.py to web.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/version.py to version.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/ui/client_wx.py to client_wx.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/ui/boatplot.py to boatplot.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/ui/autopilot_control_ui.py to autopilot_control_ui.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/ui/__init__.py to __init__.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/ui/calibration_plot.py to calibration_plot.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/ui/scope_wx.py to scope_wx.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/ui/autopilot_control.py to autopilot_control.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/ui/scope_ui.py to scope_ui.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/ui/autopilot_calibration.py to autopilot_calibration.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/ui/scope.py to scope.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/ui/shape.py to shape.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/resolv.py to resolv.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/servo.py to servo.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/rudder.py to rudder.cpython-37.pyc
creating stub loader for pypilot/arduino_servo/_arduino_servo.cpython-37m-arm-linux-gnueabihf.so
creating stub loader for pypilot/linebuffer/_linebuffer.cpython-37m-arm-linux-gnueabihf.so
creating stub loader for pypilot/hat/ugfx/_ugfx.cpython-37m-arm-linux-gnueabihf.so
byte-compiling build/bdist.linux-armv7l/egg/pypilot/arduino_servo/_arduino_servo.py to _arduino_servo.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/linebuffer/_linebuffer.py to _linebuffer.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/ugfx/_ugfx.py to _ugfx.cpython-37.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
copying pypilot.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying pypilot.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying pypilot.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying pypilot.egg-info/entry_points.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying pypilot.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
writing build/bdist.linux-armv7l/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
pypilot.__pycache__.autopilot.cpython-37: module references __file__
pypilot.__pycache__.boatimu.cpython-37: module references __file__
pypilot.__pycache__.client.cpython-37: module references __file__
pypilot.__pycache__.server.cpython-37: module references __file__
pypilot.arduino_servo.__pycache__._arduino_servo.cpython-37: module references __file__
pypilot.hat.__pycache__.font.cpython-37: module references __file__
pypilot.hat.__pycache__.hat.cpython-37: module references __file__
pypilot.hat.__pycache__.page.cpython-37: module references __file__
pypilot.hat.__pycache__.web.cpython-37: module references __file__
pypilot.hat.ugfx.__pycache__._ugfx.cpython-37: module references __file__
pypilot.linebuffer.__pycache__._linebuffer.cpython-37: module references __file__
pypilot.pilots.__pycache__.__init__.cpython-37: module references __file__
pypilot.ui.__pycache__.autopilot_calibration.cpython-37: module references __file__
pypilot.ui.__pycache__.boatplot.cpython-37: module references __file__
pypilot.ui.__pycache__.client_wx.cpython-37: module references __file__
pypilot.ui.__pycache__.scope_wx.cpython-37: module references __file__
pypilot.web.__pycache__.web.cpython-37: module references __file__
creating dist
creating 'dist/pypilot-0.25-py3.7-linux-armv7l.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing pypilot-0.25-py3.7-linux-armv7l.egg
removing '/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg' (and everything under it)
creating /usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg
Extracting pypilot-0.25-py3.7-linux-armv7l.egg to /usr/local/lib/python3.7/dist-packages
pypilot 0.25 is already the active version in easy-install.pth
Installing pypilot script to /usr/local/bin
Installing pypilot_boatimu script to /usr/local/bin
Installing pypilot_calibration script to /usr/local/bin
Installing pypilot_client script to /usr/local/bin
Installing pypilot_client_wx script to /usr/local/bin
Installing pypilot_control script to /usr/local/bin
Installing pypilot_hat script to /usr/local/bin
Installing pypilot_scope script to /usr/local/bin
Installing pypilot_servo script to /usr/local/bin
Installing pypilot_web script to /usr/local/bin

Installed /usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg
Processing dependencies for pypilot==0.25
Finished processing dependencies for pypilot==0.25
Reply
#18
You are already running pypilot. So it cannot give useful debugging output if you run two instances. You can stop the service with
systemctl stop pypilot. I am not sure why this is updating only once per second...

Try pypilot_boatimu and see what the rate is, but once pypilot is not running.
verify what is running with
ps aux | grep python

Hmm... as far as the dependencies, it seems you have installed older versions of the libraries manually with pip forcing the old versions... so this was needed for the older pypilot, but it will break the new version. My script tries to remove the old version via apt, but not via pip. So the web seems to not work because you forced older versions of the libraries.

I will work on the script and try removing old versions with pip uninstall.

Hopefully the script will force the right versions now.

Still interested to hear about the slow update or why it could happen. Most likely another process is trying to access the device.
Reply
#19
Starting fresh with a clean install of openplotter (V 2020-12-16), on a rasp4@4go. (in the last system, I had installed then removed the openplotter version of pypilot).
sudo apt-get update / upgrade, adding the arduino controller and GPS in serial app, then cloning from https://github.com/pypilot/pypilot.

sudo python3 setup.py install   runs without any issue and installs pypilot v0.25

then, running pypilot 

Code:
falling back to python nonblocking socket, will consume more cpu cannot import name 'linebuffer' from 'pypilot.linebuffer' (/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/linebuffer/__init__.py)

pypilot failed to import required modules.  Did you forget to run sudo python3 setup.py install?

running sudo python3 setup.py install a second time fixes(?) the issue. 

pypilot stops running and returns this :

Code:
imu process 3585
nmea process 3590
listening on port 20220 for nmea connections
loading servo calibration /home/pi/.pypilot/servocalibration
WARNING: using default servo calibration!!
Loaded Pilots: ['basic', 'learning', 'simple', 'absolute']
warning: failed to open special file /dev/watchdog0 for writing
        cannot stroke the watchdog
gps process 3593
pypilotServer process 3596
failed to load /home/pi/.pypilot/pypilot.conf [Errno 2] No such file or directory: '/home/pi/.pypilot/pypilot.conf'
Process Process-6:
made imu process realtime
Using settings file RTIMULib.ini
Settings file not found. Using defaults and creating settings file
Detected MPU9250/MPU9255 at standard address
Traceback (most recent call last):
Using fusion algorithm Kalman STATE4
IMU Name: MPU-925x
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/server.py", line 332, in load
   self.load_file(open(default_persistent_path))
min/max compass calibration not in use
Using ellipsoid compass calibration
Using accel calibration
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.pypilot/pypilot.conf'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
   self.run()
 File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
   self._target(*self._args, **self._kwargs)
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/server.py", line 394, in run
   self.init()
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/server.py", line 423, in init
   self.values = ServerValues(self)
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/server.py", line 206, in __init__
   self.load()
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/server.py", line 337, in load
   file = open(persist_fail, 'a')
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.pypilot/persist_fail'
Traceback (most recent call last):
 File "/usr/local/bin/pypilot", line 11, in <module>
   load_entry_point('pypilot==0.25', 'console_scripts', 'pypilot')()
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 386, in main
   ap.iteration()
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 310, in iteration
   self.sensors.poll()
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/sensors.py", line 164, in poll
   self.nmea.poll()
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/nmea.py", line 335, in poll
   self.probe_serial()
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/nmea.py", line 421, in probe_serial
   self.probedevicepath = serialprobe.probe('nmea%d' % self.probeindex, [38400, 4800], 8)
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/serialprobe.py", line 242, in probe
   if enumerate_devices():
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/serialprobe.py", line 163, in enumerate_devices
   read_last_working_devices()
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/serialprobe.py", line 54, in read_last_working_devices
   for filename in os.listdir(pypilot_dir):
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.pypilot/'
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
 File "/usr/lib/python3.7/multiprocessing/popen_fork.py", line 28, in poll
   pid, sts = os.waitpid(self.pid, flag)
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/autopilot.py", line 169, in cleanup
   raise KeyboardInterrupt # to get backtrace on all processes
KeyboardInterrupt
closing autopilot
terminate calibration process

I gave pypilot_boatimu a try, it worked, and judging by the refresh rate of the information in the terminal, I would say it ran at about 4 to 6 refreshed per second.
here is the output 
Code:
imu process 1362
pypilotServer process 1364
failed to load /home/pi/.pypilot/pypilot.conf [Errno 2] No such file or directory: '/home/pi/.pypilot/pypilot.conf'
Process Process-3:
Traceback (most recent call last):
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/server.py", line 332, in load
   self.load_file(open(default_persistent_path))
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.pypilot/pypilot.conf'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/usr/lib/python3.7/multiprocessing/process.py", line 297, in _bootstrap
   self.run()
 File "/usr/lib/python3.7/multiprocessing/process.py", line 99, in run
   self._target(*self._args, **self._kwargs)
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/server.py", line 394, in run
   self.init()
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/server.py", line 423, in init
   self.values = ServerValues(self)
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/server.py", line 206, in __init__
   self.load()
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.25-py3.7-linux-armv7l.egg/pypilot/server.py", line 337, in load
   file = open(persist_fail, 'a')
FileNotFoundError: [Errno 2] No such file or directory: '/home/pi/.pypilot/persist_fail'
made imu process realtime
Using settings file RTIMULib.ini
Settings file RTIMULib.ini loaded
Detected MPU9250/MPU9255 at standard address
Using fusion algorithm Kalman STATE4
IMU Name: MPU-925x
min/max compass calibration not in use
Using ellipsoid compass calibration
Using accel calibration
MPU-925x init complete
calibration process 13617 roll -176.83042102012172 heading 89.40022002455703
calibration loaded, startingll -176.5742518850847 heading 89.40354398969419
pitch -0.9196784228614798 roll -175.89673271415342 heading 89.51804941709719

Maybe a forgot a step somewhere  ?
Reply
#20
hmm... Thank you for being persistent!

It really is picky about order of steps. You found another issue! I believe installing pypilot from openplotter created some files. I am assuming you just did git clone and the setup.py install script (twice and I will look into this also) correct? You did not install the old version from openplotter first. I need to be smarter to handle all cases.

I think the issue is the ~/.pypilot directory is not created . I will fix this, but could you try:

mkdir ~/.pypilot

I will make the program create this directory if it is missing.
also, it is difficult to see the rate from boatimu. Could you open a second terminal and try:

pypilot_client -c imu.rate

and

pypilot_client -c imu.gyro

Try with both autopilot and boatimu
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)