* * *

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


  • Jr. Member
  • **
  • Posts: 89
Python (TpythonEngine) procedure/functions
« on: September 11, 2017, 10:29:03 am »
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:
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?


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



Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus