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
enabling pypilot HAT service
#7
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.
Reply


Messages In This Thread
RE: enabling pypilot HAT service - by theavi - 2023-10-03, 11:14 AM
RE: enabling pypilot HAT service - by Sailoog - 2023-10-05, 10:12 AM
RE: enabling pypilot HAT service - by ironman - 2023-10-05, 12:29 PM
RE: enabling pypilot HAT service - by Sailoog - 2023-10-08, 10:20 AM
RE: enabling pypilot HAT service - by ironman - 2023-10-08, 06:21 PM
RE: enabling pypilot HAT service - by zyszek - 2023-10-08, 11:14 PM
RE: enabling pypilot HAT service - by Sailoog - 2023-10-11, 10:32 AM
RE: enabling pypilot HAT service - by drbarritt - 2023-12-11, 11:20 PM
RE: enabling pypilot HAT service - by drbarritt - 2023-12-15, 08:49 PM
RE: enabling pypilot HAT service - by drbarritt - 2023-12-15, 10:39 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)