Problem running Leo after installing Python 3.12

166 views
Skip to first unread message

lewis

unread,
Oct 12, 2023, 5:58:41 AM10/12/23
to leo-editor
On Windows PC I installed Python 3.12 but when I tried running Leo with launchLeo.py I get:

'NoneType' object has no attribute 'gui'

** Leo could not be started **

I also tried running with
>python.exe -m leo.core.runLeo 

but got same result. Has anyone had a similar problem?

lewis

unread,
Oct 12, 2023, 6:36:22 AM10/12/23
to leo-editor
It seems I will need PyQt6 v6.5.3 which supports Python v3.12

Edward K. Ream

unread,
Oct 12, 2023, 7:03:51 AM10/12/23
to leo-e...@googlegroups.com
On Thu, Oct 12, 2023 at 4:58 AM lewis <lewi...@fastmail.com.au> wrote:

On Windows PC I installed Python 3.12 but when I tried running Leo with launchLeo.py I get:

'NoneType' object has no attribute 'gui'

** Leo could not be started **

Yes, you must install Qt.

#3604 suggests improving this message.

Edward

lewis

unread,
Oct 12, 2023, 7:12:14 AM10/12/23
to leo-editor

Matt Wilkie

unread,
Oct 12, 2023, 11:24:47 AM10/12/23
to leo-editor
There is also a problem with Windows-Curses and py 3.12:
https://github.com/leo-editor/leo-editor/issues/3603

(Hello everyone!)

jkn

unread,
Oct 12, 2023, 12:38:01 PM10/12/23
to leo-editor

Yes, I've vaguely wondered about Textual (https://www.textualize.io/) as well

    J^n

Thomas Passin

unread,
Oct 12, 2023, 12:55:45 PM10/12/23
to leo-editor
I've not been in a hurry to move to Python 3.12.  It's only been out a short while, I don't know how many of the dependencies work yet with 3.12, and so why shouldn't I wait for a while and let everything mature longer?

Edward K. Ream

unread,
Oct 12, 2023, 1:02:55 PM10/12/23
to leo-e...@googlegroups.com
On Thu, Oct 12, 2023 at 11:55 AM Thomas Passin <tbp1...@gmail.com> wrote:
I've not been in a hurry to move to Python 3.12.  It's only been out a short while, I don't know how many of the dependencies work yet with 3.12, and so why shouldn't I wait for a while and let everything mature longer?

I agree on a personal level. But we do want to be able to pip install Leo with Python 3.12.

Imo, the simplest (only?) way to do that is to remove the dependency on windows-curses.

Edward

lewis

unread,
Oct 14, 2023, 8:39:13 AM10/14/23
to leo-editor
PyQt version 6.5.3 has been released. It supports Python v3.12. 
After updating PyQt Leo runs on windows with Python 3.12 with no errors.

Thomas Passin

unread,
Oct 14, 2023, 8:44:17 AM10/14/23
to leo-editor
My system is running  Python 3.12 with PyQt 6.5.2:

C:\Users\tom>py -m pip list |find /i "pyqt6"
PyQt6               6.5.2
PyQt6-Qt6           6.5.2
PyQt6-sip           13.5.2
PyQt6-WebEngine     6.5.0
PyQt6-WebEngine-Qt6 6.5.2

I had to install it by hand, and the pip install of Leo failed, but once I had installed the dependencies myself I can run my Git clone with PyQt 6.5.2.
Reply all
Reply to author
Forward
0 new messages