Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Wayland DEB on Debian 12 error libwx_gtk3u_html-3.0.so.0 #1793

Open
lutfiajib opened this issue Dec 18, 2023 · 40 comments
Open

Install Wayland DEB on Debian 12 error libwx_gtk3u_html-3.0.so.0 #1793

lutfiajib opened this issue Dec 18, 2023 · 40 comments
Assignees
Labels
bug Something isn't working high priority We need to resolve this as soon as we can installation Problems with the installation

Comments

@lutfiajib
Copy link

Just download latest version Espanso Wayland Debian v.2.2.1 from Github, and got error

Steps to reproduce the behavior:

  1. Download from Githut using espanso-debian-wayland-amd64.deb
  2. sudo apt install ./espanso-debian-wayland-amd64.deb
  3. call espanso from console
  4. Got this error:
    espanso: error while loading shared libraries: libwx_gtk3u_html-3.0.so.0: cannot open shared object file: No such file or directory
  • OS: Debian 12
  • Version: v2.2.1 (latest version)
@lutfiajib lutfiajib added the bug Something isn't working label Dec 18, 2023
@guillaume-martin
Copy link

I have the same bug with espanso-debian-x11-amd64.deb v.2.2.1 (OS: Debian 12)

@Rody-Oldenhuis
Copy link

Same here on Ubuntu 23.10/Mantic.

@FluffMe
Copy link

FluffMe commented Dec 19, 2023

Same here on X11 deb.

Used an AppImage version as a workaround for now. Works with no issues.

@Rody-Oldenhuis
Copy link

Building from source also seems to work OK (using cargo-make v0.37.5 / Ubuntu 23.10)

@gavinlaking
Copy link

gavinlaking commented Dec 27, 2023

Sadly, the first step of building from source is failing for me on Debian 12 Bookworm and Debian testing as Unable to locate package libwxgtk3.0-gtk3-dev.

Edit:

I can however install libwxgtk3.2-gtk3-dev, so I did!. Unfortunately, despite compiling again from source, it still fails when running espanso --version; with the following error:

espanso: error while loading shared libraries: libwx_gtk3u_html-3.0.so.0: cannot open shared object file: No such file or directory

Edit 2:

