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
Pypilot Re-install Not working
#1
I have tried to re-install pypilot on a new sd card, when installing from git clone https://github.com/pypilot/pypilot it is removing the pypilot app from the menu, running from the command line will show it running with no GUI.  Have there been recent changes that are impacting this? Tried about 6 times from a fresh install and nothing seems to work.
Reply
#2
You should post any messages printed on the command line.
Reply
#3
(2022-02-08, 04:07 AM)seandepagnier Wrote: You should post any messages printed on the command line.

Hi Sean, sorry about that was running out in a hurry.  Here you go!

pi@openplotter:~ $ pypilot
autopilot start 1095.795504016
ERROR loading wind.py cannot import name 'HeadingOffset' from 'pypilot.autopilot' (/usr/local/lib/python3.7/dist-packages/pypilot/autopilot.py)   cannot import name 'HeadingOffset' from 'pypilot.autopilot' (/usr/local/lib/python3.7/dist-packages/pypilot/autopilot.py)
imu process 3477
nmea process 3481
listening on port 20220 for nmea connections
loading servo calibration /home/pi/.pypilot/servocalibration
WARNING: using default servo calibration!!
gps process 3485
Available Pilots: ['absolute', 'basic', 'basic2', 'basic3', 'simple']
warning: failed to open special file /dev/watchdog0 for writing
         cannot stroke the watchdog
