[PyQt] Designer-qt5 Crash with custom widget

Vincent Vande Vyvre vincent.vande.vyvre at telenet.be
Tue Jul 19 08:12:12 BST 2016


Le 19/07/16 08:55, Vincent Vande Vyvre a écrit :
> Hi,
>
> I try to use my custom widgets with the Qt5 designer but the designer 
> crash at launching.
>
> With the simplified examples joined and installed installed here:
>
> .../qt5/plugins/designer/libpyqt5.so
>                          python/
>                                 lineeditplugin.py
>                                 widgets/__init__.py
>                                         lineedit.py
>
> -------------------------------------------------------------------------------------------------- 
>
> $ designer-qt5
> ImportError: 
> /usr/lib/python3/dist-packages/sip.cpython-34m-x86_64-linux-gnu.so: 
> undefined symbol: PyExc_SystemError
> Error in sys.excepthook:
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 
> 63, in apport_excepthook
>     from apport.fileutils import likely_packaged, get_recent_crashes
>   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in 
> <module>
>     from apport.report import Report
>   File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in 
> <module>
>     import apport.fileutils
>   File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, 
> in <module>
>     from apport.packaging_impl import impl as packaging
>   File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 
> 20, in <module>
>     import apt
>   File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in 
> <module>
>     import apt_pkg
> ImportError: 
> /usr/lib/python3/dist-packages/apt_pkg.cpython-34m-x86_64-linux-gnu.so: undefined 
> symbol: PyExc_OSError
>
> Original exception was:
> ImportError: 
> /usr/lib/python3/dist-packages/sip.cpython-34m-x86_64-linux-gnu.so: 
> undefined symbol: PyExc_SystemError
> libGL error: Couldn't dlopen libudev.so.1 or libudev.so.0, driver 
> detection may be broken.
> designer-qt5: ../../../../src/loader/loader.c :129 : asserted_dlsym:  
> l'assertion « result » a échoué.
> Abandon (core dumped)
> ------------------------------------------------------------------------------------------------ 
>
>
> I'm on Ubuntu Trusty 14.04 and with PyQt5 5.2.1
>
> Vincent
>
>
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt

Oops, not the good plugin file.

This is the goog one:


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160719/e42888b9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lineeditplugin.py
Type: text/x-python
Size: 1216 bytes
Desc: not available
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160719/e42888b9/attachment.py>


More information about the PyQt mailing list