Mac import error after update

40 views
Skip to first unread message

Rob

unread,
Jul 25, 2019, 7:31:41 AM7/25/19
to leo-editor
Since the last big Leo upgrade in June, I can't get it to start on macOS Mojave (10.14.5). I get this:

Traceback (most recent call last):


  File "launchLeo.py", line 7, in <module>


    import leo.core.runLeo


  File "/Users/rkeeney/leo-editor/leo/core/runLeo.py", line 25, in <module>


    import leo.core.leoGlobals as leoGlobals


  File "/Users/rkeeney/leo-editor/leo/core/leoGlobals.py", line 68, in <module>


    import urllib.parse as urlparse


ImportError: No module named parse


It's probably something simple like updating pyQT or something, but don't know how to do that on Mac. Any suggestions?

Rob...

Edward K. Ream

unread,
Jul 25, 2019, 1:06:16 PM7/25/19
to leo-editor
On Thu, Jul 25, 2019 at 6:31 AM Rob <lar...@gmail.com> wrote:
Since the last big Leo upgrade in June, I can't get it to start on macOS Mojave (10.14.5). I get this:

> import urllib.parse as urlparse

You must be running Python 3.6 or above.

Edward

Rob

unread,
Jul 25, 2019, 10:19:29 PM7/25/19
to leo-editor
Yes, but I don't know how to upgrade Python on the Mac. Seems like the default installation 2.7 or something. I can manage this on my PC, but the Mac is a complete mystery to me how to do that. (Wish I didn't have to deal with it, but it's my travel laptop and am only marginally proficient at it, especially with command line stuff.)

Rob...

Edward K. Ream

unread,
Jul 26, 2019, 10:08:33 AM7/26/19
to leo-editor
On Thu, Jul 25, 2019 at 9:19 PM Rob <lar...@gmail.com> wrote:
Yes, but I don't know how to upgrade Python on the Mac.

Try googling: "How do I use python 3 on the Mac"

Seems like the default installation 2.7 or something.

Thanks for the verification.  Official support for Python 2 is ending this year, so the Mac should be using Python 3 fairly soon by default.

Edward
Reply all
Reply to author
Forward
0 new messages