'symbol lookup error after updating Qt package

I recently updated all Qt packages from Pacman(Arch Linux). After updating I am getting system lookup errors after executing any python code.

python: symbol lookup error: /usr/lib/python3.8/site-packages/PyQt5/Qt/plugins/iconengines/../../lib/libQt5Svg.so.5: undefined symbol: _ZdlPvm, version Qt_5


Solution 1:[1]

I meet the same problem when I'm installing ROS with manjaro and run rosrun rqt_console rqt_console. I'm sure that I installed PyQt5 correctly with yay, So I think it's a problem about dynamic linked library but I'm also confused about details.

My solution works like this:

export LD_LIBRARY_PAH=/usr/lib/python3.8/site-packages/PyQt5/Qt/lib:$LD_LIBRARY_PATH

Hope it works for you.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Kawhi Curry