Embarcadero / DelphiFMX4Python

Python GUI module powered by Delphi's FireMonkey framework. Supporting Windows, MacOS, Linux, and Android GUI development.
Other
298 stars 55 forks source link

Can not run Simplest.py in my Macbook 2020 (Core i7) #11

Closed kalmenchia closed 2 years ago

kalmenchia commented 2 years ago

Hi ,

i have installed the delphifmx as shown,

image

and tried to run the sample as shown,

image

but ran into some could not open DLL "libpython3.7.dylib" issues, any advice please ? thanks.

lmbelo commented 2 years ago

Hi @kalmenchia,

most probably because your Python's distribution doesn't provide the interpreter shared library. I'd suggest the Python's standard installation, downloaded from the Python website.

jimmckeeth commented 2 years ago

Let us know if reinstalling Python as Lucas suggested helps....

kalmenchia commented 2 years ago

Hi Jim, thanks for the Delphi 27 Anniversary presentation what a journey for me from D1 till D10.4 as well... ok, i installed as advice by Lucas but i cannot get the demo to run, it freeze , no error message, nothing, not sure what happened ... by the way i have been using python for quite a while and will love to see this project take off !

image

After i installed python3.79 , i uninstall delphifmx and reinstall it back as shown in the picture, tried at the python console to import delphifmx , no issues, but when i tries to run the sample ControlDesktop, it freezed !

pls advice, thanks all.

lmbelo commented 2 years ago

Hmm...I think I know what is happening. Does the launcher icon pops up on the dock?

kalmenchia commented 2 years ago

Lucas, exactly ... i need to kill it... in order to stop .

kalmenchia commented 2 years ago

Hi Lucas, may I check is any solution? thanks.

lmbelo commented 2 years ago

Hi, @kalmenchia! We are scheduling a new release for tomorrow. I will let you know for any news.

kalmenchia commented 2 years ago

Thanks. @lmbelo , Lucas.

lmbelo commented 2 years ago

@kalmenchia can you try again, please? Let me know if you run into new errors. This issue will remain open still we have a confirmation.

lmbelo commented 2 years ago

Hi @kalmenchia,

most probably because your Python's distribution doesn't provide the interpreter shared library. I'd suggest the Python's standard installation, downloaded from the Python website.

The delphifmx library now supports Conda and Venv on macOS.

kalmenchia commented 2 years ago

Hi @lmbelo ,

I am using Python 3.7.9 , I have followed the download Pkg, and installed the Python 3.7.9 on Aug 17. 2020 but still the same result. I think it may be my current Python 3.7.9 is corrupted or some other reasons, I found after upgrading to my Macbook to the 2020 i7 recently, somehow my Venv did not work correctly, I had to manually copy some files from my existing notebook. Cut long story short, i run in my VM windows environment, python 3.7.4 , it works. But will come back next round for my Mac setting. although I wish to do the development without using VM in my Mac Env. , but I guess not this round. thanks for all the help Lucas.

lmbelo commented 2 years ago

Weird, it should work on our last release. Let me know if we can do something else.

lmbelo commented 2 years ago

Hi @lmbelo ,

I am using Python 3.7.9 , I have followed the download Pkg, and installed the Python 3.7.9 on Aug 17. 2020 but still the same result. I think it may be my current Python 3.7.9 is corrupted or some other reasons, I found after upgrading to my Macbook to the 2020 i7 recently, somehow my Venv did not work correctly, I had to manually copy some files from my existing notebook. Cut long story short, i run in my VM windows environment, python 3.7.4 , it works. But will come back next round for my Mac setting. although I wish to do the development without using VM in my Mac Env. , but I guess not this round. thanks for all the help Lucas.

Can you try it under Conda env?

kalmenchia commented 2 years ago

HI @lmbelo ,

Sure, i have installed the latest miniconda , Miniconda3-latest-MacOSX-x86_64 ,but how do i install the delphifmx conda ?

I tried , #conda install delphifmx in my terminal , this is what i got image

and i have checked the conda repo , delphifmx is also not there, pls advice, thanks.

Priyatham10 commented 2 years ago

@kalmenchia You can directly install using pip inside conda. we don't have delphifmx available to conda-forge yet. Please just run pip install delphifmx inside the conda environment. You'll be good to go.

kalmenchia commented 2 years ago

Hi @Priyatham10 ,

thanks , it works,

image
Priyatham10 commented 2 years ago

Hi @Priyatham10 ,

thanks , it works,

Great, it worked for you finally. Please feel free to post further issues you might face as you try building applications.