I've fixed it already, there's a new PR waiting. The problem was in a newly added import in leoQt5.py:
from PyQt5.QtGui import QCloseEvent Somehow that leading PyQt5. got lost. Sorry for the mistake, I thought I remembered testing with both qt5 and qt6, but apparently not with the "final" version. On Saturday, February 19, 2022 at 5:51:31 PM UTC-5 Félix wrote: > > I get the same result without pyqt6. I don't know, support for pyqt5 is > still supposed to be around for a good while yet, and it was working > yesterday. > > Thanks, > > Here are the output i get, starting 'classic' Leo in console just gives me > "'NoneType' object has no attribute 'gui'" > > and trying to start leoserver.py (to use leointeg), the equivalent of > creating an instance of leoBridge, gives me: > Error - Cannot start server: stderr: Traceback (most recent call last): > File "/home/felix/leo-editor/leo/core/leoQt.py", line 38, in <module> > from leo.core.leoQt6 import * > File "/home/felix/leo-editor/leo/core/leoQt6.py", line 12, in <module> > from PyQt6 import QtCore, QtGui, QtWidgets > ModuleNotFoundError: No module named 'PyQt6' > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/home/felix/leo-editor/leo/core/leoQt.py", line 51, in <module> > from leo.core.leoQt5 import * # type:ignore > File "/home/felix/leo-editor/leo/core/leoQt5.py", line 14, in <module> > from QtGui import QCloseEvent > ModuleNotFoundError: No module named 'QtGui' > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/home/felix/leo-editor/leo/core/leoserver.py", line 4004, in > <module> > main() > File "/home/felix/leo-editor/leo/core/leoserver.py", line 3954, in main > controller = LeoServer() # Single instance of LeoServer, i.e., an > instance of leoBridge > File "/home/felix/leo-editor/leo/core/leoserver.py", line 364, in > __init__ > import leo.core.leoApp as leoApp > File "/home/felix/leo-editor/leo/core/leoApp.py", line 23, in <module> > from leo.core.leoQt import QCloseEvent > File "/home/felix/leo-editor/leo/core/leoQt.py", line 56, in <module> > if g.app.gui.guiName() == 'qt': > AttributeError: 'NoneType' object has no attribute 'gui' > -- > Félix > On Saturday, February 19, 2022 at 5:37:19 PM UTC-5 tbp1...@gmail.com > wrote: > >> I get the same result without pyqt6. I don't know, support for pyqt5 is >> still supposed to be around for a good while yet, and it was working >> yesterday. >> >> On Saturday, February 19, 2022 at 5:31:38 PM UTC-5 Félix wrote: >> >>> Is support for qt5 already gone? >>> >>> -- >>> Félix >>> >> -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/ba8766ff-54e3-47c1-845f-d867fe44876fn%40googlegroups.com.