No macOS binary in downloads
retrography opened this issue · 18 comments
I noticed there is no macOS binary included on the downloads page, so I created one using Platypus (https://sveinbjorn.org/platypus). Feel free to download and include it. Obviously, you are welcome to test it or have it tested first. The package is supposed to be self-contained with no need for Python or library installations (the whole Python3 venv is included). I have also included the few resource files
that I have used to compile the package for future reference and reproduction purposes.
A screenshot:
Oh, that was very kind of you.. Thank you!
Tried to run it with an older OSX 10.8.5 virtual machine I had, but failed.
What is the minimum MacOS version that I should use?
This is what I read on Platypus' website:
The latest version is Platypus 5.3, released on November 25th, 2018. Platypus and Platypus-generated applications require macOS 10.8 or later, and are 64-bit Intel binaries.
So, it is strange that it didn't work for you. Do you get any decipherable error?
And does Platypus run on your VM? Maybe you can use the same Platypus profile I have shared with you to recreate the executable bundle.
On a second thought: Is it possible that the Python binary I have included is not compatible with 10.8? You can check that by entering the bundle's directory and looking into the resources to find the venv, then running the Python binary. Sorry if I am explaining the obvious, but I am not sure how much you know about MacOS.
Well, do explain the obvious, because I know close to nothing about macs...
I found some shortcuts for python
, python3
and python3.9
inside the bin
of the app, but none of then run...
From the terminal I could call only Python 2.7xx (the only one installed), so that is why the compiled app doesn't run.
It must be relying on the system's installed Python versions...
Actually, the alias refers to the python binary within the directory. The run.sh
file that I use to launch your main.py
script uses the venv python anyway.
But here is the culprit:
for OS X 10.9 and later
As reported here. The current python binaries are not compatible with macOS versions older than 10.9. We will have to find someone with a newer version of macOS to test the bundle. I will see if I can send it to a friend.
Sincerely, Platypus is not the best way to make self-contained Python-based executables, but I used it because I have a lot of issues running pyinstaller and py2app (which are the better solutions) since upgrading to macOS Big Sur.
Actually, the alias refers to the python binary within the directory.
Well, I can't find a Python binary anywhere inside the bin directory.
What you're seeing in the screenshot is the Info of the python
alias, that refers to itself!
I must be missing something here...
Is it possible to check the app at a system without any Python 3 installations?
Oh, now I see. You are right, there are only aliases. I just copied the python binary manually in the bundle and re-uploaded the zip file. Would you mind downloading and trying it again?
It is still searching for Python DLLs. The VENV solution is what the developer of Platypus suggested for creating self-contained executables out of Python scripts. Apparently there are issues with that. Let me find another solution.
Bummer...
Thank you for your time though :o)
@retrography If you succeed in the creation of a MacOS binary, notify me to upload it in the newer release..
Thank you for your time.
For the last couple of releases I've included an archive with PySide2/Python 3 source files.
I have test them on Windows using Python 3.7.2 and they work OK.
So you just have to find a way to fix your PyInstaller problem (which is what I use both in windows and Linux)
download
Error (400)
Something went wrong. Don't worry, your files are still safe and the Dropbox team has been notified. Check out our Status Page to see if there is a known incident, our Help Center and forums for help, or head back to home.
@elain Is your message connected with the compiling of a mac OS X binary that is discussed in this issue somehow?
Sorry for the necrobump. Is there any way to make this work on Mac? I checked out the earlier comments but I'm afraid I have little understanding of the python compiler ecosystem. Would love any pointers on trying to make this work for MacOS.
Although there is no compiled binary for Mac, you can still run the scripts from the Source code (zip) (or the KoHighlights.v2.0.3.0.PySide6.zip).
The difference is in the version of PySide used (PySide2 or Pyside6).
To do that you need a Python 3.xx installed on your system (current OSX must have something newer than version 3.6+ that is the minimum).
You must also install the library's dependencies.
After that you only have to open the terminal, cd
to the scripts folder and run python main.py
(or python3 main.py
).
If this run ok, I'm sure you can find a way to do it with a simple shortcut..