Welcome, Guest
Username: Password: Remember me
General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.
  • Page:
  • 1

TOPIC:

need help for installing Python4Lazarus on CT 5.80 7 years 8 months ago #9656

  • tatamata
  • tatamata's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 37
  • Thank you received: 3
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.

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

Last edit: by tatamata.

need help for installing Python4Lazarus on CT 5.80 7 years 8 months ago #9657

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4501
  • Thank you received: 1096
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

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

Last edit: by Sternas Stefanos.

need help for installing Python4Lazarus on CT 5.80 7 years 8 months ago #9658

  • tatamata
  • tatamata's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 37
  • Thank you received: 3

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.

need help for installing Python4Lazarus on CT 5.80 9 months 3 weeks ago #17745

  • Antony Acuña Navarro
  • Antony Acuña Navarro's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 1
  • Thank you received: 0
Download this:
drive.google.com/file/d/1uw1q3m2BjllTAq7...iyd/view?usp=sharing

and install it as a package
that is already configured for typhon no matter what lazarus says

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

need help for installing Python4Lazarus on CT 5.80 9 months 2 weeks ago #17747

  • Jan Roza
  • Jan Roza's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 152
  • Thank you received: 5
I think that after almost 7 years this answer might be a bit too late, don’t you think?
Operating Systems Windows 10 (64-bit), virtual Linux Mint (64-bit) and virtual Raspberry Pi Desktop

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

Last edit: by Jan Roza.
  • Page:
  • 1