Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy/sample_06_SimpleAndroid is giving me errors #39

Open
marcovth opened this issue Jun 17, 2023 · 8 comments
Open

deploy/sample_06_SimpleAndroid is giving me errors #39

marcovth opened this issue Jun 17, 2023 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@marcovth
Copy link

Hello ...

https://github.com/Embarcadero/PythonEnviroments/tree/main/samples/environments/deploy/sample_06_SimpleAndroid is giving me these errors ... Is something missing?

`Build started 17 Jun 2023 08:53:37.


Project "D:\Delphi\PythonEnviroments\samples\environments\deploy\sample_06_SimpleAndroid\SimpleAndroid.dproj" (Make target(s)):
Target CreateProjectDirectories:
Creating directory ".\Android64\Debug".
Target BuildVersionResource:
c:\program files (x86)\embarcadero\studio\22.0\bin\cgrc.exe -c65001 SimpleAndroid.vrc -foSimpleAndroid.res
CodeGear Resource Compiler/Binder
Version 1.2.2 Copyright (c) 2008-2012 Embarcadero Technologies Inc.

Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0

Copyright (C) Microsoft Corporation.  All rights reserved.


Deleting file "SimpleAndroid.vrc".

Target _PasCoreCompile:
c:\program files (x86)\embarcadero\studio\22.0\bin\dccaarm64.exe -$O- -$R+ -$Q+ --no-config -M -Q -TX.so -AGenerics.Collections=System.Generics.Collections;Generics.Defaults=System.Generics.Defaults -DDEBUG;PYTHON;PYTHONVER39;;FRAMEWORK_FMX -E.\Android64\Debug -I"c:\program files (x86)\embarcadero\studio\22.0\lib\Android64\debug";"c:\program files (x86)\embarcadero\studio\22.0\lib\Android64\Release";C:\Users\Public\Documents\Embarcadero\Studio\22.0\Dcp\Android64;d:\Delphi\P4D\Source;D:\Delphi\P4D\Source\vcl;D:\Delphi\P4D\Source\fmx;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\Python4Delphi-1.0\Source;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\Python4Delphi-1.0\Source\vcl;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\Python4Delphi-1.0\Source\fmx;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\AddOn;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Embeddable;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Embeddable\Res;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Project;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Project\IDE;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Tools;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Cmd;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Cmd\Conda;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Cmd\Pip;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Defs;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Defs\Opts;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Defs\Opts\Conda;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Defs\Opts\Pip;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Model;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\Delphi4PythonExporter-D11-1.2.1\Source;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\DOSCommand-2021.09-D11\source -LEC:\Users\Public\Documents\Embarcadero\Studio\22.0\Bpl\Android64 -LNC:\Users\Public\Documents\Embarcadero\Studio\22.0\Dcp\Android64 -NU.\Android64\Debug -NSSystem;Xml;Data;Datasnap;Web;Soap; -O"c:\program files (x86)\embarcadero\studio\22.0\lib\Android64\Release";C:\Users\Public\Documents\Embarcadero\Studio\22.0\Dcp\Android64;d:\Delphi\P4D\Source;D:\Delphi\P4D\Source\vcl;D:\Delphi\P4D\Source\fmx;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\Python4Delphi-1.0\Source;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\Python4Delphi-1.0\Source\vcl;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\Python4Delphi-1.0\Source\fmx;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\AddOn;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Embeddable;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Embeddable\Res;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Project;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Project\IDE;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Tools;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Cmd;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Cmd\Conda;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Cmd\Pip;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Defs;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Defs\Opts;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Defs\Opts\Conda;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Defs\Opts\Pip;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Model;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\Delphi4PythonExporter-D11-1.2.1\Source;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\DOSCommand-2021.09-D11\source -R"c:\program files (x86)\embarcadero\studio\22.0\lib\Android64\Release";C:\Users\Public\Documents\Embarcadero\Studio\22.0\Dcp\Android64;d:\Delphi\P4D\Source;D:\Delphi\P4D\Source\vcl;D:\Delphi\P4D\Source\fmx;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\Python4Delphi-1.0\Source;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\Python4Delphi-1.0\Source\vcl;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\Python4Delphi-1.0\Source\fmx;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\AddOn;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Embeddable;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Embeddable\Res;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Project;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Project\IDE;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Tools;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Cmd;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Cmd\Conda;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Cmd\Pip;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Defs;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Defs\Opts;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Defs\Opts\Conda;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Defs\Opts\Pip;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Model;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\Delphi4PythonExporter-D11-1.2.1\Source;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\DOSCommand-2021.09-D11\source -U"c:\program files (x86)\embarcadero\studio\22.0\lib\Android64\debug";"c:\program files (x86)\embarcadero\studio\22.0\lib\Android64\Release";C:\Users\Public\Documents\Embarcadero\Studio\22.0\Dcp\Android64;d:\Delphi\P4D\Source;D:\Delphi\P4D\Source\vcl;D:\Delphi\P4D\Source\fmx;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\Python4Delphi-1.0\Source;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\Python4Delphi-1.0\Source\vcl;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\Python4Delphi-1.0\Source\fmx;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\AddOn;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Embeddable;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Embeddable\Res;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Project;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Project\IDE;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\PythonEnviroments-1.0\src\Tools;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Cmd;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Cmd\Conda;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Cmd\Pip;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Defs;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Defs\Opts;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Defs\Opts\Conda;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Manager\Defs\Opts\Pip;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\LightweightPythonWrappers-1.0\src\Model;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\Delphi4PythonExporter-D11-1.2.1\Source;C:\Users\marcovth\Documents\Embarcadero\Studio\22.0\CatalogRepository\DOSCommand-2021.09-D11\source --libpath:C:\Users\Public\Documents\Embarcadero\Studio\22.0\CatalogRepository\AndroidNDK-21-22.0.48361.3236\android-ndk-r21\sources\cxx-stl\llvm-libc++\libs\arm64-v8a;C:\Users\Public\Documents\Embarcadero\Studio\22.0\CatalogRepository\AndroidNDK-21-22.0.48361.3236\android-ndk-r21\platforms\android-23\arch-arm64\usr\lib --linker:C:\Users\Public\Documents\Embarcadero\Studio\22.0\CatalogRepository\AndroidNDK-21-22.0.48361.3236\android-ndk-r21\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\aarch64-linux-android\bin\ld.exe -V -VN -NO.\Android64\Debug SimpleAndroid.dpr
D:\Delphi\PythonEnviroments\samples\environments\deploy\sample_06_SimpleAndroid\Unit1.pas(47,33): error E2003: E2003 Undeclared identifier: 'EndSetup'
D:\Delphi\PythonEnviroments\samples\environments\deploy\sample_06_SimpleAndroid\Unit1.pas(65,41): error E2003: E2003 Undeclared identifier: 'BeginSetup'
D:\Delphi\PythonEnviroments\samples\environments\deploy\sample_06_SimpleAndroid\Unit1.pas(78,6): error E2250: E2250 There is no overloaded version of 'ForceQueue' that can be called with these arguments
D:\Delphi\PythonEnviroments\samples\environments\deploy\sample_06_SimpleAndroid\Unit1.pas(86,6): error E2250: E2250 There is no overloaded version of 'ForceQueue' that can be called with these arguments
D:\Delphi\PythonEnviroments\samples\environments\deploy\sample_06_SimpleAndroid\Unit1.pas(94,6): error E2250: E2250 There is no overloaded version of 'ForceQueue' that can be called with these arguments
D:\Delphi\PythonEnviroments\samples\environments\deploy\sample_06_SimpleAndroid\Unit1.pas(102,6): error E2250: E2250 There is no overloaded version of 'ForceQueue' that can be called with these arguments
D:\Delphi\PythonEnviroments\samples\environments\deploy\sample_06_SimpleAndroid\Unit1.pas(112,6): error E2250: E2250 There is no overloaded version of 'ForceQueue' that can be called with these arguments
D:\Delphi\PythonEnviroments\samples\environments\deploy\sample_06_SimpleAndroid\Unit1.pas(120,6): error E2250: E2250 There is no overloaded version of 'ForceQueue' that can be called with these arguments
D:\Delphi\PythonEnviroments\samples\environments\deploy\sample_06_SimpleAndroid\SimpleAndroid.dpr(6,2): error F2063: F2063 Could not compile used unit 'Unit1.pas'
Done building target "_PasCoreCompile" in project "SimpleAndroid.dproj" -- FAILED.
Done building project "SimpleAndroid.dproj" -- FAILED.
Build FAILED.
D:\Delphi\PythonEnviroments\samples\environments\deploy\sample_06_SimpleAndroid\Unit1.pas(47,33): error E2003: E2003 Undeclared identifier: 'EndSetup'
D:\Delphi\PythonEnviroments\samples\environments\deploy\sample_06_SimpleAndroid\Unit1.pas(65,41): error E2003: E2003 Undeclared identifier: 'BeginSetup'
D:\Delphi\PythonEnviroments\samples\environments\deploy\sample_06_SimpleAndroid\Unit1.pas(78,6): error E2250: E2250 There is no overloaded version of 'ForceQueue' that can be called with these arguments
D:\Delphi\PythonEnviroments\samples\environments\deploy\sample_06_SimpleAndroid\Unit1.pas(86,6): error E2250: E2250 There is no overloaded version of 'ForceQueue' that can be called with these arguments
D:\Delphi\PythonEnviroments\samples\environments\deploy\sample_06_SimpleAndroid\Unit1.pas(94,6): error E2250: E2250 There is no overloaded version of 'ForceQueue' that can be called with these arguments
D:\Delphi\PythonEnviroments\samples\environments\deploy\sample_06_SimpleAndroid\Unit1.pas(102,6): error E2250: E2250 There is no overloaded version of 'ForceQueue' that can be called with these arguments
D:\Delphi\PythonEnviroments\samples\environments\deploy\sample_06_SimpleAndroid\Unit1.pas(112,6): error E2250: E2250 There is no overloaded version of 'ForceQueue' that can be called with these arguments
D:\Delphi\PythonEnviroments\samples\environments\deploy\sample_06_SimpleAndroid\Unit1.pas(120,6): error E2250: E2250 There is no overloaded version of 'ForceQueue' that can be called with these arguments
D:\Delphi\PythonEnviroments\samples\environments\deploy\sample_06_SimpleAndroid\SimpleAndroid.dpr(6,2): error F2063: F2063 Could not compile used unit 'Unit1.pas'
0 Warning(s)
9 Error(s)
Time Elapsed 00:00:01.03`

