Recent revs to the 6.7.8 and "devel" branches install only PyQt6 when installing either from PyPi or GitHub. That is, both of the following will install PyQt6:
pip install leo # From PyPi
pip install -r requirements.txt # after git clone leo
Don't panic
This release, Leo 6.7.8, will continue to support both PyQt5 and PyQt6. The changes concern only what pip installs by default.
The next release, Leo 6.7.9, will remove support for PyQt5 only if everyone can install PyQt6 without problems.
Summary
The new installation requirements will install only PyQt6.
Leo's code will continue to support PyQt5.
There is plenty of time to reverse this experiment if it causes significant problems.
Your comments, please.
Edward
Recent revs to the 6.7.8 and "devel" branches install only PyQt6 when installing either from PyPi or GitHub. That is, both of the following will install PyQt6:
pip install leo # From PyPi
pip install -r requirements.txt # after git clone leo
[project.optional-dependencies] gui = ["PyQt5"]
pip install leo[pyqt5]
I would rather avoid this complication, but we'll see.
EdwardRecent revs to the 6.7.8 and "devel" branches install only PyQt6 when installing either from PyPi or GitHub.
I think that whether we can require pyqt6 should depend on whether it can be installed on a particular flavor of Linux. That didn't used to be the case, but it may be now. It is available on Ubuntu/XUbuntu, and probably on most Ubuntu-derived distros.However, Leo won't run after installing on Ubuntu until you install something else. The error message will be:qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.Here's the command needed to fix the issue:sudo apt install libxcb-cursor0
So far all the distros I have checked do now support pyqt6:Ubuntu/XUbuntuDebianOpenSuSEFedoraManjaroMintThese are all the distros I've got VMs for.
My question wasn't clear. I meant to ask whether potential errors concerning the missing xcb-cursor0 or libxcb-cursor0 libraries are a show stopper.Imo, most linux users will know to run sudo apt install, so the missing library isn't a significant barrier to requiring PyQt6. A new FAQ entry might be all that is needed. Do you agree?
On Friday, March 1, 2024 at 5:33:34 AM UTC-5 Edward K. Ream wrote:I meant to ask whether potential errors concerning the missing xcb-cursor0 or libxcb-cursor0 libraries are a show stopper.Imo, most linux users will know to run sudo apt install, so the missing library isn't a significant barrier to requiring PyQt6. A new FAQ entry might be all that is needed. Do you agree?
A year ago I might have said it was a show-stopper. But now the error message from Ubuntu was clear enough that running its suggested command fixed the issue...I agree with a FAQ entry.
BTW, Ubuntu/XUbuntu is the only distro where I've encountered this issue so far.
Try the other suggested library in the error message: xcb-cursor0 . I went through the same thing about a week ago on a different distro, and using the alternate suggestion solved it. If that doesn't work either, run an internet search for "fedora qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin." This may surface another library name that your distro has.
--
You received this message because you are subscribed to the Google Groups "leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/a257a7e3-343e-4f9e-bfde-f3c58b9f9b72n%40googlegroups.com.
On Mar 17, 2024, at 3:45 PM, Viktor Ransmayr <viktor....@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/CAAeSrGLyR7OSmHatFmn0gQGPHPj_8Ozyi4L9qt7PeKx_OZ%3DBZA%40mail.gmail.com.
My go-to ‘what package do I need’ tool is pkgs.org. They’re showing that the package for Fedora 38 is called xcb-until-cursor. Linux library management leaves much to be desired, in general.Hope this helps!