× General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.

Question need help for installing Python4Lazarus on CT 5.80

  • tatamata
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
4 years 4 months ago - 4 years 4 months ago #9656 by tatamata
I wish to install Python4Lazarus package ( github.com/Alexey-T/Python-for-Lazarus ) in CT 5.80 (latest beta).

The Lazarus package of Python4Lazarus can be installed in Lazarus with no problem.
However, when I try to install it into CodeTyphon (v 5.80 beta) I get following error:
"PythonEngine.pas(5791,26) Error: Incompatible types: got "OleVariant" expected "NativeInt""

The whole Messages when trying to compile the package:
Compile package python4lazarus_pkg 1.0: Exit code 1, Errors: 1, Warnings: 4, Hints: 3
PythonEngine.pas(3017,15) Note: Virtual method "Execute;" has a lower visibility (private) than parent class TThread (protected)
PythonEngine.pas(4762,24) Warning: Implicit string type conversion from "AnsiString" to "WideString"
PythonEngine.pas(4944,18) Warning: Implicit string type conversion from "AnsiString" to "WideString"
PythonEngine.pas(5471,15) Warning: Implicit string type conversion with potential data loss from "WideString" to "AnsiString"
PythonEngine.pas(5791,26) Error: Incompatible types: got "OleVariant" expected "NativeInt"
PythonEngine.pas(5792,21) Hint: Conversion between ordinals and pointers is not portable
PythonEngine.pas(7644,36) Hint: Conversion between ordinals and pointers is not portable
PythonEngine.pas(9423,46) Warning: Implicit string type conversion from "AnsiString" to "WideString"

I would kindly ask if there is some CodeTyphon user willing to check & compile this package for CT 5.80 and see what's the problem? Thnx.
Last edit: 4 years 4 months ago by tatamata.

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

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 years 4 months ago - 4 years 4 months ago #9657 by Sternas Stefanos
Replied by Sternas Stefanos on topic need help for installing Python4Lazarus on CT 5.80
Sir
just modify the line 5791 at Components\Sources\CorePythonEngine.pas
myInt := IntPtr(DeRefV.__asPPyObject__); // ct9999  //Returns the address to PPyObject as integer. (See impl. in PythonAtom.pas)

PilotLogic Architect and Core Programmer
Last edit: 4 years 4 months ago by Sternas Stefanos.

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

  • tatamata
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
4 years 4 months ago #9658 by tatamata

Sternas Stefanos wrote: Sir
just modify the line 5791 at Components\Sources\CorePythonEngine.pas

myInt := IntPtr(DeRefV.__asPPyObject__); // ct9999  //Returns the address to PPyObject as integer. (See impl. in PythonAtom.pas)

Thanks!

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