×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

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?
3 years 7 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.
3 years 7 months ago #58125

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

Time to create page: 0.561 seconds