Code Monkey home page Code Monkey logo

Comments (8)

lah7 avatar lah7 commented on September 21, 2024

I use Arch and KDE too, but don't experience this error. Definitely seems like a broken dependency with the Qt library on your system, more specifically Qt 5 WebEngine, which powers the effect editor.

Try manually reinstalling the dependencies, and double check the system's up-to-date (just in case a mirror is out of sync). An undefined symbol suggests to me that something in the Qt library is missing, corrupt or mismatching version.

sudo pacman -S --asdeps python-pyqt5 python-pyqt5-webengine qt5-svg qt5-base qt5-webengine

Presumably, there ain't any custom builds of Qt in /usr/local built outside of the pacman package manager?

from polychromatic.

aquamarine-axo avatar aquamarine-axo commented on September 21, 2024

Reinstalling all the listed deps as well as checking /usr/local/* revealing nothing, and the program still crashes with the same error.

from polychromatic.

lah7 avatar lah7 commented on September 21, 2024

Let's check the libraries being loaded. What's the output of these?

locate libQt5Widgets.so.5
locate libQt5WebEngine.so

Output for me:

/usr/lib/libQt5Widgets.so.5
/usr/lib/libQt5Widgets.so.5.15
/usr/lib/libQt5Widgets.so.5.15.10

/usr/lib/libQt5WebEngine.so
/usr/lib/libQt5WebEngine.so.5
/usr/lib/libQt5WebEngine.so.5.15
/usr/lib/libQt5WebEngine.so.5.15.14

Just to check, is this environment variable LD_LIBRARY_PATH empty?

echo $LD_LIBRARY_PATH

If the above looks sane, maybe some other Qt 5 package is interfering - this will list other installed packages and I'll take a look:

pacman -Q | grep qt5

from polychromatic.

aquamarine-axo avatar aquamarine-axo commented on September 21, 2024
$ locate libQt5Widgets.so.5
/home/nicco1690/.local/lib/python3.11/site-packages/PyQt5/Qt5/lib/libQt5Widgets.so.5
/home/nicco1690/.local/pipx/venvs/corrscope/lib/python3.11/site-packages/PyQt5/Qt5/lib/libQt5Widgets.so.5
/usr/lib/libQt5Widgets.so.5
/usr/lib/libQt5Widgets.so.5.15
/usr/lib/libQt5Widgets.so.5.15.10
$ locate libQt5WebEngine.so
/usr/lib/libQt5WebEngine.so
/usr/lib/libQt5WebEngine.so.5
/usr/lib/libQt5WebEngine.so.5.15
/usr/lib/libQt5WebEngine.so.5.15.14
$ echo $LD_LIBRARY_PATH
<no output>
$ pacman -Q | grep qt5 
libdbusmenu-qt5 0.9.3+16.04.20160218-6
phonon-qt5 4.11.1-3
phonon-qt5-gstreamer 4.10.0-4
polkit-qt5 0.114.0-1
poppler-qt5 23.08.0-1
python-pyqt5 5.15.9-2
python-pyqt5-sip 12.12.2-1
python-pyqt5-webengine 5.15.6-2
qca-qt5 2.3.7-1
qgpgme-qt5 1.22.0-1
qt5-base 5.15.10+kde+r155-1
qt5-declarative 5.15.10+kde+r31-1
qt5-graphicaleffects 5.15.10-1
qt5-location 5.15.10+kde+r4-2
qt5-multimedia 5.15.10+kde+r3-1
qt5-networkauth 5.15.10-1
qt5-quickcontrols 5.15.10-1
qt5-quickcontrols2 5.15.10+kde+r6-1
qt5-sensors 5.15.10-1
qt5-speech 5.15.10+kde+r1-1
qt5-svg 5.15.10+kde+r8-1
qt5-tools 5.15.10+kde+r3-2
qt5-translations 5.15.10-1
qt5-wayland 5.15.10+kde+r57-1
qt5-webchannel 5.15.10+kde+r3-1
qt5-webengine 5.15.14-5
qt5-webview 5.15.10-1
qt5-x11extras 5.15.10-1
qtkeychain-qt5 0.14.1-1

from polychromatic.

lah7 avatar lah7 commented on September 21, 2024

Thanks, this makes sense - there's a local Python installation in your home directory which overrides the system's Qt 5 library. It affects Polychromatic as it's also a Python program.

It might run by overriding the library path before running the program.

export LD_LIBRARY_PATH=/usr/lib
polychromatic-controller

My recommendation would be to delete that installation in ~/.local/lib, and use virtual environments for the software installed outside of the pacman package manager. Looks like there is one set up using pipx (I haven't used, so not sure if that is interfering too)

from polychromatic.

aquamarine-axo avatar aquamarine-axo commented on September 21, 2024

Crashes with a different error using the env variable override method.

$ export LD_LIBRARY_PATH=/usr/lib
$ polychromatic-controller
Traceback (most recent call last):
  File "/usr/bin/polychromatic-controller", line 31, in <module>
    from PyQt5 import uic, QtCore
ImportError: /home/nicco1690/.local/lib/python3.11/site-packages/PyQt5/QtCore.abi3.so: undefined symbol: _ZdaPvm, version Qt_5

from polychromatic.

aquamarine-axo avatar aquamarine-axo commented on September 21, 2024

My recommendation would be to delete that installation in ~/.local/lib, and use virtual environments for the software installed outside of the pacman package manager. Looks like there is one set up using pipx (I haven't used, so not sure if that is interfering too)

Yeah, the corrscope environment was for a different program. I'll play around with it, see if it works.

from polychromatic.

lah7 avatar lah7 commented on September 21, 2024

Did you get this solved in the end?

Will close the issue as "completed" since we know an interfering Python installation was causing the crash.

from polychromatic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.