Leo shortcut on windows fail with devel branch

41 views
Skip to first unread message

Félix

unread,
Apr 21, 2024, 6:37:35 PM4/21/24
to leo-editor
I had to revert to the master branch on my windows pc to get the shortcut to work.

It's the one that points to Scripts/leo-messages.exe

Here is the shortcut in question (was setup automatically when I installed Leo)

screenshot.png

Félix

unread,
Apr 21, 2024, 6:47:19 PM4/21/24
to leo-editor
Maybe I should update something on my side? Will that happen to all old windows installations made with pip install ? (I installed on that pc a year or so ago)

Here's what I see when I run that command manually : 

Untitled.png

Félix

unread,
Apr 21, 2024, 7:05:08 PM4/21/24
to leo-editor
After trying to simply install pyqt6, I get yet another error when trying to launch: cannot import name 'QtWebEngineCore' from 'PyQt6'
Untitled.png

Edward K. Ream

unread,
Apr 21, 2024, 7:29:45 PM4/21/24
to leo-e...@googlegroups.com
On Sun, Apr 21, 2024 at 5:37 PM Félix <felix...@gmail.com> wrote:

I had to revert to the master branch on my windows pc to get the shortcut to work.

It's the one that points to [Python]/Scripts/leo-messages.exe

I have no knowledge of this script!

There is nothing suggestive of this file in the leo-editor directory!

I suggest you delete this file!

Edward

Edward K. Ream

unread,
Apr 21, 2024, 7:32:29 PM4/21/24
to leo-e...@googlegroups.com


On Sun, Apr 21, 2024 at 5:37 PM Félix <felix...@gmail.com> wrote:

> I had to revert to the master branch on my windows pc to get the shortcut to work.

leo-messages.exe probably isn't nefarious, but it sure is mysterious.

Running pip -r requirements.txt should install the missing dependency.

Edward

Félix

unread,
Apr 21, 2024, 8:55:57 PM4/21/24
to leo-editor
Thanks Edward,

Searching for ' leo-message ' in Leo's codebase, I see the 'leo-message' script is mentioned in 'running.html' 

and also in 'add-desktop-links.leox'. 

Félix

Félix

unread,
Apr 21, 2024, 9:05:10 PM4/21/24
to leo-editor
Weird, i'm getting that -r is not an option... I'll investigate further... 
Untitled.png

Thomas Passin

unread,
Apr 21, 2024, 11:42:48 PM4/21/24
to leo-editor
py -m pip install -r requirements.txt

Thomas Passin

unread,
Apr 21, 2024, 11:45:15 PM4/21/24
to leo-editor
On Sunday, April 21, 2024 at 7:05:08 PM UTC-4 Félix wrote:
After trying to simply install pyqt6, I get yet another error when trying to launch: cannot import name 'QtWebEngineCore' from 'PyQt6'

It's in a separate package from PyQt6.  Requirements.txt should get it installed. 

Félix

unread,
Apr 22, 2024, 12:43:38 AM4/22/24
to leo-editor
Ah! Thank you Thomas!! The precise command line you suggested made a difference!

 I can now launch Leo with the same shortcut I had, so thanks again for that py/python difference made it work :) 

Félix

Edward K. Ream

unread,
Apr 22, 2024, 5:58:06 AM4/22/24
to leo-e...@googlegroups.com
On Sun, Apr 21, 2024 at 7:55 PM Félix <felix...@gmail.com> wrote:

Searching for ' leo-message ' in Leo's codebase, I see the 'leo-message' script is mentioned in 'running.html' 

Thanks, Thomas, for your help.

And thanks, Félix for reporting this problem. This glitch is what Viktor asked about several days ago. It bit you because, yes, Leo's requirements did recently change. Thankfully, that's a rare event.

and also in 'add-desktop-links.leox'. 

I failed to find this file yesterday because I searched for 'leo-message' as a filename rather than as the contents of a file.

And now I see why this file isn't in LeoPyRef.leo: the file leo/scripts/desktop-integration.leo contains `@file` nodes for the .leox file above and two other related .leox files.

Edward

Thomas Passin

unread,
Apr 22, 2024, 8:59:53 AM4/22/24
to leo-editor
You can see what would get installed with requirements.txt by adding the flag --dry-run. pip will go through the motions but not actually install anything.  For example, I just ran py -m pip install -r requirements.txt --dry-run and got this report:

Would install Send2Trash-1.8.3 cffi-1.16.0 coverage-7.4.4 cryptography-42.0.5 pycparser-2.22 pytest-cov-5.0.0 ruff-0.4.1 types-Markdown-3.6.0.20240316 types-PyYAML-6.0.12.20240311 types-docutils-0.20.0.20240406 types-paramiko-3.4.0.20240311 types-requests-2.31.0.20240406 types-six-1.16.21.20240311

Looks Like some of my packages need updating.

Edward K. Ream

unread,
Apr 22, 2024, 10:04:36 AM4/22/24
to leo-e...@googlegroups.com
On Mon, Apr 22, 2024 at 7:59 AM Thomas Passin <tbp1...@gmail.com> wrote:
You can see what would get installed with requirements.txt by adding the flag --dry-run.

Thanks for this tip!

Edward
Reply all
Reply to author
Forward
0 new messages