from PyQt5.QtWidgets import * fails

Bug #1438874 reported by Romeo Disca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pyqt5 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Traceback (most recent call last):
  File "test.py", line 1, in <module>
    from PyQt5.QtWidgets import *
ImportError: /usr/lib/python3/dist-packages/PyQt5/QtWidgets.cpython-34m-x86_64-linux-gnu.so: undefined symbol: _ZNK14QPlainTextEdit16inputMethodQueryEN2Qt16InputMethodQueryE8QVariant

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: python3-pyqt5 5.3.2+dfsg-1ubuntu1
ProcVersionSignature: Ubuntu 3.16.0-33.44-generic 3.16.7-ckt7
Uname: Linux 3.16.0-33-generic x86_64
ApportVersion: 2.14.7-0ubuntu8.2
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Mar 31 21:28:42 2015
InstallationDate: Installed on 2015-01-07 (82 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
SourcePackage: pyqt5
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Romeo Disca (romdisc) wrote :
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

I cannot reproduce this issue in a clean Utopic amd64 chroot. Can it happen that you have a custom build of Qt installed?

Changed in pyqt5 (Ubuntu):
status: New → Incomplete
Revision history for this message
Romeo Disca (romdisc) wrote :

Can you specify "custom build of Qt".

I have installed the current sdk from Qt developing some C++ apps.

Does this collide?

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

You should use the packaged PyQt only with packaged versions of Qt.

Changed in pyqt5 (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Romeo Disca (romdisc) wrote :

I compiled and installed pyqt5 from the sources with qt5.4.1.

Now it works.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.