Walid Alg
Members-
Content Count
25 -
Joined
-
Last visited
Everything posted by Walid Alg
-
Hello, Is it possible to use a visual component with Python code for Android, for example, using the tqdm library or similar to display a progress bar along with the ProgressBar component in Delphi? Thank you.
-
I try any component visual display him in my app. I installed delphifmx library. Like this : prog = ProgressBar(Application.MainForm) prog.SetProps( Parent=Application.MainForm, Position=Position(PointF(5, 20)), Width=200, Height=50, Value=0, ) But I have error same code who excute on Windows plate-forme SVID_20241129_115325_1.mp4
-
Working in Windows plate-forme but in android no
-
I installed the external library moviePy on Windows using pip install, then I wrote a function in Python that performs a task using this library. Finally, I used this function in Delphi for Windows, and it worked. My question is: How can I install or include this library, or any external library, in an Android project, knowing that I am familiar with Python deployment based on the previous answer. https://en.delphipraxis.net/topic/12279-p4d-android-error/ Thank you.
-
"I found a temporary solution, but it's not complete." SVID_20241014_215009_1.mp4
-
I want to integrate Python libraries into an Android application in a Delphi environment. In general, to run a Python environment in an Android application, the environment must first be embedded and loaded from within Delphi by selecting Python and the version type. Then, it is eventually integrated with the application and appears in the form of an SO file. What I am trying to do is figure out how to install any external Python library and run it in an Android application using Delphi. I tried installing the MoviePy library through this link: https://github.com/Embarcadero/PythonPackages4Delphi/tree/main/src/MoviePy but it didn’t work. I also tried the attached project: https://github.com/Embarcadero/P4D-Data-Sciences/tree/main/samples/InstallAndImport which includes the PyTorch library. Both have the properties autoImport, autoInstall set to true, and the MoviePy and PyTorch components are set up by default as I stated earlier, with the addition of pythonEngine and pyEmbeddedEnvironment. But neither worked. The problem is the same: the same message appears, "no module named pip". which is that when executing the isImported function, it returns the value false.
-
"I found a temporary solution, but it's not complete." SVID_20241014_215009_1.mp4
-
Hello everyone, I'm looking for the component pyEmbeddedResEnvironment3101 in any available library. Thank you.
-
I found it in the PythonEnvironments library; I'm not sure why it was missing components the first time. After reloading, the library was fully downloaded.
-
It works, I don't know why, but after reinstalling the Python library for Windows from the official website, the latest version, I found the application in Delphi working and installing external libraries like PyTorch inside Delphi. Additionally, the function isImported returns true. Now my question is, on Android, I tried the same application that works on Windows, but it didn’t install the PyTorch library, for example. In the settings, ManagerKind = pip / conda. Using pip on Windows works to install the library, but conda doesn't work for installing the library. I tried both pip and conda on Android, but neither worked. Can you help with this?
-
pyEmbeddedResEnvironment310 is available in any library, thank you
-
Pip is defualt setting, other is corda lib or.. I forget his name. I have posted this in several forums and communities that focus on Delphi, but I haven't found any answers regarding the use of P4D in the Android environment, let alone a solution to the problem. The only person who has responded to me on this topic so far is you.
-
thought about this attached project importLibrary because I think it is the key to the solution. I got an error message.
-
Thank you very much for the effort.
-
If uploading the project helps in understanding and solving the issue, I will upload it for you. Thank you.
-
Yes, I did. It didn’t work for me due to the absence of PyTorch, I don't know which library it is in, but I understood the concept of how it works. That’s why the message appears in the Android application. An error occurred during the installation process:
-
-
As I understand it, to ensure that the component is working, the function should return the value true.
-
All ready have did. I have done this before, because the moviePy component requires modules from these libraries in order to function. Well, since the moviePy library is already installed on Windows, I added the moviePy component to the form and wrote an import code for it. It works as I’m just testing whether the moviePy component returns the value true for the isImported function. All of this is to check if the moviePy component works before switching to the Android platform. As I mentioned, the moviePy component is set up by default as I stated earlier, with the addition of pythonEngine and pyEmbeddedEnvironment. The problem is the same message appears, which is that when executing the isImported function, it returns the value false.
-
I have downloaded the Python Packages 4 Delphi library from the following link: https://github.com/Embarcadero/PythonPackages4Delphi/tree/main/src/MoviePy and installed it in the Delphi environment. Then, I placed the MoviePy component on the form. It has the properties autoImport and autoInstall set to true. I set the pyEnvironment property to the pyEmbeddedEnvironment1 component and the pythonEngine property to the pythonEngine1 component. However, when I call the moviePy1.isImported function, the value is false. I tried writing code to create an instance, but I received an error message. My question is: how do I use this MoviePy component? Is it enough to place it on the form, or are there additional settings required for it to work? Thank you.
-
Thank you so much
-
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.
-
It worked, Thank you somuch
-
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?"
-
Thank you, today i tested