Hello everyone,
I just updated to SM 1.6 and I have issues with python scripts running raspberry GPIO pins.
I use gpiozero to move a DIY servo dust cap and rpi.gpio to operate an EL panel with PWM commands for flats.
These scripts work just fine if launched in shell and until SM 1.5 also worked in Scheduler, Capture and Dome Scripting modules.
I tried all I could to thoubleshoot this issue, I hope that someone may halp figuring out what it might be... thanks!
Fabio
Hi Jasem and thanks for the reply,
I use very simple scripts to open/close the cap of the telescope and turning on/off the flat EL light, I attach the code for opening the cap (please unzip as I cannot enclose .py files).
This code is running without issues if I launch from shell with command "python2 open.py" therefore I don't think I miss packages to install...
Thanks for your help!
Fabio
I don't think that's related. Running as root, same issue? Could be also some permission issue. Could there a conflict with pigpiod? There is a service running... maybe you can turn that off
sudo systemctl stop pigpiod did not change the behaviour:
- script runs ok from shell with "python3 script.py" (both as stellarmate and root)
- same script fails in capture/scheduler/dome module with error message in INDI Control Panel messages box
I agree that it seems a permission issue but I do not understand why this is happening only though ekos
Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.