From: "Rego, P." <pvrego@gmail.com>
Subject: Re: Running Python code from GPRBuild (Calling from GNAT Studio)
Date: Fri, 11 Nov 2022 10:12:32 -0800 (PST) [thread overview]
Message-ID: <bad9f4e0-09c2-47e4-a71e-05d828bcfb82n@googlegroups.com> (raw)
In-Reply-To: <tkljbu$kfs$1@gioia.aioe.org>
> Note that Linker does not take language e.g. ("Python") you just write:
> package Linker is
> for Driver use "pyinstaller.exe";
did that... got some more ugly messages
gprbuild -d -PP:\Gnat\testpy.gpr P:\Gnat\src\Analysis.py
Compile
[python] analysis.py
gprbuild: raised ADA.ASSERTIONS.ASSERTION_ERROR : Invalid Id 0
[C:\GNAT\2021\bin\gprbuild.exe]
0x8db0d6
0x648431
0x648671
0x4832bc
0x492553
0x49260e
0x4932d4
0x413bd5
0x948929
0x401423
0x40113b
[C:\WINDOWS\System32\KERNEL32.DLL]
0x7ffc052b7032
[C:\WINDOWS\SYSTEM32\ntdll.dll]
0x7ffc05e6269f
[2022-11-11 15:10:07] process exited with status 4, elapsed time: 04.03s
and now I oversimplified the Analysis.py to
import os
import sys
print('test')
maybe I'm pushing harder than should (trying to compile/run/whatever Python from GPS),
but still curious.
> You have to tinker a bit since there is no object files to feed the
> Linker. Maybe you could sell it *.py as an "archive" (static library).
> Whatever... (:-))
Who knows :p
next prev parent reply other threads:[~2022-11-11 18:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-10 19:25 Running Python code from GPRBuild (Calling from GNAT Studio) Rego, P.
2022-11-10 21:57 ` Dmitry A. Kazakov
2022-11-11 10:25 ` Rego, P.
2022-11-11 11:04 ` Dmitry A. Kazakov
2022-11-11 11:28 ` Rego, P.
2022-11-11 13:30 ` Dmitry A. Kazakov
2022-11-11 13:40 ` Dmitry A. Kazakov
2022-11-11 18:12 ` Rego, P. [this message]
2022-11-11 18:08 ` Rego, P.
2022-11-11 19:50 ` Dmitry A. Kazakov
2022-11-11 21:34 ` Rego, P.
2022-11-11 15:20 ` Egil H H
2022-11-11 18:14 ` Rego, P.
2022-11-11 20:05 ` Egil H H
2022-11-11 21:24 ` Rego, P.
2022-11-12 17:40 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox