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
#8
(2021-04-08, 11:13 PM)ironman Wrote: Hey David, just run 'pypilot_hat' or 'pypilot_hat none' at the prompt; no need for sudo, python3 or changing the directory to /usr/local/bin. Best is to capture the full text and post it here, instead of a graphical screen dump of just a portion of the output; if it is very long consider to upload it in an attached .txt file.

If there is no pypilot_hat.service, something must have gone wrong in the upgrade, and in that case it's miraculous you still had the port 33333 web interface working. I guess it does not work anymore after a reboot?

Are you on openplotter? If you want to restore the previous version of pypilot you might use the openplotter installer, which will install 0.16. What type of lcd/hat do you have installed?

Hi, many thanks for your help.  I did as you suggested via SSH and the log is attached.  I am a newbie with Linux and it doesn't mean much to me!  Yes I am running openplotter and it is a shame this does not have the latest version of pypilot included.  I am reluctant to go back to 0.16 as then the plugin won't work.  I don't have a hat, just an IMU.  I have only had the 33333 web server working when I ran the old py.hat.  
Thanks
David

(2021-04-09, 10:47 AM)drbarritt Wrote:
(2021-04-08, 11:13 PM)ironman Wrote: Hey David, just run 'pypilot_hat' or 'pypilot_hat none' at the prompt; no need for sudo, python3 or changing the directory to /usr/local/bin. Best is to capture the full text and post it here, instead of a graphical screen dump of just a portion of the output; if it is very long consider to upload it in an attached .txt file.

If there is no pypilot_hat.service, something must have gone wrong in the upgrade, and in that case it's miraculous you still had the port 33333 web interface working. I guess it does not work anymore after a reboot?

Are you on openplotter? If you want to restore the previous version of pypilot you might use the openplotter installer, which will install 0.16. What type of lcd/hat do you have installed?

Hi, many thanks for your help.  I did as you suggested via SSH and the log is attached.  I am a newbie with Linux and it doesn't mean much to me!  Yes I am running openplotter and it is a shame this does not have the latest version of pypilot included.  I am reluctant to go back to 0.16 as then the plugin won't work.  I don't have a hat, just an IMU.  I have only had the 33333 web server working when I ran the old py.hat.  
Thanks
David

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2021.04.09 09:50:04 =~=~=~=~=~=~=~=~=~=~=~=

pi@openpcpn:~ $ 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'

pi@openpcpn:~ $ pypilot_hat none
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'
overriding driver default  to command line none
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 435, in main
    hat = Hat()
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.24-py3.7-linux-armv7l.egg/pypilot/hat/hat.py", line 236, in __init__
    self.lcd = lcd.LCD(self)
  File "/usr/local/lib/python3.7/dist-packages/pypilot-0.24-py3.7-linux-armv7l.egg/pypilot/hat/lcd.py", line 131, in __init__
    if screen:
UnboundLocalError: local variable 'screen' referenced before assignment
pi@openpcpn:~ $ 
Reply


Messages In This Thread
RE: Problem with GPIO push button inputs following Pypilot upgrade - by drbarritt - 2021-04-09, 10:47 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)