OpenMarine
Updating pypilot from Git - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17)
+--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18)
+--- Thread: Updating pypilot from Git (/showthread.php?tid=4001)



Updating pypilot from Git - southwest24kn - 2022-04-17

Hi all,

Finally got underway with building my Pypilot setup and very excited. I'm running Tinypilot with Hat and motor controller from Sean.

I have a question about updating from the Github repo - mainly just for fun, there aren't any particular updates that I need. Has anyone been able to update from the repo directly, and if so could you detail how you went about it?

I attempted to update pypilot from https://github.com/pypilot/pypilot without success.
I used a machine with two wifi interfaces - one connected to pypilot's wifi network and one to a network with internet access. I could git clone from the repo to local. I attempted to clone directly across to the pypilot using git clone https://github.com/pypilot/pypilot ssh://tc@192.168.14.1/mnt/mmcblk0p2/tinypilot
The command reported success - enumerating, counting, compressing, receiving objectives, resolving deltas. However upon inspecting the /home/tc/pypilot I could see that no files had updated. I tried to clone to a test directory, and it reported success again but did not deploy any files to the test directory.

From here I decided to clone the repo to the local machine that I was working on, compress into a tar archive and scped it across to the tinypilot --- extracted it to /home/tc/pypilot, it successfully overwrote the changes, and then I followed advice from here to rebuild it: https://pypilot.org/wiki/doku.php?id=upgrading_from_git
I ran: 
python3 setup.py build
sudo python3 setup.py install

It went through the building and I rebooted the tinypilot from shell.

I noticed that the LCD screen reported v0.32 again which was not the same as 0.34 that I thought I had updated with.

I had a look at services running in top and noticed that the scripts associated with pypilot are running from /usr/local/lib/python3.6/site-packages/pypilot
I inspected the version file in there and noticed it was 0.32.

Wondering if someone might be able to provide some guidance on where I might have gone wrong?

Thanks!


RE: Updating pypilot from Git - seandepagnier - 2022-04-18

It is possible to clone to the tinypilot from a local machine, I think you still had the wrong command. Eg:
git clone pi@raspberry:pypilot

the boot logo takes a special step to update..

You can't just use setup.py install on tinycore since rebooting resets that. There is a pypilot.build script to run that does everything.


RE: Updating pypilot from Git - southwest24kn - 2022-04-19

(2022-04-18, 03:22 PM)seandepagnier Wrote: It is possible to clone to the tinypilot from a local machine, I think you still had the wrong command.  Eg:
git clone pi@raspberry:pypilot

the boot logo takes a special step to update..

You can't just use setup.py install on tinycore since rebooting resets that.   There is a pypilot.build script to run that does everything.

Thanks Sean I'll give it a crack


RE: Updating pypilot from Git - ironman - 2022-04-28

Some background on pypilot on tinycore, and more hints with regard to updating from git can be found here https://github.com/pypilot/workbook/wiki/Step-11-Tinypilot-under-the-hood#upgrade-pypilot-on-tinypilot