Embarcadero/python4delphi

Wont build under Delphi 11.2 (Trial)

peardox opened this issue · 12 comments

[dcc64 Fatal Error] Vcl.PythonGUIInputOutput.pas(53): E2213 Bad packaged unit format: C:\Users\Public\Documents\Embarcadero\Studio\22.0\Dcp\Python.dcp.PythonEngine - Expected version: 35.0, Windows Unicode(x64) Found version: 35.0, Windows Unicode(x86)

Works fine in 11.1 Trial + 10.4.2 CE

You're targeting the wrong dcp. Check out your lib path.

This was using a freshly installed copy of Delphi 11.2 Trial - I guess they could have screwed the trial up... I'll go check the paths for 11.1 (which works) and compare to 11.2 (which don't)

Compile P4D for both Win32 and Win64. Make sure your lib path are set to the desired platform folder.

Screen Shot 2022-10-15 at 14 55 38

Screen Shot 2022-10-15 at 14 56 11

Just checking now. Got 10.4.2 as main install. Just copied all lib settings from 11.1 in VM, now installing 11.2 to check if anything is different - more infor when 11.2 in installed

Mine appears to have a wrong entry via the installer

What should be
$(BDSCOMMONDIR)\Dcp$(Platform)
is
$(BDSCOMMONDIR)\Dcp

That explains why it's finding the 32 bit library - Delphi Trial set it to that value

Win32 is $(BDSCOMMONDIR)\Dcp only. You must add the $(platform) variable for Win64.

Cool - that compiles properly now

What version of 11.x you using? I'm wondering if just Trial is wrong (probably) - I'll mention it in the Tutorial anyway

This issue is present in 11.x.

Not in 11.1 Trial - it was by comparing 10.4.2 to 11.1 Trial to 11.2 Trial that I found the solution- I expected this was the problem.

Did you have to change your 11.?? non-trial version then? If so this definitely needs mentioning in the Tutorial and bugging with Embarcadero

This problem is present in 11.2 trial or not trial.

OK - defo mention this in Tutorial

This will also be fixed by the settings config discovered today