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
#6
(2021-06-25, 04:43 AM)seandepagnier Wrote: the version in git of openplotter-pypilot is 2.2, you got from github/openplotter/openplotter-pypilot not github/pypilot/openplotter-pypilot

It's still being evaluated not included directly in openplotter, so this explains why this step failed.


As for pypilot itself, the install is simplified.  You shouldn't need to worry about the data. My instruction:

sudo python3 setup.py install

is slightly different, as you used "python" which is python2, when python3 is needed which would explain why this step failed.   It should have given you a message like:
('pypilot requires python version 3.  python version is', '2.7.18rc1 (default, Apr  7 2020, 12:05:55) \n[GCC 9.3.0]')
 Please try just installing pypilot:

git clone github.com/pypilot/pypilot
cd pypilot
sudo python3 setup.py install

post the output from this if it fails

Yes, I used python3 after I got the error message. I also had to install the dependency python3-all and some other for the dkpg build (i have some experience with pyhon and linux). I tried both methods didn't work, then i posted that i could get it to connect, and I still have pypilot 2.1.1 when looking at the pypilot window.

So after I have read your reply, I did the following again:

$git clone https://github.com/pypilot/pypilot

- Successfully created the PyPilot folder (had to delete the old one first using $rm pypilot)

$cd pypilot

-changed the directory to /python

$sudo python3 setup.py install

- whole install process ending with this message:

                 Installed /usr/local/lib/python3.7/dist-packages/pypilot-0.24-py3.7-linux-armv7l.egg
                 Processing dependencies for pypilot==0.24
                 Finished processing dependencies for pypilot==0.24

Then to open pypilot I do the following:

$openplotter-pypilot

This gives the following message and opens pypilot with 2.1.1 in the header of the window

                 Settings file not found. Using defaults and creating settings file
                 Failed to open SPI bus 0, select 0
                 Failed to open SPI bus 0, select 1
                 No IMU detected
                 Using fusion algorithm RTQF
                 wrong external apps format: unexpected EOF while parsing (<string>, line 0)
                 wrong external apps format: unexpected EOF while parsing (<string>, line 0)

As you can see this pypilot is not working correctly as now it says NA everywhere and is nothing is working, so something when wrong to fix this I run the following command (this reverts the dependencies back to the old settings somehow and does not build upon the most recent install but rather builds on the old one):

$sudo pypilotPostInstall

-This give the final message:

                 Installed /usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg
                 Processing dependencies for pypilot==0.16
                 Finished processing dependencies for pypilot==0.16
                 DONE
                 Creating config files...
                 DONE
                 Adding pypilot, pypilot_boatimu and openplotter-pypilot-read services...
                 DONE
                 Setting version...
                 DONE

now pypilot is working again as it should but the issue of not being able to connect is still there, somewhere after the install i have to do something to get pypilot working again but I don't know what or how. The $sudo pypilotPostInstall just reverts everything back to the old installation.

Any suggestions or ideas?
Reply


Messages In This Thread
RE: OpenCPN pypilot plugin disconnected - by SailingRiver - 2021-06-25, 10:44 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)