×

INDI Library v1.9.4 Released (17 Jan 2022)

Bimonthly Stable INDI Library release introduces new drivers and fixes for existing ones. Some highlights:

[SOLVED]Dome Scripting Gateway not working for a Roll Off Roof

  • Posts: 213
  • Thank you received: 53
After a while I'm testing again the Dome Scripting Gateway to control a roll off roof.
I've been adding all the python scripts to manage the roof (open.py, close.py, status.py etc) and tested the script by executing them from shell.
But Ekos doesn't read the status and doesn't execute any further command.
From the log (see below)  it seems to fail to read a tmp file indi_dome_script_status_PKfoTu that was not needed in previous version of the driver. All the information were stored in /tmp/indi-status.
Moreover I don't understand the python errors. Python is installed and working fine on my system.

The Status.py script is the default one found here: github.com/indilib/indi/blob/master/driv...dome/dome_script.txt

Does anyone have a suggestion how to fix this?
Thanks
Ferrante

LOG:
[2021-09-28T12:22:39.395 CEST DEBG ][           org.kde.kstars.indi] - Dome Scripting Gateway : "[DEBUG] execvp('/home/ferrante/scripts/status.py', 'status.py', '/tmp/indi_dome_script_status_PKfoTu', nullptr) "
[2021-09-28T12:22:39.397 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2021-09-28T10:22:39: Driver indi_script_dome: /home/ferrante/scripts/status.py: 10: import: not found"
[2021-09-28T12:22:39.397 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2021-09-28T10:22:39: Driver indi_script_dome: /home/ferrante/scripts/status.py: 12: sys.argv[1]: not found"
[2021-09-28T12:22:39.397 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  ""
[2021-09-28T12:22:39.397 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2021-09-28T10:22:39: Driver indi_script_dome: /home/ferrante/scripts/status.py: 13: path: not found"
[2021-09-28T12:22:39.397 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  "2021-09-28T10:22:39: Driver indi_script_dome: /home/ferrante/scripts/status.py: 15: Syntax error: \"(\" unexpected"
[2021-09-28T12:22:39.397 CEST DEBG ][           org.kde.kstars.indi] - INDI Server:  ""
[2021-09-28T12:22:39.398 CEST DEBG ][           org.kde.kstars.indi] - Dome Scripting Gateway : "[DEBUG] Script status.py returned 512 "
[2021-09-28T12:22:39.399 CEST INFO ][           org.kde.kstars.indi] - Dome Scripting Gateway :  "[ERROR] Failed to read status "

EDIT:
Reading the log was clear enough that python was not working from inside Ekos.
Access and execution right were fine but from inside Ekos I had to explicity call python3 (#!/usr/bin/python3) instead of python. I guess the alias worked only from shell.
 
Last edit: 3 months 4 weeks ago by Ferrante Enriques. Reason: SOLVED
4 months 5 hours ago #76053

Please Log in or Create an account to join the conversation.

Time to create page: 0.181 seconds