acaland 0 Posted September 27, 2022 Hello, I am trying to install Python4Delphi on Lazarus 2.2.2 with FPC 3.2.2 on MacOS Monterey but I have got the following errore while compiling the package: I have just opened the LPK package that I download from the github account of Python4delphi and compile it. One more question: I see there is also a Python4Lazarus fork. What is the difference between the twos? Which one is the more updated? Thanks a lot in advance Best Antonio Share this post Link to post
Mohammed Nasman 11 Posted September 27, 2022 The MacOS support is only for Dephi. FPC support is only for Win32 & Win64 SupportedPlatforms · pyscripter/python4delphi Wiki · GitHub Share this post Link to post
acaland 0 Posted September 28, 2022 thank you. From the link you provided I read: "MacOSX and Linux compatibility has not been fully tested. Please test and if required submit a patch." So I am just testing it it is working and maybe patch it Is "GetLastError()" method available only on Windows? Share this post Link to post
shineworld 73 Posted September 28, 2022 GetLastError() is a typical Win32 API function to get the latest error in an API call from OS. 1 Share this post Link to post
acaland 0 Posted September 28, 2022 1 hour ago, shineworld said: GetLastError() is a typical Win32 API function to get the latest error in an API call from OS. I replaced GetLastError() with GetLastOSError() and it compiled successfully! Is this supposed to achieve the same purpose but working cross platform? thanks Share this post Link to post
pyscripter 689 Posted September 28, 2022 This is now fixed. @acalandCould you please report whether fpc MacOS works ok? Share this post Link to post
acaland 0 Posted September 28, 2022 thank you. I just build it and installed fine. Next I will try to run some example to check if it actually works (I have a Apple Silicon Mac) and report it later By the way, what is the difference between P4D and Python4Lazarus? thx Share this post Link to post
pyscripter 689 Posted September 30, 2022 On 9/28/2022 at 10:28 PM, acaland said: what is the difference between P4D and Python4Lazarus? Python4Lazarus is a fork focusing on fpc support. It does not include the based on WrapDelphi, delphifmx, delphivcl stuff. Share this post Link to post