×

INDI Library v1.9.3 Released (11 Nov 2021)

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

Problem importing PyIndi

  • Posts: 22
  • Thank you received: 14
I added a build test for PyIndi.

If @geehalel accepts the changes, I will also add unit tests.
github.com/geehalel/pyindi-client/pull/11
Last edit: 8 months 1 day ago by Paweł Soja.
8 months 1 day ago #69511
Attachments:

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

  • Posts: 226
  • Thank you received: 88

Replied by Jean-Luc on topic Problem importing PyIndi

@pawel Thanks for helping, I really can't make new pyindi-client versions as updates are commited in the indi-core master branch. IMO this may not be the best way, as you may have to add code because of swig limitations, code that you are going to suppress on the next indi-core release as you want to keep it as simple as possiblle.
I made pyindi-client years ago, just to see if this was achievable at low cost (I remember I started with using another wrapping tool, SIP). And I was unaware that it was used in subsequent projects since then.
I've proposed to @pawel to include pyindi-client directly in indi-core. I just can't support it alone.

@dolguldur and @GuLinux Don't wait a support for npindi. Really too large.

@dedicateastro The docs for pyindi-client are the C++ docs for IndiClient. No more, no less (almost). I don't want to write a documentation on how to design an indi client.
 
The following user(s) said Thank You: Lemoult
8 months 1 day ago #69517

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

  • Posts: 27
  • Thank you received: 32
Mmh, what do you mean by "too large"?
As I mentioned, I was thinking of either creating a new native python client, or possibly joining efforts with an existing projects. What are your thoughts on that? Is npindi too complex?
8 months 1 day ago #69523

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

  • Posts: 226
  • Thank you received: 88

Replied by Jean-Luc on topic Problem importing PyIndi

Time consuming.
npindi is basically a python rewrite of some indi base class in addition to the indi client qt classes used in kstars. That are those "kstars" qt classes which need some work if you want to stay in sync.
With current pawel's work the indi base class may also need some rewriting. Now, as long as the INDI xml format remains unchanged, npindi should continue to work whatever implementation is used in C++.
If you only need a basic client (I suppose you only need to translate INDI messages into JSON format and send that through a webservice), you may only keep or start from the npindi base class. In your case you may even suppress the receiving thread if your client has nothing else to do. Mmmh, maybe should you also listen to your app...
8 months 1 day ago #69527

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

  • Posts: 88
  • Thank you received: 10

Replied by dolguldur on topic Problem importing PyIndi

Even if the swig build itself is not failing, I guess we ended up more or less back to the same state: github.com/indilib/pyindi-client/issues/2
Anyone with good knowledge about swig able to help ?

EDIT:  Will perform few tests with this full python implementation: github.com/MMTObservatory/indiclient/blo...client/indiclient.py
EDIT2: Now I am fully convinced, and dropped completely the python bindings for this native implementation (with a few modification to suits my usecases).
Last edit: 1 month 5 days ago by dolguldur.
1 month 4 weeks ago #76305

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

Time to create page: 0.808 seconds