cant start Leo nor LeoServer after pulling devel..

33 views
Skip to first unread message

Félix

unread,
Feb 19, 2022, 5:31:38 PM2/19/22
to leo-editor
Is support for qt5 already gone?

--
Félix

tbp1...@gmail.com

unread,
Feb 19, 2022, 5:37:19 PM2/19/22
to leo-editor
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.

Félix

unread,
Feb 19, 2022, 5:51:31 PM2/19/22
to leo-editor
> 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

tbp1...@gmail.com

unread,
Feb 19, 2022, 5:59:35 PM2/19/22
to leo-editor
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.

Félix

unread,
Feb 19, 2022, 6:08:29 PM2/19/22
to leo-editor
Oh no problem then! Thank you for that quick fix Thomas! :)

tbp1...@gmail.com

unread,
Feb 19, 2022, 7:33:47 PM2/19/22
to leo-editor
If merging with devel gets delayed, you could just fix that line yourself until then.

Robert-Felix

unread,
Feb 19, 2022, 9:18:05 PM2/19/22
to leo-e...@googlegroups.com
 That's what I did! :) 

Thanks again! 
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/54c6eeb5-0e54-4bbc-820a-643b9e0e114en%40googlegroups.com.

tbp1...@gmail.com

unread,
Feb 20, 2022, 8:57:18 AM2/20/22
to leo-editor
Merged in devel this morning.
Reply all
Reply to author
Forward
0 new messages