Pypilot for Dummies -The Uninitiated - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17) +--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18) +--- Thread: Pypilot for Dummies -The Uninitiated (/showthread.php?tid=3565) |
RE: Pypilot for Dummies -The Uninitiated - seandepagnier - 2021-09-09 you must enable spi in raspi-config All of this should be automatic in the openplotter-pypilot plugin script. Did you install it? Maybe it is out of date: https://github.com/pypilot/openplotter-pypilot I am waiting for openplotter beta version to verify everything is working without such manual steps RE: Pypilot for Dummies -The Uninitiated - SVHM - 2021-09-09 OK, you were right, the SPI interface was off but it didn't fix the problem. When I tried to update pypilot I got errors for Python3-all and debhelper. I installed those programs and I still couldn't get it to load. I rebooted and now I get the following: pi@openplotter:~ $ cd openplotter-pypilot pi@openplotter:~/openplotter-pypilot $ dpkg-buildpackage -b dpkg-buildpackage: info: source package openplotter-pypilot dpkg-buildpackage: info: source version 2.1.1-beta dpkg-buildpackage: info: source distribution bionic dpkg-buildpackage: info: source changed by Sailoog <info@sailoog.com> dpkg-buildpackage: info: host architecture armhf dpkg-source --before-build . dpkg-checkbuilddeps: error: Unmet build dependencies: debhelper (>= 9) python3-all dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting dpkg-buildpackage: warning: (Use -d flag to override.) pi@openplotter:~/openplotter-pypilot $ RE: Pypilot for Dummies -The Uninitiated - seandepagnier - 2021-09-09 What did you get running pypilot_hat once the spi interface was enabled and permissions granted? RE: Pypilot for Dummies -The Uninitiated - SVHM - 2021-09-09 The display came on. I moved it accidentally whil the program was still running. I hope that wasn't bad. The output in terminal was as follows: sudo pypilot_hat nokia5110 have gpio for raspberry pi no lirc available have gpio for raspberry pi 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 loading config file: /root/.pypilot/hat.conf config failed: [Errno 2] No such file or directory: '/root/.pypilot/hat.conf' Using driver nokia5110 no languages 'NullTranslations' object has no attribute 'ugettext' No hat config, arduino not found failed to configure buzzer 'bool' object is not subscriptable connected store grey /root/.pypilot/ugfxfonts/016078b store grey /root/.pypilot/ugfxfonts/016047b store grey /root/.pypilot/ugfxfonts/016065b store grey /root/.pypilot/ugfxfonts/024078b store grey /root/.pypilot/ugfxfonts/024047b store grey /root/.pypilot/ugfxfonts/024065b store grey /root/.pypilot/ugfxfonts/016115b store grey /root/.pypilot/ugfxfonts/016116b store grey /root/.pypilot/ugfxfonts/016097b store grey /root/.pypilot/ugfxfonts/016110b store grey /root/.pypilot/ugfxfonts/016100b store grey /root/.pypilot/ugfxfonts/016098b store grey /root/.pypilot/ugfxfonts/016121b store grey /root/.pypilot/ugfxfonts/012115b store grey /root/.pypilot/ugfxfonts/012116b store grey /root/.pypilot/ugfxfonts/012097b store grey /root/.pypilot/ugfxfonts/012110b store grey /root/.pypilot/ugfxfonts/012100b store grey /root/.pypilot/ugfxfonts/012098b store grey /root/.pypilot/ugfxfonts/012121b store grey /root/.pypilot/ugfxfonts/016067b store grey /root/.pypilot/ugfxfonts/014067b store grey /root/.pypilot/ugfxfonts/016087b store grey /root/.pypilot/ugfxfonts/016073b store grey /root/.pypilot/ugfxfonts/016070b store grey /root/.pypilot/ugfxfonts/010087b store grey /root/.pypilot/ugfxfonts/010073b store grey /root/.pypilot/ugfxfonts/010070b store grey /root/.pypilot/ugfxfonts/016032b store grey /root/.pypilot/ugfxfonts/016082b store grey /root/.pypilot/ugfxfonts/016071b store grey /root/.pypilot/ugfxfonts/016111b store grey /root/.pypilot/ugfxfonts/016109b store grey /root/.pypilot/ugfxfonts/016114b store grey /root/.pypilot/ugfxfonts/016099b store grey /root/.pypilot/ugfxfonts/016108b store grey /root/.pypilot/ugfxfonts/016101b store grey /root/.pypilot/ugfxfonts/009087b store grey /root/.pypilot/ugfxfonts/009065b store grey /root/.pypilot/ugfxfonts/009082b store grey /root/.pypilot/ugfxfonts/009078b store grey /root/.pypilot/ugfxfonts/009073b store grey /root/.pypilot/ugfxfonts/009071b store grey /root/.pypilot/ugfxfonts/009110b store grey /root/.pypilot/ugfxfonts/009111b store grey /root/.pypilot/ugfxfonts/009032b store grey /root/.pypilot/ugfxfonts/009109b store grey /root/.pypilot/ugfxfonts/009116b store grey /root/.pypilot/ugfxfonts/009114b store grey /root/.pypilot/ugfxfonts/009099b store grey /root/.pypilot/ugfxfonts/009108b store grey /root/.pypilot/ugfxfonts/009101b store grey /root/.pypilot/ugfxfonts/034032bc store grey /root/.pypilot/ugfxfonts/034053bc failed to run web server: [Errno 98] Address already in use: ('0.0.0.0', 33333) failed to run web server: [Errno 98] Address already in use: ('0.0.0.0', 33333) Traceback (most recent call last): File "/usr/local/bin/pypilot_hat", line 11, in <module> load_entry_point('pypilot==0.16', 'console_scripts', 'pypilot_hat')() File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/hat/hat.py", line 335, in main hat.poll() File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/hat/hat.py", line 299, in poll i.poll() File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/hat/hat.py", line 134, in poll msg = self.keyspipe.recv() File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/pipeserver.py", line 37, in recv return self.pipe.recv() File "/usr/lib/python3.7/multiprocessing/connection.py", line 250, in recv buf = self._recv_bytes() File "/usr/lib/python3.7/multiprocessing/connection.py", line 407, in _recv_bytes buf = self._recv(4) File "/usr/lib/python3.7/multiprocessing/connection.py", line 383, in _recv raise EOFError EOFError cleanup web process None pid kill 20319 Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/hat/hat.py", line 106, in <lambda> atexit.register(lambda : cleanup(None)) # get backtrace File "/usr/local/lib/python3.7/dist-packages/pypilot-0.16-py3.7-linux-armv7l.egg/pypilot/hat/hat.py", line 100, in cleanup os.kill(self.process.pid, signal.SIGTERM) # get backtrace ProcessLookupError: [Errno 3] No such process The command pypilot_hat makes the gui and I get: sudo pypilot_hat have gpio for raspberry pi no lirc available have gpio for raspberry pi 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 loading config file: /root/.pypilot/hat.conf config failed: [Errno 2] No such file or directory: '/root/.pypilot/hat.conf' Using driver default using glut no languages 'NullTranslations' object has no attribute 'ugettext' No hat config, arduino not found failed to configure buzzer 'bool' object is not subscriptable connected store grey /root/.pypilot/ugfxfonts/016078b store grey /root/.pypilot/ugfxfonts/016047b store grey /root/.pypilot/ugfxfonts/016065b store grey /root/.pypilot/ugfxfonts/024078b store grey /root/.pypilot/ugfxfonts/024047b store grey /root/.pypilot/ugfxfonts/024065b store grey /root/.pypilot/ugfxfonts/016115b store grey /root/.pypilot/ugfxfonts/016116b store grey /root/.pypilot/ugfxfonts/016097b store grey /root/.pypilot/ugfxfonts/016110b store grey /root/.pypilot/ugfxfonts/016100b store grey /root/.pypilot/ugfxfonts/016098b store grey /root/.pypilot/ugfxfonts/016121b store grey /root/.pypilot/ugfxfonts/012115b store grey /root/.pypilot/ugfxfonts/012116b store grey /root/.pypilot/ugfxfonts/012097b store grey /root/.pypilot/ugfxfonts/012110b store grey /root/.pypilot/ugfxfonts/012100b store grey /root/.pypilot/ugfxfonts/012098b store grey /root/.pypilot/ugfxfonts/012121b store grey /root/.pypilot/ugfxfonts/016067b store grey /root/.pypilot/ugfxfonts/014067b store grey /root/.pypilot/ugfxfonts/016087b store grey /root/.pypilot/ugfxfonts/016073b store grey /root/.pypilot/ugfxfonts/016070b store grey /root/.pypilot/ugfxfonts/010087b store grey /root/.pypilot/ugfxfonts/010073b store grey /root/.pypilot/ugfxfonts/010070b store grey /root/.pypilot/ugfxfonts/016032b store grey /root/.pypilot/ugfxfonts/016082b store grey /root/.pypilot/ugfxfonts/016071b store grey /root/.pypilot/ugfxfonts/016111b store grey /root/.pypilot/ugfxfonts/016109b store grey /root/.pypilot/ugfxfonts/016114b store grey /root/.pypilot/ugfxfonts/016099b store grey /root/.pypilot/ugfxfonts/016108b store grey /root/.pypilot/ugfxfonts/016101b store grey /root/.pypilot/ugfxfonts/009087b store grey /root/.pypilot/ugfxfonts/009065b store grey /root/.pypilot/ugfxfonts/009082b store grey /root/.pypilot/ugfxfonts/009078b store grey /root/.pypilot/ugfxfonts/009073b store grey /root/.pypilot/ugfxfonts/009071b store grey /root/.pypilot/ugfxfonts/009110b store grey /root/.pypilot/ugfxfonts/009111b store grey /root/.pypilot/ugfxfonts/009032b store grey /root/.pypilot/ugfxfonts/009109b store grey /root/.pypilot/ugfxfonts/009116b store grey /root/.pypilot/ugfxfonts/009114b store grey /root/.pypilot/ugfxfonts/009099b store grey /root/.pypilot/ugfxfonts/009108b store grey /root/.pypilot/ugfxfonts/009101b store grey /root/.pypilot/ugfxfonts/034032bc store grey /root/.pypilot/ugfxfonts/034053bc store grey /root/.pypilot/ugfxfonts/034057bc failed to run web server: [Errno 98] Address already in use: ('0.0.0.0', 33333) failed to run web server: [Errno 98] Address already in use: ('0.0.0.0', 33333) failed to run web server: [Errno 98] Address already in use: ('0.0.0.0', 33333) failed to run web server: [Errno 98] Address already in use: ('0.0.0.0', 33333) failed to run web server: [Errno 98] Address already in use: ('0.0.0.0', 33333) failed to run web server: [Errno 98] Address already in use: ('0.0.0.0', 33333) failed to run web server: [Errno 98] Address already in use: ('0.0.0.0', 33333) store grey /root/.pypilot/ugfxfonts/034054bc store grey /root/.pypilot/ugfxfonts/034056bc failed to run web server: [Errno 98] Address already in use: ('0.0.0.0', 33333) failed to run web server: [Errno 98] Address already in use: ('0.0.0.0', 33333) store grey /root/.pypilot/ugfxfonts/034050bc store grey /root/.pypilot/ugfxfonts/034048bc failed to run web server: [Errno 98] Address already in use: ('0.0.0.0', 33333) failed to run web server: [Errno 98] Address already in use: ('0.0.0.0', 33333) failed to run web server: [Errno 98] Address already in use: ('0.0.0.0', 33333) pi@openplotter:~ $ failed to run web server: [Errno 98] Address already in use: ('0.0.0.0', 33333) RE: Pypilot for Dummies -The Uninitiated - seandepagnier - 2021-09-09 It seems openplotter uses an outdated version of pypilot and the hat service is already running It seems strange then that the display is not being used. In any case what if you stop all the services eg: sudo service pypilot stop sudo service pypilot_hat stop Then upgrade pypilot: git clone https://github.com/pypilot/pypilot cd pypilot sudo python3 setup.py install Now try again sudo service pypilot start and then sudo pypilot_hat It should work now and you can set the service at boot with sudo service pypilot_hat start RE: Pypilot for Dummies -The Uninitiated - SVHM - 2021-09-09 This is what I get: pi@openplotter:~ $ sudo service pypilot stop pi@openplotter:~ $ sudo service pypilot_hat stop Failed to stop pypilot_hat.service: Unit pypilot_hat.service not loaded. pi@openplotter:~ $ git clone https://github.com/pypilot/pypilot Cloning into 'pypilot'... remote: Enumerating objects: 10344, done. remote: Counting objects: 100% (3429/3429), done. remote: Compressing objects: 100% (1455/1455), done. remote: Total 10344 (delta 2355), reused 2680 (delta 1661), pack-reused 6915 Receiving objects: 100% (10344/10344), 3.16 MiB | 4.18 MiB/s, done. Resolving deltas: 100% (7162/7162), done. pi@openplotter:~ $ cd pypilot pi@openplotter:~/pypilot $ sudo python3 setup.py install /usr/bin/apt checking for RTIMULIB2...Traceback (most recent call last): File "setup.py", line 20, in <module> import dependencies File "/home/pi/pypilot/dependencies.py", line 196, in <module> s.install() File "/home/pi/pypilot/dependencies.py", line 140, in install if dep.test(): File "/home/pi/pypilot/dependencies.py", line 108, in test from importlib_metadata import version ModuleNotFoundError: No module named 'importlib_metadata' pi@openplotter:~/pypilot $ Stop command doesn't turn off display. In openplotter settings it says I have Pypilot Version 2.1.1-beta RE: Pypilot for Dummies -The Uninitiated - seandepagnier - 2021-09-10 you have version 2.1.1 of the openplotter-pypilot plugin. To figure out what version of pypilot you can run: pypilot_client ap.version if by turn off you mean the backlight, then no the command has no effect on the backlight. Thanks for reporting this. I fixed one issue and created another. So I try again to fix the dependency script to install dependencies needed to run the script... Please try again: cd pypilot git pull sudo python3 setup.py install Thanks for the patience, it will work soon... RE: Pypilot for Dummies -The Uninitiated - SVHM - 2021-09-10 Okay, thanks for taking the time to look into this. RE: Pypilot for Dummies -The Uninitiated - seandepagnier - 2021-09-10 Did you find any success? RE: Pypilot for Dummies -The Uninitiated - SVHM - 2021-09-10 I rand the scripts above and it did a lot of stuff but its still doing the same thing. I accidentally closed the terminal and lost most of the output. Below is what I got when I ran it again. Before I forget, I wanted to ask about the keypad and the waterproof cables you used. I ordered a keypad that looks like the one you used but it has 12 wires going to it but the hat only has five pins. Do you have a recommended keypad? I saw somewhere where you had the waterproof cables shown but I cannot find them in the forum anywhere. pi@openplotter:~ $ cd pypilot pi@openplotter:~/pypilot $ sudo python3 setup.py install /usr/bin/apt running install running bdist_egg running egg_info writing pypilot.egg-info/PKG-INFO writing dependency_links to pypilot.egg-info/dependency_links.txt writing entry points to pypilot.egg-info/entry_points.txt writing top-level names to pypilot.egg-info/top_level.txt reading manifest file 'pypilot.egg-info/SOURCES.txt' writing manifest file 'pypilot.egg-info/SOURCES.txt' installing library code to build/bdist.linux-armv7l/egg running install_lib running build_py running build_ext building 'pypilot/arduino_servo/_arduino_servo' extension swigging pypilot/arduino_servo/arduino_servo.i to pypilot/arduino_servo/arduino_servo_wrap.cpp swig -python -c++ -o pypilot/arduino_servo/arduino_servo_wrap.cpp pypilot/arduino_servo/arduino_servo.i Unable to find file 'pypilot/arduino_servo/arduino_servo.i'. error: command 'swig' failed with exit status 1 This is the version pi@openplotter:~ $ pypilot_client ap.version ap.version = pypilot 0.16 I also can no longer start the screen with: sudo pypilot_hat nokia5110 |