@lmbelo lmbelo self-assigned this Jun 17, 2023
@lmbelo lmbelo added the bug Something isn't working label Jun 17, 2023
@lmbelo
Copy link
Member

lmbelo commented Jun 17, 2023

It seems we didn't update this sample with latest changes.
I will let you know when it's fixed.

@marcovth
Copy link
Author

Thanks a lot for your service. Could you add a simple example showing how you actually execute a python file script from Delphi? With Delphi sending (command-line) arguments to a script and capturing the python output for further Delphi processing.

@marcovth
Copy link
Author

I found some interesting looking functions here, potentially used to execute python scripts ...
https://github.com/Embarcadero/PythonEnviroments/tree/main/src/Tools/ExecCmd

But when I search, I don't find some simple examples.

@Priyatham10
Copy link
Member

We shall try to add this type of example soon. Thanks for the suggestion @marcovth

@lmbelo
Copy link
Member

lmbelo commented Jun 20, 2023

@marcovth, It seems you're using an unsupported version of Delphi. Which version are you using?
I just rechecked that sample and it works out. I too saw an unsupported overload of ForceQueue in your error list, what suggest an unsupported version of Delphi.

@marcovth
Copy link
Author

Embarcadero® Delphi 11 Version 28.0.48361.3236

@marcovth
Copy link
Author

image

@marcovth
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants