×

INDI Library v1.9.6 Released (21 May 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

PyINDI - Photo Capture Issues

  • Posts: 3
  • Thank you received: 0
I'm trying to write a simple Python script to take a few photos using pyindi-client, but I'm having trouble receiving the blob.

I've been using this as a basis:
indilib.org/develop/indi-python-bindings.html

Everything about that tutorial works as expected (i.e it connects to the indi server, the mount moves to Vega, etc) but it gets hung up on the following line:
blobEvent.wait()

I know it is taking the photo, as the KStars FITS Viewer opens up with the image capture from the CCD Simulator, but it seems that the python script isn't receiving notification that the blob is available.

If I change the line to:
blobEvent.wait(timeout=10)

The script continues normally after timing out.

Any suggestions?
1 year 10 months ago #58098

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

  • Posts: 226
  • Thank you received: 88
Hi,
May you try without running kstars at the same time ?
It seems the python client does not get the blob data (you may easily check that, there is a print in the newblob callback in the tutorial code).
If you see the print message, there may be something updated in the threading.Event python library which causes this issue.
1 year 10 months ago #58125

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

Time to create page: 0.330 seconds