Wow, what a trek! Thank you for pulling all this together for us. And most of it will apply to any Ubuntu install, not just on WSL.
On Wednesday, October 16, 2024 at 6:00:05 PM UTC-4 lewis wrote: > Here is a summary procedure on running Leo on wsl Ubuntu-24.04 and some > installation issues Edward experienced. Thomas - thanks for your comments > on QtWayland. > > I use the recommended github installation method. See > https://leo-editor.github.io/leo-editor/installing.html > This summary is focused on using Git to install Leo. > > Go to Microsoft Store > search Ubuntu-24.04 press Get button. > > Installing, this may take a few minutes... > [SNIP] > Installation successful! > > Welcome to Ubuntu 24.04.1 LTS (GNU/Linux > 5.15.153.1-microsoft-standard-WSL2 x86_64) > > * Documentation: https://help.ubuntu.com > * Management: https://landscape.canonical.com > * Support: https://ubuntu.com/pro > > [SNIP] > > # Git is installed by default > > *lewisneal@PEGWS001:~$ git --versiongit version 2.43.0* > > # Python3 is installed by default > > *lewisneal@PEGWS001:~$ python3 --versionPython 3.12.3* > > # Update Ubuntu > > *$ sudo apt-get update* > # Install pip > # check if pip may already be installed with pip version > > > *lewisneal@PEGWS001:~$ pip3 --version Command 'pip3' not found, but can be > installed with: sudo apt install python3-pip* > > > > > > > > > > > > > *lewisneal@PEGWS001:~$ sudo apt install python3-pipReading package > lists... DoneBuilding dependency tree... DoneReading state information... > DoneThe following additional packages will be installed: [SNIP]The > following packages will be upgraded: [SNIP]3 upgraded, 66 newly installed, > 0 to remove and 32 not upgraded.Need to get 83.0 MB of archives.After this > operation, 302 MB of additional disk space will be used.Do you want to > continue? [Y/n]* > *[SNIP]* > # lots of unpacking. Here is summary, note that libatomic1 gets installed > > > > > > *Setting up python3-wheel (0.42.0-2) ...Setting up libatomic1:amd64 > (14.2.0-4ubuntu2~24.04) ...Setting up python3-pip (24.0+dfsg-1ubuntu1) > ...[SNIP]lewisneal@PEGWS001:~$* > > # Install Leo > > *$ git clone https://github.com/leo-editor/leo-editor.git > <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* > > # Lots of downloads.... > > > > > > *[SNIP]Successfully built metaInstalling collected packages: tk, > snowballstemmer, PyQt6-WebEngineSubwheel-Qt6, PyQt6-Qt6, pscript, [SNIP] > PyQt6-WebEngine, PyQt6-QScintilla, matplotlib, keyring, twine WARNING: The > script depyc is installed in '/home/lewisneal/.local/bin' which is not on > PATH. Consider adding this directory to PATH or, if you prefer to suppress > this warning, use --no-warn-script-location.[SNIP]* > > > # Install libxcb-cursor0 > *~$ sudo apt install libxcb-cursor0* > > # Run Leo. This shows the QtWayland issue. > > > > > > > > > > > > *lewisneal@PEGWS001:~/leo-editor$ python3 launchLeo.pysetting leoID from > os.getenv('USER'): 'lewisneal'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.qpa.plugin: From 6.5.0, xcb-cursor0 or > libxcb-cursor0 is needed to load the Qt xcb platform plugin.qt.qpa.plugin: > Could not load the Qt platform plugin "xcb" in "" even though it was > found.This application failed to start because no Qt platform plugin could > be initialized. Reinstalling the application may fix this problem.Available > platform plugins are: wayland, wayland-egl, minimalegl, eglfs, vnc, xcb, > linuxfb, offscreen, minimal, vkkhrdisplay.Aborted (core > dumped)lewisneal@PEGWS001:~/leo-editor$* > > # Fix problem with qt.qpa.plugin: > > *$ sudo apt install qt6-wayland* > # For information https://packages.ubuntu.com/noble/qt6-wayland > # or link suggested by Thomas: https://pkgs.org/download/qt6-wayland > > > # These 2 packages are required to fix AttributeError: 'NoneType' object > has no attribute 'QWebEngineView' > > *$ sudo apt install libnss3 # required $ sudo apt install libxkbfile1 # > required* > > > # This package is required to fix ImportError: libasound.so.2: cannot open > shared object file: No such file or directory > *$ sudo apt install libasound2t64* > > Finally I have Leo working fully on wsl Ubuntu-24.04, with both Freewin > and VR3 plugins running. Leo starts and runs but you may still see error > messages about qt.qpa.plugin. > > Regards > Lewis > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/9188b87f-9879-405f-b9d3-3cf283b4c7cbn%40googlegroups.com.