Closed ExperimentalZeros closed 3 years ago
This symptom usually indicates that you don't have python 3.x installed or that python 3.x isn't available via the 'python3' command. Is this the case for you?
Ok, I think I can guess what's going on here. We instantiate all of the plate types in our underlying python script, and one in particular (TINKERPlate) has some unusual dependencies (e.g. pygame). These dependencies aren't always installed by default (e.g. Lite version of Raspberry Pi OS). Here's a setup procedure that should meet all the requirements:
Start with SD image: Raspberry Pi OS Lite initial config with raspi-config (include SPI:enabled) sudo apt install python3-pip sudo apt install python3-spidev sudo apt install python3-pygame sudo apt install python3-rpi.gpio sudo pip3 install pi-plates
Hi again,
Thank you for quick response!
It ended up being python3-pygame
the missing dependency.
after re-starting NR, I noticed the following log trail:
26 Apr 11:30:49 - [info] Started flows
stderr: ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
stderr: ALSA lib conf.c:5047:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM default
.... I really wonder why it is asking anything from ALSA to make this python calls to work with this device.... I also wonder what dependency is given by "python3-pygame" that is not already covered by "python3-spidev", "python3-rpi.gpio", "pi-plates"... it just seems like the later should have all the elementals needed.
At least it is up and running now but if you do have any insight on the above, I would listen.
Again thank you!
Hello and thank you for this product integration.
I am having problems having NR "talking" to the Pi-Plates DACC2 Plate, but I am able to control it over CLI/Python3 over the examples provided by the manufacturer just fine.
This is what I am getting while running logs set to "TRACE":
And, here is a screenshot of the issue:![Screenshot_2021-04-26_02-07-10](https://user-images.githubusercontent.com/8357890/116043745-a6fce080-a635-11eb-8fd8-d87af688daa9.png)
Please advice if more detail is needed, or ways to help further.
Thank you