Ask Your Question

Using python3-qt5: ImportError: undefined symbol

asked 2016-01-31 05:13:24 -0500

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/ 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 14:48:04 -0500

fcomida gravatar image

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

ldd /usr/lib64/python3.4/site-packages/PyQt5/ (0x00007fff439b1000) => /lib64/ (0x00007f947b510000) => /lib64/ (0x00007f947b2f3000) => /lib64/ (0x00007f947af70000) => /lib64/ (0x00007f947ac6e000) => /lib64/ (0x00007f947aa57000) => /lib64/ (0x00007f947a695000) => /lib64/ (0x00007f947a47f000) => /lib64/ (0x00007f947a02d000) => /lib64/ (0x00007f9479c9b000) => /lib64/ (0x00007f9478270000) => /lib64/ (0x00007f947800a000) => /lib64/ (0x00007f9477e05000) => /lib64/ (0x00007f9477c03000) => /lib64/ (0x00007f94778ca000) => /lib64/ (0x00007f94776c1000)
    /lib64/ (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 gravatar imagesmtchahal ( 2016-02-03 09:21:09 -0500 )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 gravatar imagefcomida ( 2016-02-05 16:51:38 -0500 )edit

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

fcomida gravatar imagefcomida ( 2016-02-05 16:56:16 -0500 )edit

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

chall3ng3 gravatar imagechall3ng3 ( 2017-08-06 10:30:38 -0500 )edit

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2016-01-31 05:08:15 -0500

Seen: 1,748 times

Last updated: Jan 31 '16