Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_vector returns None due to timeouts for unknown reason #3

Open
theoschutt opened this issue Jun 11, 2022 · 0 comments
Open

get_vector returns None due to timeouts for unknown reason #3

theoschutt opened this issue Jun 11, 2022 · 0 comments

Comments

@theoschutt
Copy link

Hello, thank you so much for your work on this package!
We have indiclient installed on one of our test machine, and it works beautifully with our SBIG STF-8300 camera. However, we are trying to set up a newer machine, and we are unfortunately running into some issues. We would be very grateful for your help, or if you can point us in the right direction.
We are trying to set up control for the same SBIG camera on an Ubuntu 20.04 machine. The SBIG is connected to the machine via USB, and we have the most recent stable releases of indilib, the indi-sbig driver, and indiclient installed. We added a very simple SBIGCam wrapper for the CCDCam class that sets the driver to "SBIG CCD", which works on the other machine.
We try to run the very simple script below:

from indiclient.indicam import SBIGCam
cam = SBIGCam()
cam.ccd_info

This returns the following exception:

Timeout: SBIG CCD CCD_INFO
AttributeError                            Traceback (most recent call last)
Input In [9], in <cell line: 1>()
----> 1 cam.ccd_info

File ~/pymodules/indiclient-backup/indiclient/indicam.py:49, in CCDCam.ccd_info(self)
     47 info_vec = self.get_vector(self.driver, "CCD_INFO")
     48 info = {}
---> 49 for e in info_vec.elements:
     50     info[e.getName()] = e.get_float()
     51 return info

AttributeError: 'NoneType' object has no attribute 'elements'

Other functions such as expose result in similar timeout errors and NoneType returns. I have also included the verbose output of indiserver -vvv indi_sbig_ccd during this script as a text file: sbig_indi_debug_output.txt
I'll note line 316: 2022-06-10T22:48:37: Driver indi_sbig_ccd: read message SBIG CCD '[INFO] CCD is connected at port USB 1'
and line 318: 2022-06-10T22:48:37: Driver indi_sbig_ccd: read message SBIG CCD '[ERROR] GetCcdInfo: CC_GET_CCD_INFO -> (Bad Parameter)' where things start to go poorly it seems.

Any insight into whether this is an issue on the indiclient, indiserver, or camera connection side would be greatly appreciated. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant