0

Long story short, I created a process automation tool using Python and Tkinter. I used auto-py-to-exe to convert the python scripts into an executable that works like an application on PCs.

My only problem is that the users of the "end application" are using both PCs and Macs.

The executable does not work on Mac, and when I tried using Py2App or PyInstaller to create a Mac application, the scripts did not compile correctly. Are there any other ways to work around this?

Thanks in advance for the help!!!

I tried using Py2App and PyInstaller to create an application that would work on a Mac.

sw4ps
  • 35
  • 5
  • 1
    Please provide enough code so others can better understand or reproduce the problem. – Blue Robin Mar 02 '23 at 16:09
  • What is the best way to do this? The python scripts have over 5000 lines of code...I am not sure where the error is when converting it to an app because the executable file works fine on Windows, the script also runs perfectly when I execute it from my Python environment. – sw4ps Mar 02 '23 at 21:00
  • The answer to your question is no. There is no way to compile a python program to run on windows and mac. – Alexander Mar 03 '23 at 02:42
  • OK, so in order for this to happen I would need to compile it into an exe for windows and an app for Mac? Do you have a compiler you recommend using for Mac? I tried Py2App and PyInstaller and neither worked... :/ – sw4ps Mar 03 '23 at 05:39
  • pyinstaller works on both... so that would be my recommendation. If it isn't working then find out why it isn't working and fix it. – Alexander Mar 03 '23 at 19:08

1 Answers1

0

On the windows platform, you can use some tools such as NSIS.

  • Do you mind clarifying a little more? I am unfamiliar with this tool. My current executable file works well on Windows, but I am struggling to convert the python scripts to a usable Mac application. – sw4ps Mar 02 '23 at 05:58
  • On platform MAC,1Install py2app pip3 install py2app 2. Generate setup.py files py2applet --make-setup xx.py (files to be packaged) 3. Package the file python3 setup.py py2app – Wendell Mar 03 '23 at 09:07
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Friedrich Mar 06 '23 at 16:29