Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

running pyqt5 to display GUI provides error with symbol and "link time reference"



  • error shown below:

    from PyQt5.QtWidgets import QApplication, QWidget
    ImportError: /usr/local/lib/python3.7/site-packages/PyQt5/QtWidgets.abi3.so: symbol _ZNK13QOpenGLWidget10redirectedEP6QPoint, version Qt_5 not defined in file libQt5Widgets.so.5 with link time reference
    
    

  • Lifetime Qt Champion

    @worldsnexthero said in running pyqt5 to display GUI provides error with symbol and "link time reference":

    /usr/local/lib/python3.7/site-packages/PyQt5/QtWidgets.abi3.so

    What does

    ldd /usr/local/lib/python3.7/site-packages/PyQt5/QtWidgets.abi3.so
    

    output?



  • @jsulm said in running pyqt5 to display GUI provides error with symbol and "link time reference":

    ldd /usr/local/lib/python3.7/site-packages/PyQt5/QtWidgets.abi3.so

    btw, this is a debian8 system. here is requested output:

    ldd /usr/local/lib/python3.7/site-packages/PyQt5/QtWidgets.abi3.so
    /usr/local/lib/python3.7/site-packages/PyQt5/QtWidgets.abi3.so: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: no version information available (required by /usr/local/lib/python3.7/site-packages/PyQt5/QtWidgets.abi3.so)
    /usr/local/lib/python3.7/site-packages/PyQt5/QtWidgets.abi3.so: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: no version information available (required by /usr/local/lib/python3.7/site-packages/PyQt5/QtWidgets.abi3.so)
    /usr/local/lib/python3.7/site-packages/PyQt5/QtWidgets.abi3.so: /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5: no version information available (required by /usr/local/lib/python3.7/site-packages/PyQt5/QtWidgets.abi3.so)
    /usr/local/lib/python3.7/site-packages/PyQt5/QtWidgets.abi3.so: /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5: no version information available (required by /usr/local/lib/python3.7/site-packages/PyQt5/QtWidgets.abi3.so)
    	linux-vdso.so.1 (0x00007ffd35f37000)
    	libQt5Widgets.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007fc81aeea000)
    	libQt5Gui.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007fc81a7b4000)
    	libQt5Core.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 (0x00007fc81a078000)
    	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fc819d6d000)
    	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc8199c2000)
    	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fc8197a5000)
    	libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007fc819552000)
    	libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fc819243000)
    	libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fc818f00000)
    	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fc818bff000)
    	libpng12.so.0 => /usr/lib/x86_64-linux-gnu/libpng12.so.0 (0x00007fc8189d8000)
    	libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007fc818781000)
    	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fc818566000)
    	libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007fc8182cc000)
    	libicui18n.so.52 => /usr/lib/x86_64-linux-gnu/libicui18n.so.52 (0x00007fc817eba000)
    	libicuuc.so.52 => /usr/lib/x86_64-linux-gnu/libicuuc.so.52 (0x00007fc817b3c000)
    	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc817938000)
    	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fc817730000)
    	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fc81751a000)
    	/lib64/ld-linux-x86-64.so.2 (0x00007fc81be95000)
    	libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007fc817311000)
    	libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fc8170a3000)
    	libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fc816e81000)
    	libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007fc816bd7000)
    	libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007fc8169b1000)
    	libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007fc816787000)
    	libglapi.so.0 => /usr/lib/x86_64-linux-gnu/libglapi.so.0 (0x00007fc81655d000)
    	libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fc81634b000)
    	libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007fc816148000)
    	libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007fc815f42000)
    	libX11-xcb.so.1 => /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1 (0x00007fc815d40000)
    	libxcb-glx.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0 (0x00007fc815b27000)
    	libxcb-dri2.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri2.so.0 (0x00007fc815922000)
    	libxcb-dri3.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-dri3.so.0 (0x00007fc81571f000)
    	libxcb-present.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-present.so.0 (0x00007fc81551c000)
    	libxcb-sync.so.1 => /usr/lib/x86_64-linux-gnu/libxcb-sync.so.1 (0x00007fc815315000)
    	libxshmfence.so.1 => /usr/lib/x86_64-linux-gnu/libxshmfence.so.1 (0x00007fc815113000)
    	libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007fc814f0d000)
    	libdrm.so.2 => /usr/lib/x86_64-linux-gnu/libdrm.so.2 (0x00007fc814d00000)
    	libicudata.so.52 => /usr/lib/x86_64-linux-gnu/libicudata.so.52 (0x00007fc813493000)
    	libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fc81328f000)
    	libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fc81308a000)
    
    

  • Lifetime Qt Champion

    @worldsnexthero It looks like libs in /usr/local/lib/python3.7/site-packages/PyQt5 link against libs in /usr/lib/x86_64-linux-gnu.
    How did you install PyQt5?
    Do you have libs like libQt5Widgets.so.5 in /usr/local/lib/python3.7/site-packages/PyQt5?



  • @jsulm said in running pyqt5 to display GUI provides error with symbol and "link time reference":

    /usr/local/lib/python3.7/site-packages/PyQt5

    I have libQt5Widgets.so.5 in /usr/local/lib/python3.7/site-packages/PyQt5/Qt/lib (not /usr/local/lib/python3.7/site-packages/PyQt5)

    i installed all my packaged based on this reference


Log in to reply