MacOS install Success - Mojave

99 views
Skip to first unread message

Israel Hands

unread,
Jan 6, 2022, 6:59:22 AM1/6/22
to leo-editor
Previously I had experienced misery but now success, well so far - half an hour in.  Of course I can't remember the exact sequence but here is my best guess.  I think I installed Python first then SIP, I installed pyqt5  before qt, which can't be right but it seems to work! I used pip to install pyqt5 because I read somewhere this is  good thing. I have no idea. Spool to end to see what I didn't do compared with Leo Docs...

---------------------------------------------------------

Get the xcode command line tools which match the highest version of Xcode that works with your version of MacOS. I didn't want to upgrade to Mac silicon versions of the OS and Mojave is the last version of MacOS that will run 32 bit apps which I wanted to stay with. 

You don't need the full xcode package, which is good is that is ~8GB). You will need a free Apple developer log in.

 I installed 10.3


---------------------------------------------------------
---------------------------------------------------------
I installed everything below while in /usr/local
---------------------------------------------------------
---------------------------------------------------------
First install HomeBrew


---------------------------------------------------------
install python3.9

brew install python

---------------------------------------------------------
install SIP

brew install SIP

---------------------------------------------------------
install pyqt 

python3 -m pip install PyQt5

---------------------------------------------------------
install qt5

brew install qt5

----------------------------------------------------------
Get Leo from Git

sudo git clone --depth=500 --no-single-branch https://github.com/leo-editor/leo-editor 

---------------------------------------------------------

run Leo

python3 launchleo.py

---------------------------------------------------------

Compared to the instructions in the docs, I did not add this to my bash profile-

export PATH=/usr/local/bin:$PATH # This is for SIP (and PyQt) as suggested by Homebrew export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH

I was worried about the PYTHONPATH etc but as these instruction refer to python2.7 I just ignored them. No doubt disaster awaits somewhere.

ta

IH


tbp1...@gmail.com

unread,
Jan 6, 2022, 7:07:23 AM1/6/22
to leo-editor
With Windows, there is no need to separately install QT, since pyqt5 contains the binaries in a form that Python can use.  This may be different on the Mac version, but it would be interesting to know.

Israel Hands

unread,
Jan 6, 2022, 7:21:02 AM1/6/22
to leo-editor
That could well be the case. In my previous attempts to install I got a missing QT error but of course if Leo couldn't see pyqt and pyqt had the QT stuff in it that would match up. When I break this install I'll try without QT.  And there was some stuff about wheels that I didn't understand. 

Ta IH.

tbp1...@gmail.com

unread,
Jan 6, 2022, 10:22:12 AM1/6/22
to leo-editor
Maybe the QT header files need to be present for compilation of pyqt.  For Windows the thing comes pre-compiled.

Israel Hands

unread,
Jan 7, 2022, 8:30:30 AM1/7/22
to leo-editor
It would be good to have a MacOS expert weigh in but they seem few and far between in Leo World. I guess the complexity of the installation is quite a high bar...

ta

IH

Edward K. Ream

unread,
Jan 9, 2022, 5:51:27 AM1/9/22
to leo-editor
On Fri, Jan 7, 2022 at 8:30 AM Israel Hands <alis...@mcgh.ee> wrote:
It would be good to have a MacOS expert weigh in but they seem few and far between in Leo World.

Maybe you will become that expert :-)

Edward

Israel Hands

unread,
Jan 9, 2022, 7:54:13 PM1/9/22
to leo-editor
Hi Edward - I admire your faith in my technical ability but sadly I'm afraid it is misplaced!  I was just really pleased to get Leo working as life without Leo is more than a bit miserable! I was even looking at giving Eastgate some money for Tinderbox....
My son codes for a living, mostly C in embedded processors for Playstation controllers but he used to do a fair bit of Python. I complained about the complexity (relative I know) of python installs v a simple executable. He said often it was easier just to lend the client the laptop with Python and his application installed rather than try to get them to install everything for themselves. My other son is a data scientist and spends lots of time in Python but when it comes to my problems they both seem strangely uninterested in helping their poor old dad!  Any way I always like to take the opportunity to say thanks for Leo - so thanks Edward. And if you ever get a chance to look at Tinderbox I would be interested in your thoughts.

IH

Reply all
Reply to author
Forward
0 new messages