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
Webapp - No connection (newest op image)
#1
I've installed the newest openplotter headless image 2020-12-16-OpenPlotter-v2-Headless-img
Then I installed Pypilot through the openplotter settings.

Pypilot itself works fine, but the Flask Web App does not have a connection with Pypilot server:

pypilot Server: Not Connected
Servo Flags:
Autopilot Errors:
Web Server Latency: N/A ms

How can I troubleshoot this? The app itself loads fine on port 8080 but it just doesn't have a connection with pypilot.

Pressing F12 in the browser says: 

Failed to load resource: the server responded with a status of 400 (BAD REQUEST)
Reply
#2
are you sure that pypilot is actually running?

What if you run "pypilot_client" on a terminal?
Reply
#3
I've tested with the following commands:


Code:
pi@openplotter:/etc/systemd/system $ sudo systemctl status pypilot_client
Unit pypilot_client.service could not be found.
pi@openplotter:/etc/systemd/system $ sudo systemctl status pypilot
● pypilot.service - pypilot
   Loaded: loaded (/etc/systemd/system/pypilot.service; enabled; vendor preset: 
   Active: active (running) since Wed 2021-02-03 20:45:25 CET; 13h ago
 Main PID: 4688 (pypilot)
    Tasks: 6 (limit: 2063)
   CGroup: /system.slice/pypilot.service
           ├─4688 /usr/bin/python3 /usr/local/bin/pypilot
           ├─4689 /usr/bin/python3 /usr/local/bin/pypilot
           ├─4690 /usr/bin/python3 /usr/local/bin/pypilot
           ├─4692 /usr/bin/python3 /usr/local/bin/pypilot
           ├─4696 /usr/bin/python3 /usr/local/bin/pypilot
           └─4698 /usr/bin/python3 /usr/local/bin/pypilot

Warning: Journal has been rotated since unit was started. Log output is incomple

pi@openplotter:/etc/systemd/system $ sudo systemctl status pypilot_web
● pypilot_web.service - pypilot_web
   Loaded: loaded (/etc/systemd/system/pypilot_web.service; enabled; vendor pres
   Active: active (running) since Wed 2021-02-03 14:41:10 CET; 19h ago
 Main PID: 11135 (pypilot_web)
    Tasks: 2 (limit: 2063)
   CGroup: /system.slice/pypilot_web.service
           └─11135 /usr/bin/python3 /usr/local/bin/pypilot_web 8080

Warning: Journal has been rotated since unit was started. Log output is incomple

pi@openplotter:/etc/systemd/system $ sudo systemctl status pypilot_boatimu
● pypilot_boatimu.service - pypilot_boatimu
   Loaded: loaded (/etc/systemd/system/pypilot_boatimu.service; disabled; vendor
   Active: inactive (dead)
lines 1-3/3 (END)

I suppose the pypilot_client is located somewhere else, because systemctl couldn't find it and I din't see it in the etc/systemd/system folder
Found a separate script here:


Code:
pi@openplotter:~/pypilot/pypilot $ python client.py
('WARNING: python ujson library failed, parsing will consume more cpu', ImportError('No module named ujson',))
('falling back to python nonblocking socket, will consume more cpu', ImportError('No module named pypilot.linebuffer',))
pypilot failed to import required modules.  Did you forget to run sudo python3 setup.py install?
pypilot requires python version 3.  python version is 2.7.16 (default, Oct 10 2019, 22:02:15) 
[GCC 8.3.0]

Then tried:


Code:
pi@openplotter:~/pypilot/pypilot $ python3 client.py

failed to connect to False
So then I went on to check the dependencies that I see in the Github Pypilot readme:
server dependencies (required): RTIMULIB2 python-gps python-serial libpython-dev python-numpy python-scipy swig

                    (recommended): ujson pyudev

The ones I underlined where not installed, and when trying RTIMULIB2 I got an error saying:
Code:
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting RTIMULIB2
Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/rtimulib2/

I think may be the module is installed before however, and after installation of the missing dependencies I tried again:

Code:
pi@openplotter:~/pypilot/pypilot $ python client.py
('falling back to python nonblocking socket, will consume more cpu', ImportError('No module named pypilot.linebuffer',))
pypilot failed to import required modules.  Did you forget to run sudo python3 setup.py install?
pypilot requires python version 3.  python version is 2.7.16 (default, Oct 10 2019, 22:02:15) 
[GCC 8.3.0]


So, I think there is something wrong with the installation although it is an out-of-the-box openplotter app.
I went on to continue with the Github installation and try if it would solve the error.
This gave a few invalid syntax errors, but not sure if they are critical:

Code:
pi@openplotter:~/pypilot $ sudo python3 setup.py install
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
copying pypilot/arduino_servo/arduino_servo.py -> build/lib.linux-armv7l-3.7/pypilot/arduino_servo
copying pypilot/linebuffer/linebuffer.py -> build/lib.linux-armv7l-3.7/pypilot/linebuffer
copying hat/ugfx/ugfx.py -> build/lib.linux-armv7l-3.7/pypilot/hat/ugfx
running build_ext
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/arduino_servo/arduino_servo.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/linebuffer.py -> 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
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/ugfx.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/arduino_servo/arduino_servo.py to arduino_servo.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
 File "build/bdist.linux-armv7l/egg/pypilot/failedimports.py", line 14
   print 'pypilot requires python version 3.  python version is', sys.version
                                                               ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('pypilot requires python version 3.  python version is', sys.version)?

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
 File "build/bdist.linux-armv7l/egg/pypilot/pilots/intellect.py", line 205
   self.accuracy =
                  ^
SyntaxError: invalid syntax

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/linebuffer.py to linebuffer.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
 File "build/bdist.linux-armv7l/egg/pypilot/hat/config.py", line 1
   address = 10.10.10.177
                    ^
SyntaxError: invalid syntax

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/ugfx/__init__.py to __init__.cpython-37.pyc
byte-compiling build/bdist.linux-armv7l/egg/pypilot/hat/ugfx/ugfx.py to ugfx.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.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.hat.ugfx.__pycache__.ugfx.cpython-37: module references __file__
pypilot.linebuffer.__pycache__._linebuffer.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.23-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.23-py3.7-linux-armv7l.egg
removing '/usr/local/lib/python3.7/dist-packages/pypilot-0.23-py3.7-linux-armv7l.egg' (and everything under it)
creating /usr/local/lib/python3.7/dist-packages/pypilot-0.23-py3.7-linux-armv7l.egg
Extracting pypilot-0.23-py3.7-linux-armv7l.egg to /usr/local/lib/python3.7/dist-packages
 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.23-py3.7-linux-armv7l.egg/pypilot/failedimports.py", line 14
   print 'pypilot requires python version 3.  python version is', sys.version
                                                               ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('pypilot requires python version 3.  python version is', sys.version)?

 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.23-py3.7-linux-armv7l.egg/pypilot/hat/config.py", line 1
   address = 10.10.10.177
                    ^
SyntaxError: invalid syntax

 File "/usr/local/lib/python3.7/dist-packages/pypilot-0.23-py3.7-linux-armv7l.egg/pypilot/pilots/intellect.py", line 205
   self.accuracy =
                  ^
SyntaxError: invalid syntax

Removing pypilot 0.16 from easy-install.pth file
Adding pypilot 0.23 to easy-install.pth file
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.23-py3.7-linux-armv7l.egg
Processing dependencies for pypilot==0.23
Finished processing dependencies for pypilot==0.23
After this the pypilot openplotter app does not have a connection with the arduino anymore. So I uninstalled everything and installed the default openplotter app again.

I can control the pypilot with the default app and it is sync to arduino, just the WebApp does not work.
Reply
#4
Let me know if you solved this. I have the same problem. Pypilot app runs fine. WebApp and OpenOCN plugin don't connect. OpenOCN can see the data from signalk but it doesn't look like the Pypilot server is working. I am not very linux literate so I could use some help with it if you have a solution.
Thanks
Reply
#5
In the end I just reverted to another image I had lying around from the past, this has older versions and I will not upgrade OpenCPN or Pypilot on it.
Reply
#6
Any chance I could get that older image? I  tried the older image of Openpilot but it will no longer install pypilot as the version available isn't what it is looking for. I know Sean will be working on a resolution but I would like something that works before boating season in the NW! Maybe an image on dropbox?

Brad
Reply
#7
I'll try to cook something up for you. It is a highly modified image, with lot's of additions. I've even included an offline WikiPedia server, Guacamole remote desktop (rather than VNC) so it connects through a webpage and you don't need a client, also all the open sea map charts are on it. The image only fits on a 64GB SD card. It will take me a lot of work to shrink it, so I can upload it in a normal way. Would be much easier to just send you an SD, haha!

But, added value is OpenCPN and Pypilot is configured so gains are set properly (for a 10 ton steel sailboat and raymarine st4000) and also the route plugin works so it will actually follow a route without the software getting stuck.

If you are interested send me a PM.
Reply
#8
(2021-02-23, 10:58 AM)jamos.tan@gmail.com Wrote: I'll try to cook something up for you. It is a highly modified image, with lot's of additions. I've even included an offline WikiPedia server, Guacamole remote desktop (rather than VNC) so it connects through a webpage and you don't need a client, also all the open sea map charts are on it. The image only fits on a 64GB SD card. It will take me a lot of work to shrink it, so I can upload it in a normal way. Would be much easier to just send you an SD, haha!

But, added value is OpenCPN and Pypilot is configured so gains are set properly (for a 10 ton steel sailboat and raymarine st4000) and also the route plugin works so it will actually follow a route without the software getting stuck.

If you are interested send me a PM.

I am interested in the Route plugin? How did you fix it?
Reply
#9
(2021-02-23, 02:07 PM)rastam4n Wrote:
(2021-02-23, 10:58 AM)jamos.tan@gmail.com Wrote: I'll try to cook something up for you. It is a highly modified image, with lot's of additions. I've even included an offline WikiPedia server, Guacamole remote desktop (rather than VNC) so it connects through a webpage and you don't need a client, also all the open sea map charts are on it. The image only fits on a 64GB SD card. It will take me a lot of work to shrink it, so I can upload it in a normal way. Would be much easier to just send you an SD, haha!

But, added value is OpenCPN and Pypilot is configured so gains are set properly (for a 10 ton steel sailboat and raymarine st4000) and also the route plugin works so it will actually follow a route without the software getting stuck.

If you are interested send me a PM.

I am interested in the Route plugin? How did you fix it?

Hey there, I didn't really fix it although I found a configuration in which it wouldn't freeze OpenCPN. You need to be close to your next waypoint before you activate it. Nevertheless, I am now using the default route feature from OpenCPN and find this to be the most stable for now. It doesn't have the extra finetuning features like Sean's plugin, but it serves it's purpose for me.
Reply
#10
This seems to be related to the socket.io client library version. I've filed the issue in github https://github.com/pypilot/pypilot/issues/79.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)