pyscripter / python4delphi

Free components that wrap up Python into Delphi and Lazarus (FPC)
MIT License
895 stars 307 forks source link

Сan't compile PythonVcl #435

Closed Niglavok closed 9 months ago

Niglavok commented 9 months ago

Сan't compile PythonVcl unit WrapVclComCtrls 2392: PythonToPythonType(LVarParam.Value).PyObjectClass).DelphiObjectClass; PythonToPythonType -> TPythonType ? 3024: PyTuple_SetItem(LPyTuple, 3, OwnerDrawStateToPython(State)); OwnerDrawStateToPython -> CustomDrawStateToPython ? 3666: PythonToPythonType(LVarParam.Value).PyObjectClass).DelphiObjectClass; PythonToPythonType -> TPythonType ?

pyscripter commented 9 months ago

Please try again.

netzeng commented 9 months ago

The problem I encountered is the same as yours, I have tried many times。 Checking project dependencies... Compiling Python.dproj (Release, Win32)

Compiling PythonVcl.dproj (Release, Win32) dcc32 command line for "PythonVcl.dpk" [dcc32 Error] WrapVclComCtrls.pas(362): E2003 Undeclared identifier: 'TNodeCheckState' [dcc32 Error] WrapVclComCtrls.pas(374): E2005 'TNodeCheckState' is not a type identifier [dcc32 Error] WrapVclComCtrls.pas(726): E2005 'TNodeCheckState' is not a type identifier [dcc32 Error] WrapVclComCtrls.pas(753): E2005 'TNodeCheckState' is not a type identifier [dcc32 Error] WrapVclComCtrls.pas(757): E2133 TYPEINFO standard function expects a type identifier [dcc32 Error] WrapVclComCtrls.pas(2393): E2003 Undeclared identifier: 'TTVCheckStateChangedEvent' [dcc32 Error] WrapVclComCtrls.pas(2393): E2133 TYPEINFO standard function expects a type identifier [dcc32 Error] WrapVclComCtrls.pas(2397): E2005 'TNodeCheckState' is not a type identifier [dcc32 Error] WrapVclComCtrls.pas(2437): E2003 Undeclared identifier: 'TTVCheckStateChangingEvent' [dcc32 Error] WrapVclComCtrls.pas(2437): E2133 TYPEINFO standard function expects a type identifier [dcc32 Error] WrapVclComCtrls.pas(2441): E2005 'TNodeCheckState' is not a type identifier [dcc32 Fatal Error] WrapDelphiVCL.pas(38): F2063 Could not compile used unit 'WrapVclComCtrls.pas' Failed Elapsed time: 00:00:00.7

pyscripter commented 9 months ago

Please try again with the current state of the repo. Which delphi version are you using?

pyscripter commented 9 months ago

TNodeCheckState was introduced in Delphi 11. Fixed.