Installing Leo in wsl Ubuntu

47 views
Skip to first unread message

lewis

unread,
Oct 15, 2024, 7:45:15 AM10/15/24
to leo-editor
In response to Edward's request for experiences running Leo on wsl, here is a summary on running Leo on wsl Ubuntu-22.04 using the recommended github installation method. See https://leo-editor.github.io/leo-editor/installing.html for the basic procedure.
In wsl I did NOT have success using pip install leo, so this summary is focused on using Git to install Leo.

Start wsl Ubuntu
Install git
$ sudo apt install git

Check git is installed
$ git --version

$ git clone https://github.com/leo-editor/leo-editor.git
$ cd leo-editor


Note - When using pip, the "--break-system-packages" option is needed.
So use:
~/leo-editor$ python3 -m pip install --break-system-packages -r requirements.txt


It was necessary to install these 3 packages:
$ sudo apt install libnss3
$ sudo apt install libatomic1
$ sudo apt install libxkbfile1


Finally I had Leo running fully on wsl Ubuntu-22.04, with both Freewin and VR3 plugins running.
You may want to try wsl Ubuntu-24.04

Feel free to ask for help. For clarity I have omitted some possible fetch-pack errors.

Regards
Lewis

Edward K. Ream

unread,
Oct 15, 2024, 8:23:52 AM10/15/24
to leo-e...@googlegroups.com
On Tue, Oct 15, 2024 at 6:45 AM lewis <lewi...@fastmail.com.au> wrote:
In response to Edward's request for experiences running Leo on wsl, here is a summary on running Leo on wsl Ubuntu-22.04 using the recommended github installation method. See https://leo-editor.github.io/leo-editor/installing.html for the basic procedure.
In wsl I did NOT have success using pip install leo, so this summary is focused on using Git to install Leo.

Excellent! I'll try your approach later today.

Edward

Thomas Passin

unread,
Oct 15, 2024, 8:58:57 AM10/15/24
to leo-editor
Yes, you have to use --user --break-system-packages to pip-install with the system's Python installation. I've finally broken down and used a venv for my latest LinuxOS.  I run Leo with a script that activates the venv and runs Leo with the venv.  Remember that in Linux, you have to source the activation script. IOW, in Windows you would write something like this:

venv\leo-editor\scripts\activate

In Linux you need:

source venv/leo-editor/bin/activate  # or wherever the activate script is

Thomas Passin

unread,
Oct 15, 2024, 10:21:14 AM10/15/24
to leo-editor
More possibly helpful information I have collected:

Some Linux distros give an error message about a missing library when trying to run Leo after a first-time installation.  Missing Linux libraries can often be identified at pkgs.org:

http://pkgs.org/

Sometimes the error message will say that "libxcb-cursor0" is needed (that's "cursorZero", in case the font zero looks like the letter O), and sometimes that's not the right package name for that distro.  pkgs.org can help.

Per the referenced URL, setting this environmental variable
will produce a more detailed message about what Qt found missing:

export QT_DEBUG_PLUGINS=1

Edward K. Ream

unread,
Oct 15, 2024, 11:00:48 AM10/15/24
to leo-e...@googlegroups.com
On Tue, Oct 15, 2024 at 9:21 AM Thomas Passin <tbp1...@gmail.com> wrote:

Per the referenced URL, setting this environmental variable
will produce a more detailed message about what Qt found missing:

export QT_DEBUG_PLUGINS=1

Thanks.  Here's the dump. I removed "/home/edreamleo/.local/lib/python3.12/site-packages"  from most paths

QQQQQ starts...

(base) edreamleo@BLD:~$ leo

# Removed "/home/edreamleo/.local/lib/python3.12/site-packages"  from most paths
qt.core.plugin.factoryloader: checking directory path ".../PyQt6/Qt6/plugins/platforms" ...
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/platforms/libqlinuxfb.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/platforms/libqlinuxfb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "linuxfb"
        ]
    },
    "archlevel": 1,
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("linuxfb")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/platforms/libqeglfs.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/platforms/libqeglfs.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "eglfs"
        ]
    },
    "archlevel": 1,
    "className": "QEglFSIntegrationPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("eglfs")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/platforms/libqxcb.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/platforms/libqxcb.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "xcb"
        ]
    },
    "archlevel": 1,
    "className": "QXcbIntegrationPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("xcb")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/platforms/libqwayland-egl.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/platforms/libqwayland-egl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland-egl"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandEglPlatformIntegrationPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("wayland-egl")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/platforms/libqwayland-generic.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/platforms/libqwayland-generic.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "wayland"
        ]
    },
    "archlevel": 1,
    "className": "QWaylandIntegrationPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("wayland")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/platforms/libqvkkhrdisplay.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/platforms/libqvkkhrdisplay.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vkkhrdisplay"
        ]
    },
    "archlevel": 1,
    "className": "QVkKhrDisplayIntegrationPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("vkkhrdisplay")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/platforms/libqminimal.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/platforms/libqminimal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimal"
        ]
    },
    "archlevel": 1,
    "className": "QMinimalIntegrationPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimal")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/platforms/libqoffscreen.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/platforms/libqoffscreen.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "offscreen"
        ]
    },
    "archlevel": 1,
    "className": "QOffscreenIntegrationPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("offscreen")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/platforms/libqvnc.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/platforms/libqvnc.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "vnc"
        ]
    },
    "archlevel": 1,
    "className": "QVncIntegrationPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("vnc")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/platforms/libqminimalegl.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/platforms/libqminimalegl.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
        "Keys": [
            "minimalegl"
        ]
    },
    "archlevel": 1,
    "className": "QMinimalEglIntegrationPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("minimalegl")
