I used Grok extensively to help me solving this issue. In case somebody is interested in the dialog, here is the link:
https://grok.com/share/c2hhcmQtMg%3D%3D_abe479b8-59c3-46db-b21a-35be3f2be2dc It is rather long, but it leads from describing the issue to clean starting Leo from the Windows taskbar. (It also shows my lack of experience in these matters; but that's another topic...) On Wednesday, October 15, 2025 at 11:32:14 AM UTC+2 rengel wrote: > @lewis, @tbp1 > > Thank you both for chipping in. I tried both your suggestions. > Deleting old relics of PyQt6* and a fresh reinstall of PyQt6 in the main > Python installation solved all the problems; > and using a venv with a simple 'pip install leo' worked as well. > Finally I settled for the venv solution! > Thanks again! > Reinhard > > On Wednesday, October 15, 2025 at 1:29:53 AM UTC+2 [email protected] > wrote: > >> That's one reason to try to install to a new venv. There won't be any >> left-over bits to confuse the installer. >> >> On Tuesday, October 14, 2025 at 5:00:12 PM UTC-4 lewis wrote: >> >>> After updating to Python 3.14 I had the same problem starting Leo. >>> >>> >>> *File "N:\git\leo-editor\leo\core\leoQt.py", line 6, in <module> from >>> PyQt6 import QtCore, QtGui, QtWidgets* >>> >>> *ModuleNotFoundError: No module named 'PyQt6.sip'* >>> >>> I needed to uninstall packages PyQt6 and PyQt6_sip, then reinstall. Leo >>> then worked fine. Both my desktop PC and laptop had the same issue. >>> >>> There have been other packages which did not work correctly with Python >>> 3.14 and a package reinstall was needed. >>> >>> On Wednesday, October 15, 2025 at 2:17:14 AM UTC+11 rengel wrote: >>> >>>> [image: ModuleNotFoundError.png] >>>> >>>> >>>> A correction: The installation from github did install launchLeo.py. >>>> But starting 'python launchLeo.py' still results in the error: >>>> ModuleNotFoundError: No module named 'PyQt6.sip'. (I did install the >>>> requirements.) >>>> >>>> On Tuesday, October 14, 2025 at 5:00:37 PM UTC+2 rengel wrote: >>>> >>>>> Thank you for your answers! >>>>> I waited for a couple of days to install the latest version of leo. >>>>> But in vain. I tried both the pip install and the install from github. >>>>> But >>>>> in both cases I get the same error shown in my original post. Upon closer >>>>> inspection, I noticed that neither launchLeo.py nor PyQt6.sip have been >>>>> installed. And the installation didn't install a Leo home directory for >>>>> me. >>>>> >>>>> >>>>> On Thursday, October 9, 2025 at 11:08:55 PM UTC+2 [email protected] >>>>> wrote: >>>>> >>>>>> I just installed Python 3.14 on Windows 11. Then I created a new >>>>>> virtual environment and pip-installed Leo into it. PyQt6.sip got >>>>>> installed >>>>>> and Leo ran normally. Something went wrong when @rengel tried installing >>>>>> Leo, I think, because PyQt6 didn't install normally. >>>>>> >>>>>> I'd suggest creating a venv like I did and trying it that way. >>>>>> >>>>>> On Thursday, October 9, 2025 at 4:48:45 PM UTC-4 Thomas Passin wrote: >>>>>> >>>>>>> I don't think that's it - PyQt6.sip normally gets installed during a >>>>>>> PyQt6 installation. >>>>>>> >>>>>>> On Thursday, October 9, 2025 at 2:52:51 PM UTC-4 >>>>>>> [email protected] wrote: >>>>>>> >>>>>>>> @rengel, >>>>>>>> >>>>>>>> rengel schrieb am Donnerstag, 9. Oktober 2025 um 16:43:08 UTC+2: >>>>>>>> >>>>>>>> Hi, >>>>>>>> yesterday I updated my machine from Windows 10 to Winddos 11. >>>>>>>> Today, I completely removed all my old Python installations and then >>>>>>>> installed the new Python 3.14. From Python I did a fresh install of >>>>>>>> Leo >>>>>>>> from PyPi (`python -m pip install leo`) as described on the Leo >>>>>>>> website. >>>>>>>> During the install I got the following WARNING: >>>>>>>> [image: leo-warning.png] >>>>>>>> When I start leo, I get the following error:[image: leo-error.png] >>>>>>>> The environment contains the correct paths to Python and >>>>>>>> Python\Scripts. >>>>>>>> >>>>>>>> >>>>>>>> You installed the latest version of Leo from PyPI, which is version >>>>>>>> 6.8.6.1. >>>>>>>> >>>>>>>> This version does NOT yet support Python 3.14.0 ! >>>>>>>> >>>>>>>> If you want to try it out before Edward releases version 6.8.7, you >>>>>>>> have to use the 'devel' branch from GitHub. >>>>>>>> >>>>>>>> See >>>>>>>> https://leo-editor.github.io/leo-editor/installing.html#installing-leo-from-github >>>>>>>> >>>>>>>> With kind regards, >>>>>>>> >>>>>>>> Viktor >>>>>>>> >>>>>>>> -- 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/leo-editor/f5813bbc-652b-468e-a338-b07624df7a6an%40googlegroups.com.
