Ask Your Question

Using python3-qt5: ImportError: undefined symbol

asked 2016-01-31 11:13:24 +0000

smtchahal gravatar image

I installed pyqt5 since I wanted to make a simple GUI app using Qt5 in Python 3 using the following command:

sudo dnf install python3-qt5

This installed the package python3-qt5-5.5.1-2.fc23.x86_64 on my system (along with its dependencies).

The problem is, when I try importing QtWidgets from PyQt5, (following this hello world program) I get the following error:

Python 3.4.3 (default, Jun 29 2015, 12:16:01) 
[GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from PyQt5 import QtWidgets
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/lib64/python3.4/site-packages/PyQt5/QtCore.so: undefined symbol: _ZNK11QMetaObject10Connection18isConnected_helperEv

I tried solving the problem by installing python3-qt5-devel, but no luck (still get the same error message). What am I doing wrong?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-01-31 20:48:04 +0000

fcomida gravatar image

works fine with me, same python3 and python3-qt5 versions. Make sure /usr/lib64/python3.4/site-packages/PyQt5/QtCore.so is using correct version of Qt5. In my system:

ldd /usr/lib64/python3.4/site-packages/PyQt5/QtCore.so

    linux-vdso.so.1 (0x00007fff439b1000)
    libQt5Core.so.5 => /lib64/libQt5Core.so.5 (0x00007f947b510000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f947b2f3000)
    libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f947af70000)
    libm.so.6 => /lib64/libm.so.6 (0x00007f947ac6e000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f947aa57000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f947a695000)
    libz.so.1 => /lib64/libz.so.1 (0x00007f947a47f000)
    libicui18n.so.54 => /lib64/libicui18n.so.54 (0x00007f947a02d000)
    libicuuc.so.54 => /lib64/libicuuc.so.54 (0x00007f9479c9b000)
    libicudata.so.54 => /lib64/libicudata.so.54 (0x00007f9478270000)
    libpcre16.so.0 => /lib64/libpcre16.so.0 (0x00007f947800a000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007f9477e05000)
    libgthread-2.0.so.0 => /lib64/libgthread-2.0.so.0 (0x00007f9477c03000)
    libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007f94778ca000)
    librt.so.1 => /lib64/librt.so.1 (0x00007f94776c1000)
    /lib64/ld-linux-x86-64.so.2 (0x000055735606f000)

Maybe you have some version of Qt5 installed by a 3rd part software.

edit flag offensive delete link more


I get the same output for the command (except for the memory addresses (or whatever they are)). What do you suggest I do? I tried re-installing python3-pyqt5, but it didn't work.

smtchahal ( 2016-02-03 15:21:09 +0000 )edit

use rpm -V to verify installed relevant packages. I'd try reinstalling qt5 as well but you better verify your packages 1st, maybe a faulty hd?

fcomida ( 2016-02-05 22:51:38 +0000 )edit

btw my qt5 version is 5.5.1, check this out too.

fcomida ( 2016-02-05 22:56:16 +0000 )edit

I have the same problem. Reinstalling python3-qt5* from dnf did not solve my problem.

chall3ng3 ( 2017-08-06 15:30:38 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

1 follower


Asked: 2016-01-31 11:08:15 +0000

Seen: 402 times

Last updated: Jan 31 '16