qt.core.plugin.factoryloader: checking directory path "/home/edreamleo/miniforge3/bin/platforms" ...
qt.core.library: ".../PyQt6/Qt6/plugins/platforms/libqwayland-generic.so" loaded library
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
qt.core.library: ".../PyQt6/Qt6/plugins/platforms/libqxcb.so" loaded library
qt.core.plugin.factoryloader: checking directory path ".../PyQt6/Qt6/plugins/platformthemes" ...
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/platformthemes/libqgtk3.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/platformthemes/libqgtk3.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "gtk3"
        ]
    },
    "archlevel": 1,
    "className": "QGtk3ThemePlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("gtk3")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/platformthemes/libqxdgdesktopportal.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/platformthemes/libqxdgdesktopportal.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.QPlatformThemeFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "xdgdesktopportal",
            "flatpak",
            "snap"
        ]
    },
    "archlevel": 1,
    "className": "QXdgDesktopPortalThemePlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("xdgdesktopportal", "flatpak", "snap")
qt.core.plugin.factoryloader: checking directory path "/home/edreamleo/miniforge3/bin/platformthemes" ...
qt.core.plugin.factoryloader: checking directory path ".../PyQt6/Qt6/plugins/platforminputcontexts" ...
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/platforminputcontexts/libibusplatforminputcontextplugin.so, metadata=
{
    "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "ibus"
        ]
    },
    "archlevel": 1,
    "className": "QIbusPlatformInputContextPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("ibus")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so, metadata=
{
    "IID": "org.qt-project.Qt.QPlatformInputContextFactoryInterface.5.1",
    "MetaData": {
        "Keys": [
            "compose",
            "xim"
        ]
    },
    "archlevel": 1,
    "className": "QComposePlatformInputContextPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("compose", "xim")
qt.core.plugin.factoryloader: checking directory path "/home/edreamleo/miniforge3/bin/platforminputcontexts" ...
qt.core.library: ".../PyQt6/Qt6/plugins/platforminputcontexts/libcomposeplatforminputcontextplugin.so" loaded library
qt.core.plugin.factoryloader: checking directory path ".../PyQt6/Qt6/plugins/xcbglintegrations" ...
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/xcbglintegrations/libqxcb-glx-integration.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/xcbglintegrations/libqxcb-glx-integration.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.Xcb.QXcbGlIntegrationFactoryInterface.5.5",
    "MetaData": {
        "Keys": [
            "xcb_glx"
        ]
    },
    "archlevel": 1,
    "className": "QXcbGlxIntegrationPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("xcb_glx")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/xcbglintegrations/libqxcb-egl-integration.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/xcbglintegrations/libqxcb-egl-integration.so, metadata=
{
    "IID": "org.qt-project.Qt.QPA.Xcb.QXcbGlIntegrationFactoryInterface.5.5",
    "MetaData": {
        "Keys": [
            "xcb_egl"
        ]
    },
    "archlevel": 1,
    "className": "QXcbEglIntegrationPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("xcb_egl")
qt.core.plugin.factoryloader: checking directory path "/home/edreamleo/miniforge3/bin/xcbglintegrations" ...
qt.core.library: ".../PyQt6/Qt6/plugins/xcbglintegrations/libqxcb-glx-integration.so" loaded library
WARNING: dzn is not a conformant Vulkan implementation, testing use only.
WARNING: Some incorrect rendering might occur because the selected Vulkan device (Microsoft Direct3D12 (NVIDIA GeForce RTX 3080)) doesn't support base Zink requirements: feats.features.logicOp have_EXT_custom_border_color have_EXT_line_rasterization
qt.core.plugin.factoryloader: checking directory path ".../PyQt6/Qt6/plugins/styles" ...
qt.core.plugin.factoryloader: checking directory path "/home/edreamleo/miniforge3/bin/styles" ...
qt.core.plugin.factoryloader: checking directory path ".../PyQt6/Qt6/plugins/iconengines" ...
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/iconengines/libqsvgicon.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/iconengines/libqsvgicon.so, metadata=
{
    "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
    "MetaData": {
        "Keys": [
            "svg",
            "svgz",
            "svg.gz"
        ]
    },
    "archlevel": 1,
    "className": "QSvgIconPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("svg", "svgz", "svg.gz")
qt.core.plugin.factoryloader: checking directory path "/home/edreamleo/miniforge3/bin/iconengines" ...
qt.core.plugin.factoryloader: checking directory path ".../PyQt6/Qt6/plugins/imageformats" ...
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/imageformats/libqicns.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/imageformats/libqicns.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "icns"
        ],
        "MimeTypes": [
            "image/x-icns"
        ]
    },
    "archlevel": 1,
    "className": "QICNSPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("icns")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/imageformats/libqsvg.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/imageformats/libqsvg.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "svg",
            "svgz"
        ],
        "MimeTypes": [
            "image/svg+xml",
            "image/svg+xml-compressed"
        ]
    },
    "archlevel": 1,
    "className": "QSvgPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("svg", "svgz")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/imageformats/libqpdf.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/imageformats/libqpdf.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "pdf"
        ],
        "MimeTypes": [
            "application/pdf"
        ]
    },
    "archlevel": 1,
    "className": "QPdfPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("pdf")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/imageformats/libqwebp.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/imageformats/libqwebp.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "webp"
        ],
        "MimeTypes": [
            "image/webp"
        ]
    },
    "archlevel": 1,
    "className": "QWebpPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("webp")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/imageformats/libqtga.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/imageformats/libqtga.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "tga"
        ],
        "MimeTypes": [
            "image/x-tga"
        ]
    },
    "archlevel": 1,
    "className": "QTgaPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("tga")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/imageformats/libqwbmp.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/imageformats/libqwbmp.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "wbmp"
        ],
        "MimeTypes": [
            "image/vnd.wap.wbmp"
        ]
    },
    "archlevel": 1,
    "className": "QWbmpPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("wbmp")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/imageformats/libqjpeg.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/imageformats/libqjpeg.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "jpg",
            "jpeg"
        ],
        "MimeTypes": [
            "image/jpeg",
            "image/jpeg"
        ]
    },
    "archlevel": 1,
    "className": "QJpegPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("jpg", "jpeg")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/imageformats/libqtiff.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/imageformats/libqtiff.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "tiff",
            "tif"
        ],
        "MimeTypes": [
            "image/tiff",
            "image/tiff"
        ]
    },
    "archlevel": 1,
    "className": "QTiffPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("tiff", "tif")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/imageformats/libqgif.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/imageformats/libqgif.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "gif"
        ],
        "MimeTypes": [
            "image/gif"
        ]
    },
    "archlevel": 1,
    "className": "QGifPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("gif")
