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
Problem with GPIO push button inputs following Pypilot upgrade
#24
Also having issues upgrading to .24 on newest openplotter image.  Followed steps for the web fix and everything was working on .16 prior to upgrading with git.

pypilot_web has no errors on command line but shows no connection on webpage and get 'javascript:void(0)' when hovering over buttons.

pypilot_hat runs the lcd but don't get webpage, pressing gpio buttons exits:

pi@openplotter:~ $ pypilot_hat
have gpio for raspberry pi
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'
arduino process on  4698
renice: failed to set priority for 4698 (process ID): Permission denied
warning, failed to renice hat arduino process
No hat config, arduino not found
4700 (process ID) old priority 0, new priority 19
web failed to run process: module 'web' has no attribute 'web_process'

After button press:

Traceback (most recent call last):
  File "/usr/local/bin/pypilot_hat", line 11, in <module>
    load_entry_point('pypilot==0.24', 'console_scripts', 'pypilot_hat')()
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.24-py3.7-linux-armv7l.egg/pypilot/hat/hat.py", line 448, in main
    hat.poll()
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.24-py3.7-linux-armv7l.egg/pypilot/hat/hat.py", line 394, in poll
    i.poll()
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.24-py3.7-linux-armv7l.egg/pypilot/hat/lcd.py", line 327, in poll
    next_page = self.page.process()
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.24-py3.7-linux-armv7l.egg/pypilot/hat/page.py", line 732, in process
    speed = keys[key][0]
KeyError: 0
got signal atexit cleaning up 4613
got signal 17 cleaning up 4613
subprocess returned (0, 0) []
got signal 17 cleaning up 4613


pi@openplotter:~ $ pip3 freeze | grep -iE "engine|socket"
Flask-SocketIO==2.9.0
gevent-websocket==0.10.1
python-engineio==3.14.2
python-socketio==4.6.1
websocket-client==0.58.0


Any help greatly appreciated!

Edit: pypilot_web does actually show "unsupported version of the Socket.IO or Engine.IO protocols" after opening web page.
Reply


Messages In This Thread
RE: Problem with GPIO push button inputs following Pypilot upgrade - by ajax - 2021-05-01, 02:11 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)