Walid Alg 0 Posted September 28 Hey, every one. I used this project the library in the Delphi environment for Android: https://github.com/pyscripter/python4delphi/tree/master/Demos/FMX/SimpleDemo When I set the autoLoad property of the PythonEngine component to true, the application doesn't open or run on the phone. However, if I set it to false, the application runs, but I get the message: "Python is not properly initialized." I wrote the following code: PythonEngine.autoLoad := true; or PythonEngine.LoadDllInExtensionModule; But I still get the same message. I also use: PythonEngine.LoadDLL; The application crashes and exits immediately. My delphi Version is 12 and my Phone Android version is 8. I would appreciate your help. Share this post Link to post
pyscripter 650 Posted September 28 You need to deploy python to the Android device for this to work. Please see: Embarcadero/PythonEnvironments: Components to simplify the deployment for Python environments for Delphi applications using Python4Delphi. (github.com) and PythonEnvironments/samples/environments/deploy/sample_06_SimpleAndroid at main · Embarcadero/PythonEnvironments (github.com) 1 Share this post Link to post
Walid Alg 0 Posted September 28 13 hours ago, pyscripter said: You need to deploy python to the Android device for this to work. Please see: Embarcadero/PythonEnvironments: Components to simplify the deployment for Python environments for Delphi applications using Python4Delphi. (github.com) and PythonEnvironments/samples/environments/deploy/sample_06_SimpleAndroid at main · Embarcadero/PythonEnvironments (github.com) Thank you, today i tested Share this post Link to post
Walid Alg 0 Posted September 28 1 hour ago, Walid Alg said: Thank you, today i tested This message "Python is not properly initialized." Sure: "What does it mean? Is it because the Python librarys were not loaded in the deployment, or does it have another meaning?" Share this post Link to post
Walid Alg 0 Posted September 28 1 hour ago, Walid Alg said: This message "Python is not properly initialized." Sure: "What does it mean? Is it because the Python librarys were not loaded in the deployment, or does it have another meaning?" It worked, Thank you somuch Share this post Link to post