qt.core.plugin.factoryloader: looking at ".../PyQt6/Qt6/plugins/imageformats/libqico.so"
qt.core.plugin.loader: Found metadata in lib .../PyQt6/Qt6/plugins/imageformats/libqico.so, metadata=
{
    "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
    "MetaData": {
        "Keys": [
            "ico",
            "cur"
        ],
        "MimeTypes": [
            "image/vnd.microsoft.icon",
            "image/vnd.microsoft.icon"
        ]
    },
    "archlevel": 1,
    "className": "QICOPlugin",
    "debug": false,
    "version": 395008
}


qt.core.plugin.factoryloader: Got keys from plugin meta data QList("ico", "cur")
qt.core.plugin.factoryloader: checking directory path "/home/edreamleo/miniforge3/bin/imageformats" ...
qt.core.library: ".../PyQt6/Qt6/plugins/imageformats/libqicns.so" loaded library
qt.core.library: ".../PyQt6/Qt6/plugins/imageformats/libqsvg.so" loaded library
qt.core.library: ".../PyQt6/Qt6/plugins/imageformats/libqpdf.so" loaded library
qt.core.library: ".../PyQt6/Qt6/plugins/imageformats/libqwebp.so" loaded library
qt.core.library: ".../PyQt6/Qt6/plugins/imageformats/libqtga.so" loaded library
qt.core.library: ".../PyQt6/Qt6/plugins/imageformats/libqwbmp.so" loaded library
qt.core.library: ".../PyQt6/Qt6/plugins/imageformats/libqjpeg.so" loaded library
qt.core.library: ".../PyQt6/Qt6/plugins/imageformats/libqtiff.so" loaded library
qt.core.library: ".../PyQt6/Qt6/plugins/imageformats/libqgif.so" loaded library
qt.core.library: ".../PyQt6/Qt6/plugins/imageformats/libqico.so" loaded library
qt.core.plugin.factoryloader: checking directory path ".../PyQt6/Qt6/plugins/accessible" ...
qt.core.plugin.factoryloader: checking directory path "/home/edreamleo/miniforge3/bin/accessible" ...

