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
Service fails after upgrading from GIT
Just upgraded from GIT, after this the pypilot services take ages to startup.
I test this by doing sudo systemctl status pypilot and sudo systemctl status pypilot_web.
Strange thing is, after these commands it says:

Loaded: loaded (/etc/systemd/system/pypilot_web.service; enabled; vendor preset
  Active: activating (auto-restart) (Result: exit-code) since Sun 2020-09-13 12:0
 Process: 2349 ExecStart=/usr/local/bin/pypilot_web 8080 (code=exited, status=1/F
Main PID: 2349 (code=exited, status=1/FAILURE)

Sep 13 12:05:03 openplotter systemd[1]: pypilot_web.service: Main process exited,
Sep 13 12:05:03 openplotter systemd[1]: pypilot_web.service: Failed with result 'e

And directly after this the services will be started and active.
However, two things are wrong now:

- webservice flask webpage cannot be loaded
- openplotter control wxwidgets app does not start when clicking the button

When troubleshooting I get these:

pi@openplotter:~/pypilot/web $ python
Traceback (most recent call last):
 File "", line 14, in <module>
   from flask_socketio import SocketIO, Namespace, emit, join_room, leave_room, \
ImportError: No module named flask_socketio

and this:

pi@openplotter:~/pypilot/pypilot $ python
('WARNING: python ujson library failed, parsing will consume more cpu', ImportError('No module named ujson',))
Traceback (most recent call last):
 File "", line 21, in <module>
   from pipeserver import pypilotPipeServer
 File "/home/pi/pypilot/pypilot/", line 15, in <module>
   from pypilot.server import pypilotServer, DEFAULT_PORT, default_persistent_path, LoadPersistentData
ImportError: cannot import name LoadPersistentData

Hope you can help!
It seems there are missing python packages... This is normally handled by the openplotter pypilot plugin to install/upgrade these, so I"m not sure why flask_socketio is missing.

Not sure what git you pulled but it's out of date. You will also need to use "python3" not "python" to run the scripts if your default python version is 2.
I've followed this manual:
Probably this one right...

For anyone having the same problems as me, I got these ones and had to override some:

pi@openplotter:~/openplotter-pypilot $ dpkg-buildpackage -b
dpkg-buildpackage: info: source package openplotter-pypilot
dpkg-buildpackage: info: source version 2.0.8-beta
dpkg-buildpackage: info: source distribution bionic
dpkg-buildpackage: info: source changed by Sailoog <>
dpkg-buildpackage: info: host architecture armhf
dpkg-source --before-build .
dpkg-checkbuilddeps: error: Unmet build dependencies: python3-all
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)

pi@openplotter:~/openplotter-pypilot $ cd ..
pi@openplotter:~ $ sudo dpkg -i openplotter-pypilot_x.x.x-xxx_all.deb
dpkg: error: cannot access archive 'openplotter-pypilot_x.x.x-xxx_all.deb': No such file or directory

I've overriden with the -d flag, but then I got this one:

dpkg-genchanges  >../openplotter-pypilot_2.0.8-beta_armhf.changes
dpkg-genchanges: info: including full source code in upload
dpkg-source --after-build .
dpkg-buildpackage: info: full upload; Debian-native package (full source is included)
signfile openplotter-pypilot_2.0.8-beta.dsc
gpg: keybox '/home/pi/.gnupg/pubring.kbx' created
gpg: skipped "Sailoog <>": No secret key
gpg: dpkg-sign.MIsvtqbj/openplotter-pypilot_2.0.8-beta.dsc: clear-sign failed: No secret key

dpkg-buildpackage: error: failed to sign .dsc file

Package was created anyway so could be ignored.
pypilot is installed in openplotter only for python3 not for python2 so dependencies are installed only for python3 too. You must run any pypilot script using just the entry points: "pypilot", "pypilot_web"... or the script using the python version: "python3", "python3"

Forum Jump:

Users browsing this thread: 1 Guest(s)