pypilotServer process 3488
failed to load pypilot.conf not enough values to unpack (expected 2, got 1)
backup data failed as well not enough values to unpack (expected 2, got 1)
server setup has 5 pipes
made imu process realtime
Using settings file RTIMULib.ini
Settings file RTIMULib.ini loaded
Detected ICM20948 at standard address
Using fusion algorithm Kalman STATE4
IMU Name: ICM-20948
min/max compass calibration not in use
Using ellipsoid compass calibration
Using accel calibration
autopilot init complete 1096.071205745
ICM-20948 init complete
imu rate set to rate 20
gpsd connected
GPSD devices []
calibration loaded, starting 3476
servo probe ('/dev/ttyAMA0', 38400) 1101.141871418
server/client is running too _slowly_ 0.0871203050000986
signalk process 3482
signalk failed to read token /home/pi/.pypilot/signalk-token
signalk zeroconf service add openplotter._http._tcp.local. _http._tcp.local.
signalk server found 10.10.10.1:3000
signalk probe... 10.10.10.1:3000
signalk found ws://10.10.10.1:3000/signalk/v1/stream?subscribe=none
signalk post {'state': 'PENDING', 'requestId': '3c1ba26a-97aa-4177-a024-45dd735d1acc', 'statusCode': 202, 'href': '/signalk/v1/requests/3c1ba26a-97aa-4177-a024-45dd735d1acc', 'ip': '::ffff:10.10.10.1'}
signalk request access url http://10.10.10.1:3000/signalk/v1/reques...dd735d1acc
signalk see if token is ready http://10.10.10.1:3000/signalk/v1/reques...dd735d1acc {'state': 'PENDING', 'requestId': '3c1ba26a-97aa-4177-a024-45dd735d1acc', 'statusCode': 202, 'href': '/signalk/v1/requests/3c1ba26a-97aa-4177-a024-45dd735d1acc', 'ip': '::ffff:10.10.10.1'}
signalk see if token is ready http://10.10.10.1:3000/signalk/v1/reques...dd735d1acc {'state': 'PENDING', 'requestId': '3c1ba26a-97aa-4177-a024-45dd735d1acc', 'statusCode': 202, 'href': '/signalk/v1/requests/3c1ba26a-97aa-4177-a024-45dd735d1acc', 'ip': '::ffff:10.10.10.1'}
servo probe ('/dev/ttyAMA0', 38400) 1115.310180192
read imu running too _slowly_ 0.04123033799987752 0.05
signalk see if token is ready http://10.10.10.1:3000/signalk/v1/reques...dd735d1acc {'state': 'PENDING', 'requestId': '3c1ba26a-97aa-4177-a024-45dd735d1acc', 'statusCode': 202, 'href': '/signalk/v1/requests/3c1ba26a-97aa-4177-a024-45dd735d1acc', 'ip': '::ffff:10.10.10.1'}
servo probe ('/dev/ttyAMA0', 38400) 1129.43200663
server/client is running too _slowly_ 0.04981947499982198
signalk see if token is ready http://10.10.10.1:3000/signalk/v1/reques...dd735d1acc {'state': 'PENDING', 'requestId': '3c1ba26a-97aa-4177-a024-45dd735d1acc', 'statusCode': 202, 'href': '/signalk/v1/requests/3c1ba26a-97aa-4177-a024-45dd735d1acc', 'ip': '::ffff:10.10.10.1'}
servo probe ('/dev/ttyAMA0', 38400) 1143.585760058
signalk see if token is ready http://10.10.10.1:3000/signalk/v1/reques...dd735d1acc {'state': 'PENDING', 'requestId': '3c1ba26a-97aa-4177-a024-45dd735d1acc', 'statusCode': 202, 'href': '/signalk/v1/requests/3c1ba26a-97aa-4177-a024-45dd735d1acc', 'ip': '::ffff:10.10.10.1'}
servo probe ('/dev/ttyAMA0', 38400) 1157.724121943
signalk see if token is ready http://10.10.10.1:3000/signalk/v1/reques...dd735d1acc {'state': 'PENDING', 'requestId': '3c1ba26a-97aa-4177-a024-45dd735d1acc', 'statusCode': 202, 'href': '/signalk/v1/requests/3c1ba26a-97aa-4177-a024-45dd735d1acc', 'ip': '::ffff:10.10.10.1'}
server/client is running too _slowly_ 0.05388598400008959
signalk see if token is ready http://10.10.10.1:3000/signalk/v1/reques...dd735d1acc {'state': 'PENDING', 'requestId': '3c1ba26a-97aa-4177-a024-45dd735d1acc', 'statusCode': 202, 'href': '/signalk/v1/requests/3c1ba26a-97aa-4177-a024-45dd735d1acc', 'ip': '::ffff:10.10.10.1'}
servo probe ('/dev/ttyAMA0', 38400) 1171.91093847
signalk see if token is ready http://10.10.10.1:3000/signalk/v1/reques...dd735d1acc {'state': 'PENDING', 'requestId': '3c1ba26a-97aa-4177-a024-45dd735d1acc', 'statusCode': 202, 'href': '/signalk/v1/requests/3c1ba26a-97aa-4177-a024-45dd735d1acc', 'ip': '::ffff:10.10.10.1'}
servo probe ('/dev/ttyAMA0', 38400) 1186.049860835
server/client is running too _slowly_ 0.04918544399993152
signalk see if token is ready http://10.10.10.1:3000/signalk/v1/reques...dd735d1acc {'state': 'PENDING', 'requestId': '3c1ba26a-97aa-4177-a024-45dd735d1acc', 'statusCode': 202, 'href': '/signalk/v1/requests/3c1ba26a-97aa-4177-a024-45dd735d1acc', 'ip': '::ffff:10.10.10.1'}
servo probe ('/dev/ttyAMA0', 38400) 1200.202032481
signalk see if token is ready http://10.10.10.1:3000/signalk/v1/reques...dd735d1acc {'state': 'PENDING', 'requestId': '3c1ba26a-97aa-4177-a024-45dd735d1acc', 'statusCode': 202, 'href': '/signalk/v1/requests/3c1ba26a-97aa-4177-a024-45dd735d1acc', 'ip': '::ffff:10.10.10.1'}
read imu running too _slowly_ 0.04781287000014345 0.05
servo probe ('/dev/ttyAMA0', 38400) 1214.339472582
signalk see if token is ready http://10.10.10.1:3000/signalk/v1/reques...dd735d1acc {'state': 'PENDING', 'requestId': '3c1ba26a-97aa-4177-a024-45dd735d1acc', 'statusCode': 202, 'href': '/signalk/v1/requests/3c1ba26a-97aa-4177-a024-45dd735d1acc', 'ip': '::ffff:10.10.10.1'}
server/client is running too _slowly_ 0.052434559999937846
signalk see if token is ready http://10.10.10.1:3000/signalk/v1/reques...dd735d1acc {'state': 'PENDING', 'requestId': '3c1ba26a-97aa-4177-a024-45dd735d1acc', 'statusCode': 202, 'href': '/signalk/v1/requests/3c1ba26a-97aa-4177-a024-45dd735d1acc', 'ip': '::ffff:10.10.10.1'}
servo probe ('/dev/ttyAMA0', 38400) 1228.493716728
server/client is running too _slowly_ 0.04902903500010325
signalk see if token is ready http://10.10.10.1:3000/signalk/v1/reques...dd735d1acc {'state': 'PENDING', 'requestId': '3c1ba26a-97aa-4177-a024-45dd735d1acc', 'statusCode': 202, 'href': '/signalk/v1/requests/3c1ba26a-97aa-4177-a024-45dd735d1acc', 'ip': '::ffff:10.10.10.1'}
servo probe ('/dev/ttyAMA0', 38400) 1242.626596181
read imu running too _slowly_ 0.04684636000001774 0.05
signalk see if token is ready http://10.10.10.1:3000/signalk/v1/reques...dd735d1acc {'state': 'PENDING', 'requestId': '3c1ba26a-97aa-4177-a024-45dd735d1acc', 'statusCode': 202, 'href': '/signalk/v1/requests/3c1ba26a-97aa-4177-a024-45dd735d1acc', 'ip': '::ffff:10.10.
Reply
#4
It seems to be working. I am not sure what your expected behavior is, or what isn't working but there are no errors shown there that would prevent pypilot from working.
Reply
#5
(2022-02-10, 01:08 AM)seandepagnier Wrote: It seems to be working.    I am not sure what your expected behavior is, or what isn't working but there are no errors shown there that would prevent pypilot from working.

