Trying to build Tinypilot updated from GIT - kniven - 2023-08-15
Hi. I am (still) trying to build pypilot on my Raspberry pi Zero (standard version). It works perfectly using the image (tinypilot_2021_11_16.img.xz), but when downloading and copying the latest stable code from github, and following the instructions in (https://github.com/pypilot/workbook/wiki/Step-11-Tinypilot-under-the-hood), I get the following output....
Any Ideas of what I'm doing wrong?
Best regards, Leif
Code: tc@pypilot:~$ cd pypilot_update/
tc@pypilot:~/pypilot_update$ . pypilot.build
-sh: cd: line 40: can't cd to .
: not foundt.build: line 45: python3.6
tar: can't open 'dist/*tar.gz': No such file or directory
-sh: cd: line 48: can't cd to ..
chmod: /tmp/pypilot: No such file or directory
chmod: /: Operation not permitted
chmod: /tmp/pypilot: No such file or directory
chmod: /usr: Operation not permitted
chmod: /tmp/pypilot: No such file or directory
chmod: /usr/local: Operation not permitted
chmod: /tmp/pypilot: No such file or directory
chmod: /usr/local/lib: Operation not permitted
chmod: /tmp/pypilot: No such file or directory
mode of '/usr/local/lib/python3.6' changed to 0755 (rwxr-xr-x)
chmod: /tmp/pypilot: No such file or directory
mode of '/usr/local/lib/python3.6' changed to 0755 (rwxr-xr-x)
chmod: /site-packages: No such file or directory
: not foundt.build: line 55:
'trip: unrecognized option '--strip-unneeded
Usage: strip <option(s)> in-file(s)
Removes symbols and sections from files
The options are:
-I --input-target=<bfdname> Assume input file is in format <bfdname>
-O --output-target=<bfdname> Create an output file in format <bfdname>
-F --target=<bfdname> Set both input and output format to <bfdname>
-p --preserve-dates Copy modified/access timestamps to the output
-D --enable-deterministic-archives
Produce deterministic output when stripping archives
-U --disable-deterministic-archives
Disable -D behavior (default)
-R --remove-section=<name> Also remove section <name> from the output
--remove-relocations <name> Remove relocations from section <name>
-s --strip-all Remove all symbol and relocation information
-g -S -d --strip-debug Remove all debugging symbols & sections
--strip-dwo Remove all DWO sections
--strip-unneeded Remove all symbols not needed by relocations
--only-keep-debug Strip everything but the debug information
-M --merge-notes Remove redundant entries in note sections (default)
--no-merge-notes Do not attempt to remove redundant notes
-N --strip-symbol=<name> Do not copy symbol <name>
-K --keep-symbol=<name> Do not strip symbol <name>
--keep-file-symbols Do not strip file symbol(s)
-w --wildcard Permit wildcard in symbol comparison
-x --discard-all Remove all non-global symbols
-X --discard-locals Remove any compiler-generated symbols
-v --verbose List all object files modified
-V --version Display this program's version number
-h --help Display this output
--info List object formats & architectures supported
-o <file> Place stripped output into <file>
strip: supported targets: elf32-littlearm elf32-bigarm elf32-little elf32-big plugin srec symbolsrec verilog tekhex binary ihex
-sh: cd: line 60: can't cd to /tmp/pypilot
-sh: cd: line 61: can't cd to ..
Parallel mksquashfs: Using 1 processor
, block size 131072.tem on pypilot
Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072
compressed data, compressed metadata, compressed fragments, no xattrs
duplicates are removed
Filesystem size 0.31 Kbytes (0.00 Mbytes)
64.27% of uncompressed filesystem size (0.49 Kbytes)
Inode table size 83 bytes (0.08 Kbytes)
42.78% of uncompressed inode table size (194 bytes)
Directory table size 92 bytes (0.09 Kbytes)
66.19% of uncompressed directory table size (139 bytes)
Number of duplicate files found 0
Number of inodes 6
Number of files 0
Number of fragments 0
Number of symbolic links 0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 6
Number of ids (unique uids + gids) 2
Number of uids 1
tc (1001)
Number of gids 1
staff (50)
-sh: cd: line 63: can't cd to /tmp/pypilot
find: usr: No such file or directory
.tcz': No such file or directory
.tcz': No such file or directory
.tcz /mnt/mmcblk0p2/tce/optional/pypilot
: No such file or directoryonal/pypilot
.tcz pypilot
-rw-r--r-- 1 tc staff 4096 Nov 4 11:21 pypilot?.tcz?
': Path does not exist/mmcblk0p2/tce/optional
': Path does not exist/mmcblk0p2/tce/optional
': Path does not exist/mmcblk0p2/tce/optional
-sh: cd: line 76: can't cd to /home/tc/pypilot_update
RE: Trying to build Tinypilot updated from GIT - ironman - 2023-08-15
Following the 'Upgrading tinypilot remotely' procedure from an openplotter raspberry does allow me to compile. See attached document and try to copy the steps and compare output.
However, upon starting pypilot I'm having this issue. Looking into that now...
Code: tc@pypilot:~$ cat /usr/local/bin/pypilot | grep requires
__requires__ = 'pypilot==0.36'
# new version all right!
tc@pypilot:~$ pypilot
autopilot start 458.637608
falling back to python nonblocking socket, will consume more cpu
cannot import name 'linebuffer'
pypilot failed to import required modules. Did you forget to run sudo python3 setup.py install?
tc@pypilot:~$
RE: Trying to build Tinypilot updated from GIT - ironman - 2023-08-15
Got rid of that 'cannot import name linebuffer' message. I think what did the trick was you have to run pypilot.build twice (as in: two times!) and then do the reboot. There's a comment in that script that suggests this, something to do with swig. I adapted the workbook accordingly for now, but I'd like to hear when that has been solved.
RE: Trying to build Tinypilot updated from GIT - seandepagnier - 2023-08-16
(2023-08-15, 01:55 PM)ironman Wrote: Got rid of that 'cannot import name linebuffer' message. I think what did the trick was you have to run pypilot.build twice (as in: two times!) and then do the reboot. There's a comment in that script that suggests this, something to do with swig. I adapted the workbook accordingly for now, but I'd like to hear when that has been solved.
It was supposed to be fixed:
https://github.com/pypilot/pypilot/commit/2becc995dcac2a512fc38113d5dc699802718109
RE: Trying to build Tinypilot updated from GIT - ironman - 2023-08-16
I have seen this on raspberry in the past but not recently, so I think there it was indeed solved. But now it was on tinycore.
RE: Trying to build Tinypilot updated from GIT - kniven - 2023-08-16
Ok. I finally figured out what was my problem...
I used a windows PC to pull from GIT, and copied the files from there over to the PI zero...
Probably issues with special characters and line feed formats.
When using my Raspberry PI 400 instead, no issues at all. And my tinypilot now seems to be running successfully on version 0.36.
|