Leo Install Problems on Linux (again)

70 views
Skip to first unread message

tbp1...@gmail.com

unread,
Nov 19, 2021, 6:56:29 PM11/19/21
to leo-editor
I thought that Leo install problems on Linux had been solved, but apparently not so.  I tried to install Leo in Linux Mint to a new virtual environment.  It failed to install because it wanted versions of PyQt and PyQtWebengine that don't seem to be available for Linux.

In recent past, it had been found that one had to install older Leo Leo versions, 6.4, or even 6.1, before upgrading to later versions.  Today I couldn't get 6.4 to install.  The reason turned out to be that PyPi apparently doesn't have the right linux versions of PyQt5 and PyQtWebEngine.

I was able to get Leo installed in two different virtual environments by first installing the PyQt packages.  The only combination I was able to install successfully was:

PyQt5 (5.14.0)
PyQtWebEngine (5.12)

All other versions failed for one or the other of PyQt5 or PyQtWebEngine. I had to pip-install these first.  Then I pip-installed Leo with success, getting version 6.5.

Apparently you can't get a list of what versions PiPi has available.  The pip search function doesn't work anymore, and the old way of installing with a blank version (e.g., pip install PyQt5==) to get a list of available versions doesn't work either.  If you search on the PyPi web site, it tells you there are versions which don't install and does not say that it has versions that actually do.

I don't know what the solution is here, but it could be a nasty problem for new users on Linux.

Edward K. Ream

unread,
Dec 12, 2021, 7:51:26 AM12/12/21
to leo-editor
My apologies for the delay in responding. The problem with extra Qt packages exists on Windows too, and very likely on MacOS, as I just rediscovered yesterday. In particular, I have not been able to get the VR3 plugin working completely with Qt6.

Imo, these problems will not prevent people from trying Leo and I don't think it should be Leo's responsibility to handle Qt madness.

Edward

tbp1...@gmail.com

unread,
Dec 12, 2021, 8:32:12 AM12/12/21
to leo-editor
I agree with you, but it will be hard for people to try Leo if the pip-install fails.  I don't know the solution, though, except not to require pyqtwebengine for pip to suceed, and to have VR3 emit a message about installing it.

The development of the WebEngine seems to be handled separately from the main part of Qt, on its own schedule.  They planned to do some redesign.  As of the latest version of PyQt6, there was still no WebEngine, and that's why VR3 doesn't work "completely".  It falls back to using a QTextBrowser like VR does.

Reply all
Reply to author
Forward
0 new messages