Posts: 141
Threads: 2
Joined: Jul 2020
Reputation:
4
2023-01-27, 08:58 AM
(This post was last modified: 2023-01-27, 09:01 AM by stelian.)
This is probably because the native c python modules (linebuffer, gfx etc) were build on the Sean's image (standard PI Zero, not Zero 2), and the python version is different between the two (3.6 versus 3.8)
Posts: 513
Threads: 27
Joined: Jun 2019
Reputation:
32
2023-01-27, 10:41 AM
(This post was last modified: 2023-01-27, 10:42 AM by ironman.)
This is still a standard pizero. There seems to be some recompilation of linebuffer.cpp going on in setup.py. I'll capture the setup output and search for linebuffer.
Posts: 141
Threads: 2
Joined: Jul 2020
Reputation:
4
If it's a standard pi zero my message above doesn't apply, sorry.
Posts: 809
Threads: 48
Joined: Jun 2017
Reputation:
26
ironman looks like a python3 problem.
tc@pypilot:~$ pypilot
autopilot start 3312.162935
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?
Posts: 809
Threads: 48
Joined: Jun 2017
Reputation:
26
2023-01-28, 09:23 AM
(This post was last modified: 2023-01-28, 09:27 AM by jim321.)
Check the version of python that is installed update if necessary.
type " python --version " in terminal.
you might try to do what the message you received says "sudo python3 setup.py install"
Posts: 3
Threads: 1
Joined: Feb 2023
Reputation:
0
Try running the dependencies.py script (after removing the abundant "i" in line 76).
Some deps failed for me but tinypilot boots with the 0.32 after that.
I did run the build process again after installing the deps, not sure if that is the proper way.
Make sure to set the correct date on the tinypilot so it can verify the certificates of the package servers.