From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_20,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a37:a2d1:: with SMTP id l200mr12281832qke.237.1607126273374; Fri, 04 Dec 2020 15:57:53 -0800 (PST) X-Received: by 2002:aed:29c2:: with SMTP id o60mr7067483qtd.253.1607126273180; Fri, 04 Dec 2020 15:57:53 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.gegeweb.eu!gegeweb.org!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 4 Dec 2020 15:57:52 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=124.149.31.79; posting-account=d51RWwoAAADvR-x0zYAtT9z3CRxT1eXo NNTP-Posting-Host: 124.149.31.79 References: <7223f058-c593-4905-b9ba-0a5cb3e64de2n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9e16c42a-b138-427c-81a4-bf5a723d252en@googlegroups.com> Subject: Re: Import Python library into an Ada package? From: Roger Mc Injection-Date: Fri, 04 Dec 2020 23:57:53 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:60721 List-Id: On Saturday, December 5, 2020 at 10:42:26 AM UTC+11, Roger Mc wrote: > > What about this: > > > > https://docs.adacore.com/gnatcoll-docs/scripting.html > > > > I have a rudimentary Python bindings independent on GNATColl, which I > > use to run Python scripts from Ada. They were designed to load Python > > dynamically, I did not want to make the application dependent on Python > > installed. If you want, you can use them as a template. There is no > > documentation, but the code using them. But as I said, better not... (:-)) > > -- > > Regards, > > Dmitry A. Kazakov > > http://www.dmitry-kazakov.de > I would really appreciate seeing your "rudimentary Python bindings ". > In the meantime I must study gnatcoll-docs/scripting.html more closely. > I have made a start using an example I found on the web but unfortunately it crashes with an EXC_SOFTWARE, Software generated exception which I think may be due to an invalid process descriptor. > Thanks, > Roger Some good news. I now have my example working. The problem was simply not specifying the correct path to my Python module!