Recent

Author Topic: Python (TpythonEngine) procedure/functions  (Read 4115 times)

mmab

  • Jr. Member
  • **
  • Posts: 89
Python (TpythonEngine) procedure/functions
« on: September 11, 2017, 10:29:03 am »
Hi,
I am trying to call a pascal procedure (inside Lazarus) from python script using TpythonEngine but getting the following error under ubuntu with Lazarus 1.6.4:
-----------
Project prj1 raised exception class 'External: SIGSEGV'.

 In file 'Sources/Core/MethodCallBack.pas' at line 187:
page^.next:=CodeMemPages;
-----------
The function is
function spam_foo( self, args : PPyObject ) : PPyObject; cdecl;

The wiki about the python component
http://wiki.freepascal.org/Using_Python_in_Lazarus_on_Windows/Linux is very good but does not address how to call a function/procedure from python.

There are several examples with delphi example but is not included in the Lazarus package.

Anybody has any suggestion on solving the issue?


AlexTP

  • Hero Member
  • *****
  • Posts: 2406
    • UVviewsoft
Re: Python (TpythonEngine) procedure/functions
« Reply #2 on: September 27, 2017, 07:14:49 pm »

 

TinyPortal © 2005-2018