The problem is it will run from the command line, but there is no GUI, and it uninstalls pypilot from openplotter. That is why I am asking if there were any changes recently, because it hasn't done this in the past.
Reply
#6
There never was any GUI from the main pypilot service. There are additional clients such as pypilot_client pypilot_control etc... that can be run locally or remotely.

What do you mean "it uninstalls pypilot from openplotter" ?
Reply
#7
[attachment=1709 Wrote:seandepagnier pid='21884' dateline='1644521970']There never was any GUI from the main pypilot service.   There are additional clients such as pypilot_client pypilot_control etc...  that can be run locally or remotely.

What do you mean "it uninstalls pypilot from openplotter" ?

If I install pypilot in openplotter from the settings menu, to have the openplotter "pypilot interface", when I do the update from https://github.com/pypilot/pypilot, it removes the Openplotter (Pypilot Interface App).  On my previous install, this wasn't the case, and I could run the autopilot via the web app interface. Thanks in advance for your help.


Attached Files Image(s)
   
Reply
#8
I think you are really using out of date scripts. Could you try installing:
https://github.com/pypilot/openplotter-pypilot
Reply
#9
(2022-02-11, 06:37 AM)seandepagnier Wrote: I think you are really using out of date scripts.   Could you try installing:
https://github.com/pypilot/openplotter-pypilot

Ok Sean, I finally got it working again.  There seems to be a bug:

I used Openplotter version  When doing the initial install with the OP Settings App the setup will not work with the PI3b+ and Pypilot Hat, after doing an update, pypilot will run in the command line, but the OP-PP app unintalls.  I did the following and now it works, thank you for you help.

Install OP-PP App from Settings App

Perform Update:
git clone https://github.com/pypilot/pypilot
cd pypilot
sudo python3 setup.py install

sudo python3 setup.py install

Update the OP-PP App
git clone https://github.com/pypilot/openplotter-pypilot
cd openplotter-pypilot
sudo python3 setup.py install

sudo python3 setup.py install


Then re-install OP-PP App from the Settings App

May have taken the long way around, but it is working now.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)