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
Updating pypilot from Git
#1
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!
Reply
#2
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.
Reply
#3
(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
Reply
#4
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...-tinypilot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)