problem installing Leo on Linux

53 views
Skip to first unread message

Geoff Evans

unread,
Aug 5, 2019, 5:59:47 AM8/5/19
to leo-editor
I'm using Leo happily on different computers and operating systems, but when I try to install on a new Linux computer I run into trouble.
I started by installing Anaconda (version current as of the week before last) as Edward suggests, and then followed instructions on the leoeditor.com web site.  I first tried "pip install leo", and then downloaded the source code and tried to run "python pathname/launchLeo.py" and got the same error messages both times:

cannot import name 'QtWebKit' from 'PyQt5'

additional error:
...

from PyQt5 import QtWebEngineCore as QtWebKit
PyCapsule_GetPointer called with an incorrect name

Can anyone help?  (1) What did I do wrong?  (2) How can I fix it?  (3) How should I have been able to use the documentation to find out for myself?

Thanks,   geoff evans

vitalije

unread,
Aug 5, 2019, 6:54:03 AM8/5/19
to leo-editor
Most probably it is the PyQt5 version that is newer than Leo expects.
Try executing the following line in the terminal.
python -c "from PyQt5 import Qt;print(Qt.qVersion())"

And report here what is the output you get.

I remember having to install an older version of PyQt5 in order to make Leo work.

Vitalije

Geoff Evans

unread,
Aug 5, 2019, 9:19:12 AM8/5/19
to leo-editor
Thanks Vitalje
I get:
5.13.0

Matt Wilkie

unread,
Aug 5, 2019, 12:03:44 PM8/5/19
to leo-editor
PyQt v5.13.0 should work, it does for sure on Windows. Is PyQtWebEngine installed? Try `pip show PyQtWebEngine`. If not then try `pip install PyQtWebEngine`.

It's supposed to be installed automatically but adding it as a distinct package was a change added recently and it hasn't been widely tested.

-matt




Geoff Evans

unread,
Aug 5, 2019, 1:11:05 PM8/5/19
to leo-editor
That worked!  Leo starts nicely now.
Many thanks Matt and Vitalije.

geoff

Matt Wilkie

unread,
Aug 5, 2019, 2:45:39 PM8/5/19
to leo-editor
 you're welcome geoff, and welcome aboard too :)
Reply all
Reply to author
Forward
0 new messages