[PyQt] PyQt5.QtGui Undefined Symbol

Felix Bearden felix-biz at felixlovesliz.com
Thu Mar 12 21:59:12 GMT 2015


*QtPy5.QtGui Problem:*

Hopefully this is a "newbe" problem and I have just missed something>

I get the following results when trying PyQt5 on
my Raspberry PI.


pi at raspberrypi /opt/Projects/DataDisplay $
python3

Python 3.2.3 (default, Mar  1 2013, 11:53:50) 

[GCC 4.6.3] on linux2

Type "help", "copyright",
"credits" or "license" for more information.

>>> from PqQt5 import Qt, QtCore,
QtDBus, QtNetwork

Traceback (most recent call last):

  File "<stdin>", line 1, in
<module>

ImportError: No module named PqQt5

>>> from PyQt5 import Qt, QtCore,
QtDBus, QtNetwork

>>> from PyQt5 import QtGui

Traceback (most recent call last):

  File "<stdin>", line 1, in
<module>

ImportError:
/usr/lib/python3/dist-packages/PyQt5/QtGui.so: undefined symbol:
_ZNK14QSurfaceFormat10testOptionENS_12FormatOptionE


*Background:*


I have configured, made, and made installed
"sip" and "Qt5" as instructed at:


http://www.riverbankcomputing.com/news/sip-4166
and 

http://www.riverbankcomputing.com/software/pyqt/download5


Once for the released package and for the
snapshot. 


I have searched the web for the same error.  A
similar one was reported for Qt4 but there was no resolution.
Hopefully someone can 

either give me a solution or workaround. The
application I am trying to port works well on a Fedora 19 system.


*Environment:*


Operating System: Rasbian

Linux raspberrypi 3.18.5+ #744 PREEMPT Fri Jan
30 18:19:07 GMT 2015 armv6l GNU/Linux


Qt5 Library versions:

pi at raspberrypi
~/opt/PyQt-gpl-5.4.2-snapshot-28704a096a3a $ dpkg -l |grep qt5

ii  libmgl-qt5                                 
1.11.2-17                               armhf        library for
scientific graphs. (Qt runtime library)

ii  libqt5clucene5:armhf                       
5.2.0-9                                 armhf        Qt 5 CLucene
module

ii  libqt5compositor5:armhf                    
5.2.0~269-0rpi2                         armhf        Qt 5 Compositor
module

ii  libqt5compositor5-dev                      
5.2.0~269-0rpi2                         armhf        Qt 5 Compositor
module development files

ii  libqt5concurrent5:armhf                    
5.2.0+dfsg-7+rpi10                      armhf        Qt 5 concurrent
module

ii  libqt5core5a:armhf                         
5.2.0+dfsg-7+rpi10                      armhf        Qt 5 core module

ii  libqt5dbus5:armhf                          
5.2.0+dfsg-7+rpi10                      armhf        Qt 5 D-Bus
module

ii  libqt5declarative5:armhf                   
5.2.0-2                                 armhf        Qt Quick 1
module for Qt 5

ii  libqt5designer5:armhf                      
5.2.0-9                                 armhf        Qt 5 designer
module

ii  libqt5designercomponents5:armhf            
5.2.0-9                                 armhf        Qt 5 Designer
components module

ii  libqt5gui5:armhf                           
5.2.0+dfsg-7+rpi10                      armhf        Qt 5 GUI module

ii  libqt5help5:armhf                          
5.2.0-9                                 armhf        Qt 5 help module

ii  libqt5multimedia5:armhf                    
5.2.0-3                                 armhf        Qt 5 Multimedia
module

ii  libqt5multimedia5-plugins:armhf            
5.2.0-3                                 armhf        Qt 5 Multimedia
module plugins

ii  libqt5multimediaquick-p5:armhf             
5.2.0-3                                 armhf        Qt 5 Multimedia
Quick module

ii  libqt5multimediawidgets5:armhf             
5.2.0-3                                 armhf        Qt 5 Multimedia
Widgets module

ii  libqt5network5:armhf                       
5.2.0+dfsg-7+rpi10                      armhf        Qt 5 network
module

ii  libqt5opengl5:armhf                        
5.2.0+dfsg-7+rpi10                      armhf        Qt 5 OpenGL
module

ii  libqt5opengl5-dev                          
5.2.0+dfsg-7+rpi10                      armhf        Qt 5 OpenGL
library development files

ii  libqt5printsupport5:armhf                  
5.2.0+dfsg-7+rpi10                      armhf        Qt 5 print
support module

ii  libqt5qml-graphicaleffects:armhf           
5.2.0-2                                 armhf        Qt 5 Graphical
Effects module

ii  libqt5qml-quickcontrols                    
5.2.0-2                                 all          transitional
dummy package for Qt 5 Quick Controls module plugin

