Recent

Author Topic: Python for Delphi (P4D)  (Read 318 times)

Labrador

  • Newbie
  • Posts: 2
Python for Delphi (P4D)
« on: October 02, 2020, 01:03:40 pm »
Hello All!

I'm totally new at Pascal, and have been choosing between learning Python or Pascal for awhile.
So when I saw the Python for Delphi component ( https://github.com/pyscripter/python4delphi) , I thought that I could get the best of two worlds.

The only problem is that I can't install the Lazarus package, it gives an error : VarPyth.pas(1679,60) Error: Incompatible types: got "Variant" expected "NativeInt"

I'm sure there is a good reason for this error message that I´m to inexperienced to see.
Is there anyone else that's been using this component and have been able to install it?

Version : 2.0.10
FPC : 3.2.0

Thanks,

Labrador

Handoko

  • Hero Member
  • *****
  • Posts: 3908
  • My goal: build my own game engine using Lazarus
Re: Python for Delphi (P4D)
« Reply #1 on: October 02, 2020, 01:15:08 pm »
Hello Labrador,
Welcome to the forum.

You can install Python For Lazarus easily using Online Package Manager:
Lazarus main menu > Package > Online Package Manager > on the search box, type: python

Then click the checkbox and then the Install button. Wait some minutes then the IDE will be restarted.

Yes, you do not have to choose one among many development tools/languages. The more development tools you are able to use, the better a programmer you are.

Have fun.
« Last Edit: October 02, 2020, 01:17:45 pm by Handoko »

Labrador

  • Newbie
  • Posts: 2
Re: Python for Delphi (P4D)
« Reply #2 on: October 02, 2020, 01:43:57 pm »
Hello  Handoko,

Thank you for your swift answer!
I installed the component as you instructed, and it went fine.

I will play around with it at the same time that I’m digging into Pascal.

Thanks,

Labrador

 

TinyPortal © 2005-2018