The compiled version appears to run fine (at least ./target/release/espanso --version doesn't crash), until it is moved or copied to /usr/local/bin/espanso via sudo mv target/release/espanso /usr/local/bin/espanso. I don't know enough about Cargo to deduce what is actually happening.

Edit 3:

For those triaging, I was just having a look through the issues and noticed this one; #1739 which is outlines similar issues to this, but no solution either.

@zchap26
Copy link

zchap26 commented Dec 28, 2023

Same issue with espanso-debian-wayland-amd64.deb v2.2.1 on Debian 12 Bookworm.

@yue-dongchen
Copy link

@Rody-Oldenhuis Have you tested running it? I will compile it tomorrow if it works for you. Also on 23.10.

@yue-dongchen
Copy link

For those triaging, I was just having a look through the issues and noticed this one; #1739 which is outlines similar issues to this, but no solution either.

I suspect the pre-built .deb cannot locate libwx_gtk3u_html-3.0.so.0 because of this commit relaxing compilation, plus the package then being compiled with libwxgtk3.0-gtk3-dev. If Espanso is compatible with wxWidgets 3.2, then the issue should only be compilation. I will try tomorrow.

@Rody-Oldenhuis
Copy link

Rody-Oldenhuis commented Jan 8, 2024

@Rody-Oldenhuis Have you tested running it? I will compile it tomorrow if it works for you. Also on 23.10.

@yue-dongchen Yes I did; I could do text replacements just fine. Though, I ran it on my dev machine, which is not quite a pristine environment..

@jdnixx
Copy link

jdnixx commented Jan 17, 2024

I get this on the X11 version with Kubuntu 23.10.

@ysz0507
Copy link

ysz0507 commented Jan 24, 2024

I get this problem on Debian 12 with Wayland.
The problem occurred on the versions v2.2.1 and v2.2.0. The installation of v2.1.8 solved the problem for me.

@gavinlaking
Copy link

gavinlaking commented Jan 27, 2024

Tried your approach @ysz0507 on Debian testing, "just incase", sadly no dice;

$ sudo dpkg -i ~/Downloads/espanso-debian-wayland-amd64.deb 
Selecting previously unselected package espanso-wayland.
(Reading database ... 289203 files and directories currently installed.)
Preparing to unpack .../espanso-debian-wayland-amd64.deb ...
Unpacking espanso-wayland (2.1.8) ...
dpkg: dependency problems prevent configuration of espanso-wayland:
 espanso-wayland depends on libwxgtk3.0-gtk3-0v5; however:
  Package libwxgtk3.0-gtk3-0v5 is not installed.
 espanso-wayland depends on libwxgtk3.0-gtk3-0v5 (>= 3.0.4+dfsg); however:
  Package libwxgtk3.0-gtk3-0v5 is not installed.
 espanso-wayland depends on libwxbase3.0-0v5 (>= 3.0.4+dfsg); however:
  Package libwxbase3.0-0v5 is not installed.

dpkg: error processing package espanso-wayland (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 espanso-wayland

I can't install libwxgtk3.0, as it isn't available:

$ sudo apt search libwxgtk3
Sorting... Done
Full Text Search... Done
libwxgtk3.2-1/testing,now 3.2.4+dfsg-2 amd64 [installed,automatic]
  wxWidgets Cross-platform C++ GUI toolkit (GTK 3 runtime)

libwxgtk3.2-dev/testing,now 3.2.4+dfsg-2 amd64 [installed]
  wxWidgets Cross-platform C++ GUI toolkit (GTK 3 development)

@davidvv
Copy link

davidvv commented Jan 31, 2024

I had the same issue on ubuntu 23.10.1. Fixed it editing the sources file /etc/apt/sources.list like this:

sudo nano /etc/apt/sources.list

added the source: deb http://cz.archive.ubuntu.com/ubuntu focal main universe (Use your desired mirror from: https://packages.ubuntu.com/focal/amd64/libwxgtk3.0-gtk3-dev/download)

sudo apt update
sudo apt install libwxgtk3.0-gtk3-dev

then you need to:

espanso service register
espanso start

and should be good to go

Alternatively to the first steps, one can install the needed libwxgtk... from here: one can install it from here too: https://www.ubuntuupdates.org/package/core/jammy/universe/base/libwxgtk3.0-gtk3-dev

@cskmnrpt
Copy link

It worked. Thank you @davidvv.

@ghost
Copy link

ghost commented Feb 5, 2024

This does not work on Debian 12, the packages are a bit spotty

Installing 3.2 produces following error

$ espanso service register
espanso: error while loading shared libraries: libwx_gtk3u_html-3.0.so.0: cannot open shared object file: No such file or directory

@officiallymarky
Copy link

Still have this issue trying to install X11 on 23.10

@Tzalim
Copy link

Tzalim commented Feb 19, 2024

Hope you're all doing well. I've got a bit of a snag and could use some help here.

I'm running MX Linux KDE 23.2, Debian 12.5, and x11. I'm trying to install libwxgtk3.0-gtk3-dev to get Espanso up and running. I followed the usual steps, like updating my sources.list with "deb http://archive.ubuntu.com/ubuntu focal-updates main" and importing the keys.

However, when I try to register the espanso service, I get this error: "espanso: error while loading shared libraries: libwx_gtk3u_html-3.0.so.0: cannot open shared object file: No such file or directory."

I used to be on Garuda (Arch) Linux, where everything worked perfectly. Since moving to MX Linux for the MX Snapshot feature, I've hit this roadblock.

Any insights on fixing this and getting Espanso to play nice? Thanks.

@officiallymarky
Copy link

Any update on this issue?

@AucaCoyan
Copy link
Member

AucaCoyan commented Mar 3, 2024

It's a bit stalled because of this PR #1849 . I think we could separate the fix of this bug from the other bug, but I prefer to fix both if it's still possible

@Lastofthefirst
Copy link

Any updates here? @AucaCoyan

@hhl
Copy link

hhl commented Mar 29, 2024

Same issue on debian unstable trixi/sid!

@AucaCoyan AucaCoyan added the installation Problems with the installation label Mar 31, 2024
@AucaCoyan
Copy link
Member

AucaCoyan commented Apr 1, 2024

I'm still debugging the issue. We have a couple of problems here, and it's hard to take a direction without consequences.

./.github/scripts/ubuntu/Dockerfile uses ubuntu:18.04 to begin with, this builds the .dpkg focused on an ubuntu version previous than 22.04, and the compilation guide says it needs different dependencies (exactly libwxgtk3.0-gtk3-dev instead of libwxgtk3.2-dev)
Okay, so why don't we use a newer LTS version of ubuntu then? because the latest LTS is 22.04, and it builds the same dpkg than we currently have now. The next LTS is scheduled to be 24.04, and it's unreleased as of today.

So, after LTS 24.04 is released, does it mean we bump the dependencies and drop support for ubuntu 22.04 and earlier? I don't know, it's a cost to assume. Certainly the old users can use espanso v2.2.1 and be happy, but it's not without a cost

As other notes: why do we even need libwxgtk* library? can we change the GUI and drop it? would that mean support to all ubuntu versions? We need to find out 🤔

@davidvv
Copy link

davidvv commented Apr 1, 2024 via email

@AucaCoyan
Copy link
Member

Yep! I would do that too! but I want to be cancelous of other people who prefer not to have the latest and greatest, for whatever reason they have

@AucaCoyan
Copy link
Member

I did a test PR #1925 , trying to use debian:latest to build the image. In my pc the dpkg built correctly. I'll wait a couple of days before merging. It's a possible (i.e. viable) solution

@officiallymarky
Copy link

I haven’t been able to reinstall for months so having a working install would be a big win.

@jdrx99
Copy link

jdrx99 commented Apr 2, 2024

@AucaCoyan do you think you will be able to provide a guide / solution for debian with xfce / x11 as well?

@AucaCoyan
Copy link
Member

Hello! Just a quick update: I couldn't find time to dedicate to this issue, I've been dealing with a lot of things in the espanso org. Thank you for your patience!

@eudennis
Copy link

Just for anyone else who falls here, using the AppImage worked for me.

@officiallymarky
Copy link

Just for anyone else who falls here, using the AppImage worked for me.

I ended up going this route, I've been trying to get it reinstalled for a while, and gave up and just went to app image. Worked great. I recommend using Gear Lever as it helps keeps the versions in tact and make shortcuts for your menu and keep them organized.

@Lastofthefirst
Copy link

It looks like the AppImage is not for Wayland, only x11. Will has anyone tried manual compilation?

@officiallymarky
Copy link

It looks like the AppImage is not for Wayland, only x11. Will has anyone tried manual compilation?

I did in the past and I got it working. I haven’t had much luck with any of them lately but appimage does work for me on x11 but on Wayland I am unable to use espanso

@R4dicalEdward
Copy link

Hi, I'm using Debian 12 “bookworm” with Wayland. I recently followed the instructions from the official espanso documentation for manual compilation. Initially, I replaced libwxgtk3.0-gtk3-dev with libwxgtk3.2-dev because the former is no longer available in the Debian repository. It looks like the espanso documentation has been updated to reflect this change. Currently, I'm running espanso version 2.2.1, and it works like a charm—no problems at all.

@michaelaye
Copy link

Same issue for Ubuntu 24.04 LTS (which has Wayland by default so no AppImage solution) and espanso 2.2.1.

@smeech
Copy link
Collaborator

smeech commented May 6, 2024

Hi, I'm using Debian 12 “bookworm” with Wayland. I recently followed the instructions from the official espanso documentation for manual compilation. Initially, I replaced libwxgtk3.0-gtk3-dev with libwxgtk3.2-dev because the former is no longer available in the Debian repository. It looks like the espanso documentation has been updated to reflect this change. Currently, I'm running espanso version 2.2.1, and it works like a charm—no problems at all.

Thank you. I've updated the documentation for this item a couple of times in the last twenty-four hours. As far as I can tell, the compilation works with either library, in either version, hence ultimately settling on an apt regex for this item.

I'll leave this open for now, in case I'm mistaken!

@michaelaye
Copy link

I went through the compile instructions without errors (wayland, Ubuntu 24.04 LTS), but expansion is not happening. espanso status says it's running. How can I debug?

@dwbfox
Copy link

dwbfox commented Jun 3, 2024

I went through the compile instructions without errors (wayland, Ubuntu 24.04 LTS), but expansion is not happening. espanso status says it's running. How can I debug?

Unfortunately it may be erroring for the previously mentioned dependency. Compiling it from source doesn't automatically resolve it unless you change whatever rust package is wanting this library:

sudo apt-file search libwx_gtk3u_html-3.0.so.0
sudo apt-file search libwx_gtk3u_html
libwxgtk3.2-1t64: /usr/lib/x86_64-linux-gnu/libwx_gtk3u_html-3.2.so.0
libwxgtk3.2-1t64: /usr/lib/x86_64-linux-gnu/libwx_gtk3u_html-3.2.so.0.2.2
libwxgtk3.2-dev: /usr/lib/x86_64-linux-gnu/libwx_gtk3u_html-3.2.so

On Ubuntu 24.04, it seems the version of libwx_gtk3u_html being provided is the newer 3.2.

In my year or so of using Espanso I have yet to actually utilize the GUI and hence the GTK library. I wish there was a config flag to just disable this and do away with it.

@michaelaye
Copy link

But then, if this is only for a GUI, I don't understand, even if the wrong GTK library is linked, that an expansion is simply not happening without any error message?

@michaelaye
Copy link

Also, the compile instructions indicate that 3.2 is fine? https://github.com/espanso/espanso/blob/dev/Compilation.md#necessary-dependencies

@dwbfox
Copy link

dwbfox commented Jun 4, 2024

Also, the compile instructions indicate that 3.2 is fine? https://github.com/espanso/espanso/blob/dev/Compilation.md#necessary-dependencies

For builds compiled for X11 it seems.

Since I'm on 24.04 and Wayland, I compiled it with NO_X11=true and it fails for the 3.0 dependency

$ espanso
espanso: error while loading shared libraries: libwx_gtk3u_html-3.0.so.0: cannot open shared object file: No such file or directory

I just want to figure out what package or dependency is asking for 3.0 so I can just brute force it to use 3.2 somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority We need to resolve this as soon as we can installation Problems with the installation
Projects
Status: In progress
Development

Successfully merging a pull request may close this issue.