ii  libqt5qml5:armhf                           
5.2.0-8+rpi1                            armhf        Qt 5 QML module

ii  libqt5quick5:armhf                         
5.2.0-8+rpi1                            armhf        Qt 5 Quick
library

ii  libqt5quickparticles5:armhf                
5.2.0-8+rpi1                            armhf        Qt 5 Quick
particules module

ii  libqt5quicktest5:armhf                     
5.2.0-8+rpi1                            armhf        Qt 5 Quick Test
library

ii  libqt5script5:armhf                        
5.2.0+dfsg-3                            armhf        Qt 5 script
module

ii  libqt5scripttools5:armhf                   
5.2.0+dfsg-3                            armhf        Qt 5 script
tools module

ii  libqt5sensors5:armhf                       
5.2.0+dfsg-3                            armhf        Qt Sensors
module

ii  libqt5sensors5-dev                         
5.2.0+dfsg-3                            armhf        Qt 5 Sensors
development files

ii  libqt5serialport5:armhf                    
5.2.0-4                                 armhf        Qt 5 serial port
support

ii  libqt5serialport5-dev                      
5.2.0-4                                 armhf        Qt 5 serial port
development files

ii  libqt5sql5:armhf                           
5.2.0+dfsg-7+rpi10                      armhf        Qt 5 SQL module

ii  libqt5sql5-mysql:armhf                     
5.2.0+dfsg-7+rpi10                      armhf        Qt 5 MySQL
database driver

ii  libqt5sql5-odbc:armhf                      
5.2.0+dfsg-7+rpi10                      armhf        Qt 5 ODBC
database driver

ii  libqt5sql5-psql:armhf                      
5.2.0+dfsg-7+rpi10                      armhf        Qt 5 PostgreSQL
database driver

ii  libqt5sql5-sqlite:armhf                    
5.2.0+dfsg-7+rpi10                      armhf        Qt 5 SQLite 3
database driver

ii  libqt5sql5-tds:armhf                       
5.2.0+dfsg-7+rpi10                      armhf        Qt 5 FreeTDS
database driver

ii  libqt5svg5:armhf                           
5.2.0-3                                 armhf        Qt 5 SVG module

ii  libqt5svg5-dev                             
5.2.0-3                                 armhf        Qt 5 SVG module
development files

ii  libqt5svg5-private-dev                     
5.2.0-3                                 armhf        Qt 5 SVG module
private development files

ii  libqt5test5:armhf                          
5.2.0+dfsg-7+rpi10                      armhf        Qt 5 test module

ii  libqt5webkit5:armhf                        
5.2.0+dfsg1-1+rpi1                      armhf        Web content
engine library for Qt

ii  libqt5webkit5-dbg:armhf                    
5.2.0+dfsg1-1+rpi1                      armhf        Web content
engine library for Qt - debugging symbols

ii  libqt5webkit5-dev                          
5.2.0+dfsg1-1+rpi1                      armhf        Web content
engine library for Qt - development files

ii  libqt5webkit5-qmlwebkitplugin:armhf        
5.2.0+dfsg1-1+rpi1                      armhf        Qt WebKit QML
plugin

ii  libqt5widgets5:armhf                       
5.2.0+dfsg-7+rpi10                      armhf        Qt 5 widgets
module

ii  libqt5x11extras-dev                        
5.2.0-2                                 all          Qt 5 X11 extras
development files - dummy transitional package

ii  libqt5x11extras5:armhf                     
5.2.0-2                                 armhf        Qt 5 X11 extras

ii  libqt5x11extras5-dev                       
5.2.0-2                                 armhf        Qt 5 X11 extras
development files

ii  libqt5xml5:armhf                           
5.2.0+dfsg-7+rpi10                      armhf        Qt 5 XML module

ii  libqt5xmlpatterns5:armhf                   
5.2.0-3                                 armhf        Qt 5 XML
patterns module

ii  libqt5xmlpatterns5-dev                     
5.2.0-3                                 armhf        Qt 5 XML
patterns development files

ii  libqt5xmlpatterns5-private-dev             
5.2.0-3                                 armhf        Qt 5 XML
patterns private development files

ii  pyqt5-doc                                  
5.3.2+dfsg-3                            all          Documentation
for PyQt5

ii  qdbus-qt5                                  
5.2.0-9                                 armhf        Qt 5 D-Bus tool

ii  qt5-default                                
5.2.0+dfsg-7+rpi10                      armhf        Qt 5 development
defaults package

ii  qt5-image-formats-plugins:armhf            
5.2.0-3                                 armhf        Qt 5 Image
Formats module

ii  qt5-qmake                                  
5.2.0+dfsg-7+rpi10                      armhf        Qt 5 qmake
Makefile generator tool




*Thanks *


Happycat.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150312/1d64aba7/attachment-0001.html>


More information about the PyQt mailing list