I just did a clean install of openplotter an pypilot and got this. Mind you, I don't have the hat hardware attached:
pi@openplotter:~ $ pypilot_hat
hat start 1277.089485117
have gpio for raspberry pi
hat import done 1277.181298514
loading config file: /home/pi/.pypilot/hat.conf
config failed: [Errno 2] No such file or directory: '/home/pi/.pypilot/hat.conf'
failed to load /proc/device-tree/hat/custom_0 : [Errno 2] No such file or directory: '/proc/device-tree/hat/custom_0'
assuming original 26 pin tinypilot with nokia5110 display
Traceback (most recent call last):
File "/usr/local/bin/pypilot_hat", line 33, in <module>
sys.exit(load_entry_point('pypilot==0.42', 'console_scripts', 'pypilot_hat')())
File "/usr/local/lib/python3.9/dist-packages/pypilot/hat/hat.py", line 687, in main
hat = Hat()
File "/usr/local/lib/python3.9/dist-packages/pypilot/hat/hat.py", line 348, in __init__
self.write_config()
File "/usr/local/lib/python3.9/dist-packages/pypilot/hat/hat.py", line 502, in write_config
if self.client and not 'modes' in self.config:
AttributeError: 'Hat' object has no attribute 'client'
The pypilot service itself is running ok.
When I copy an old hat.conf, I get this:
pi@openplotter:/media/pi/rootfs/home/pi/.pypilot $ cp hat.conf /home/pi/.pypilot/hat.conf
pi@openplotter:/media/pi/rootfs/home/pi/.pypilot $ pypilot_hat
hat start 1663.329849163
have gpio for raspberry pi
hat import done 1663.417218144
loading config file: /home/pi/.pypilot/hat.conf
failed to load /proc/device-tree/hat/custom_0 : [Errno 2] No such file or directory: '/proc/device-tree/hat/custom_0'
cannot update firmware until version is known
host localhost
lcd process on 7108
lcd driver default False False 1663.452981103
hat init complete 1663.46100852
7109 (process ID) old priority 0, new priority 19
failed to load lirc No module named 'lirc'
no lirc available No module named 'pylirc'
web failed to run process: cannot import name 'Markup' from 'flask' (/usr/local/lib/python3.9/dist-packages/flask/__init__.py)
7109 (process ID) old priority 19, new priority 19
Subsequently installing pypilot from git gives me the same message "cannot import name 'Markup' from 'flask'" so I am inclined to think the issue here lies with the master branch.
pi@openplotter:~ $ pypilot_hat
hat start 1277.089485117
have gpio for raspberry pi
hat import done 1277.181298514
loading config file: /home/pi/.pypilot/hat.conf
config failed: [Errno 2] No such file or directory: '/home/pi/.pypilot/hat.conf'
failed to load /proc/device-tree/hat/custom_0 : [Errno 2] No such file or directory: '/proc/device-tree/hat/custom_0'
assuming original 26 pin tinypilot with nokia5110 display
Traceback (most recent call last):
File "/usr/local/bin/pypilot_hat", line 33, in <module>
sys.exit(load_entry_point('pypilot==0.42', 'console_scripts', 'pypilot_hat')())
File "/usr/local/lib/python3.9/dist-packages/pypilot/hat/hat.py", line 687, in main
hat = Hat()
File "/usr/local/lib/python3.9/dist-packages/pypilot/hat/hat.py", line 348, in __init__
self.write_config()
File "/usr/local/lib/python3.9/dist-packages/pypilot/hat/hat.py", line 502, in write_config
if self.client and not 'modes' in self.config:
AttributeError: 'Hat' object has no attribute 'client'
The pypilot service itself is running ok.
When I copy an old hat.conf, I get this:
pi@openplotter:/media/pi/rootfs/home/pi/.pypilot $ cp hat.conf /home/pi/.pypilot/hat.conf
pi@openplotter:/media/pi/rootfs/home/pi/.pypilot $ pypilot_hat
hat start 1663.329849163
have gpio for raspberry pi
hat import done 1663.417218144
loading config file: /home/pi/.pypilot/hat.conf
failed to load /proc/device-tree/hat/custom_0 : [Errno 2] No such file or directory: '/proc/device-tree/hat/custom_0'
cannot update firmware until version is known
host localhost
lcd process on 7108
lcd driver default False False 1663.452981103
hat init complete 1663.46100852
7109 (process ID) old priority 0, new priority 19
failed to load lirc No module named 'lirc'
no lirc available No module named 'pylirc'
web failed to run process: cannot import name 'Markup' from 'flask' (/usr/local/lib/python3.9/dist-packages/flask/__init__.py)
7109 (process ID) old priority 19, new priority 19
Subsequently installing pypilot from git gives me the same message "cannot import name 'Markup' from 'flask'" so I am inclined to think the issue here lies with the master branch.