Leo 6.8.2-devel, devel branch, build c22c944ab2
2024-10-15 00:21:42 -0500
Python 3.12.6, PyQt version 6.7.3
linux
SessionManager.load_snapshot: no previous session

QQQQQ Ends

Does anything stand out for you?

Edward

Edward K. Ream

unread,
Oct 15, 2024, 11:05:34 AM10/15/24
to leo-e...@googlegroups.com
On Tue, Oct 15, 2024 at 6:45 AM lewis wrote:

In response to Edward's request for experiences running Leo on wsl, here is a summary on running Leo on wsl Ubuntu-22.04 using the recommended github installation method. See https://leo-editor.github.io/leo-editor/installing.html for the basic procedure.
In wsl I did NOT have success using pip install leo, so this summary is focused on using Git to install Leo.

No joy here.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.1 LTS
Release:        24.04
Codename:       noble

Edward

Thomas Passin

unread,
Oct 15, 2024, 2:18:57 PM10/15/24
to leo-editor
Thanks pretty overwhelming, isn't it?  I didn't see anything that failed. There was a message about Zink, whatever that is.  I've seen that kind of message on some of my VMs but it doesn't seem to prevent Leo from running or acting correctly. So I'm out of suggestions for the moment.

Thomas Passin

unread,
Oct 15, 2024, 2:21:26 PM10/15/24
to leo-editor
LSB is basically dead.  That's probably why you don't have lsb_release:

lewis

unread,
Oct 15, 2024, 4:27:38 PM10/15/24
to leo-editor
Does Leo run and stay open?

Try this script:

# Test import PyQt6.Qtxxxx
     
from PyQt6.QtCore import QUrl
from PyQt6.QtWidgets import QApplication
from PyQt6.QtWidgets import QMainWindow
from PyQt6.QtWebEngineWidgets import QWebEngineView
import sys

# PyQt6 version check

import PyQt6
from PyQt6.QtCore import qVersion
print(f"  ==== PyQt6 version ", qVersion())


I used it to ensure I could run VR3 and Freewin which required QWebEngineView.

Edward K. Ream

unread,
Oct 15, 2024, 4:48:06 PM10/15/24
to leo-e...@googlegroups.com
On Tue, Oct 15, 2024 at 3:27 PM lewis <lewi...@fastmail.com.au> wrote:

Does Leo run and stay open?

Yes, but mouse clicks do not work. In fact, the only way to close Leo is to shut wsl down!

Try this script:

# Test import PyQt6.Qtxxxx
     
from PyQt6.QtCore import QUrl
from PyQt6.QtWidgets import QApplication
from PyQt6.QtWidgets import QMainWindow
from PyQt6.QtWebEngineWidgets import QWebEngineView
import sys

Passes.

# PyQt6 version check

import PyQt6
from PyQt6.QtCore import qVersion
print(f"  ==== PyQt6 version ", qVersion())

Prints "==== PyQt6 version  6.7.3"

I used it to ensure I could run VR3 and Freewin which required QWebEngineView.

As I said a few minutes ago, I think it's time to abandon trying to get Leo working on my system.

I suspect the problems relate to QtWayland, a client-server architecture that presumably mediates between Windows and wsl. Unlike the real Ubuntu, something like QtWayland surely must be required.

To repeat, I'll use the real Ubuntu if I want to play with executing sage scripts from Leo.

Edward

Thomas Passin

unread,
Oct 15, 2024, 6:10:33 PM10/15/24
to leo-editor
Wayland is a more modern, very incompatible replacement for X11, the venerable display server used by Linux systems. It uses a different communication protocol. Little by little, Wayland is becoming adopted by various distros, not always without problems.  Virtualbox, for example,  has problems with guest VMs that use Wayland.  To confuse matter more, I've seen libraries whose name sounds like they convert X11 commands to Wayland commands, presumably so that non-Wayland software can run using Wayland to actually create the display.

Since Ubuntu 22.04 (I don't have 24.04 yet) uses X11, I would have thought that Qt wouldn't need any Wayland libraries for it.  But maybe Qt thinks it shouldn't load without it, who knows?
Reply all
Reply to author
Forward
0 new messages