boltgolt / howdy

🛡️ Windows Hello™ style facial authentication for Linux
MIT License
5.86k stars 300 forks source link

/usr/lib/libpango-1.0.so.0: undefined symbol: g_once_init_leave_pointer #907

Open alessandro-vulcu-code opened 6 months ago

alessandro-vulcu-code commented 6 months ago

Hi, I tried to install Howdy on Arch Linux by downloading it from AUR. However, I encountered some dependency issues. When I try to run sudo howdy add, I get this error:

/usr/lib/libpango-1.0.so.0: undefined symbol: g_once_init_leave_pointer

And when I run sudo howdy test, I receive the following traceback:

Traceback (most recent call last):
  File "/usr/bin/howdy", line 109, in <module>
    import cli.test
  File "/usr/lib/security/howdy/cli/test.py", line 8, in <module>
    import dlib
  File "/home/alevulcu/anaconda3/lib/python3.11/site-packages/dlib/__init__.py", line 19, in <module>
    from _dlib_pybind11 import *
ImportError: /usr/lib/libpango-1.0.so.0: undefined symbol: g_once_init_leave_pointer

I understand that the problem is related to libpango, but I can't figure out how to fix this. Can someone help me?


Linux distribution: Arch Linux

Howdy version (sudo howdy version): Howdy 2.6.1

ishmeals commented 6 months ago

Run pacman -Syu

alessandro-vulcu-code commented 6 months ago

I already tried to run pacman -Syu, still doesn't work

duylong commented 6 months ago

I already tried to run pacman -Syu, still doesn't work

Same problem with rrdtool command. I think there is a problem with the pango package.

kstar commented 6 months ago

I encounter the same problem with pango-1:1.52.2-1, even after running pacman -Syu

kstar commented 6 months ago

I hit the same issue even if I build the libpango 1.52.2 tag from source and install. Seems like an issue with the glib package? grepping the pango source code for g_once_init_leave_pointer produces no matches, but the compiled binaries match.

shawn-peery commented 5 months ago

I'll just add that I had the same error but running pacman -Syu did fix it for me. I'm running Arch Linux in WSL2.

shae-ra commented 4 months ago

I've encountered the same problem, I've managed to solve this by following this thread

I got it working running LD_PRELOAD="/usr/lib/libgio-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so" /opt/resolve/bin/resolve

Can we get a permanent fix for this?

tchilikov commented 4 months ago

I've encountered the same problem, I've managed to solve this by following this thread

I got it working running LD_PRELOAD="/usr/lib/libgio-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so" /opt/resolve/bin/resolve

Can we get a permanent fix for this?

Was facing the same issue on Davinci Resolve, this fixed it for me

00xBAD commented 3 months ago

Thank you @shae-ra !

also this can be done to avoid launch the program via terminal every time.

cp /usr/lib/libgio-2.0.so /opt/resolve/libs cp /usr/lib/libgmodule-2.0.so /opt/resolve/libs cp /usr/lib/libglib-2.0.so /opt/resolve/libs

if you have resolve in different dir than /opt/resolve be sure to change it.

dimitrijepetrovic commented 2 months ago

thank you @tchilikov for those on Ubuntu

LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so" /opt/resolve/bin/resolve
norv2001 commented 1 month ago

Thank you all! On Ubuntu 24.04 and Resolve Studio 19.0.2 (.deb packaged using Daniel Tufvesson's tool) I did LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0" /opt/resolve/bin/resolve (note the zeroes added to the file names) and Resolve has started, I activated using my licence key, it optimized 67 Neural Engines (that took a while) and I was able to run a test media import, edit, and export.