[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Designer-qt5 Crash with custom widget
From: Vincent Vande Vyvre <vincent.vande.vyvre () telenet ! be>
Date: 2016-07-19 7:12:12
Message-ID: 578DD2CC.7070106 () telenet ! be
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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@riverbankcomputing.com
> https://www.riverbankcomputing.com/mailman/listinfo/pyqt
Oops, not the good plugin file.
This is the goog one:
[Attachment #5 (text/html)]
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 19/07/16 08:55, Vincent Vande Vyvre
a écrit :<br>
</div>
<blockquote cite="mid:578DCEDD.7010404@telenet.be" type="cite">Hi,
<br>
<br>
I try to use my custom widgets with the Qt5 designer but the
designer crash at launching.
<br>
<br>
With the simplified examples joined and installed installed here:
<br>
<br>
.../qt5/plugins/designer/libpyqt5.so
<br>
python/
<br>
lineeditplugin.py
<br>
widgets/__init__.py
<br>
lineedit.py
<br>
<br>
--------------------------------------------------------------------------------------------------
<br>
$ designer-qt5
<br>
ImportError:
/usr/lib/python3/dist-packages/sip.cpython-34m-x86_64-linux-gnu.so:
undefined symbol: PyExc_SystemError
<br>
Error in sys.excepthook:
<br>
Traceback (most recent call last):
<br>
File "/usr/lib/python3/dist-packages/apport_python_hook.py",
line 63, in apport_excepthook
<br>
from apport.fileutils import likely_packaged,
get_recent_crashes
<br>
File "/usr/lib/python3/dist-packages/apport/__init__.py", line
5, in <module>
<br>
from apport.report import Report
<br>
File "/usr/lib/python3/dist-packages/apport/report.py", line 30,
in <module>
<br>
import apport.fileutils
<br>
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line
23, in <module>
<br>
from apport.packaging_impl import impl as packaging
<br>
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py",
line 20, in <module>
<br>
import apt
<br>
File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23,
in <module>
<br>
import apt_pkg
<br>
ImportError:
/usr/lib/python3/dist-packages/apt_pkg.cpython-34m-x86_64-linux-gnu.so:
undefined symbol: PyExc_OSError
<br>
<br>
Original exception was:
<br>
ImportError:
/usr/lib/python3/dist-packages/sip.cpython-34m-x86_64-linux-gnu.so:
undefined symbol: PyExc_SystemError
<br>
libGL error: Couldn't dlopen libudev.so.1 or libudev.so.0, driver
detection may be broken.
<br>
designer-qt5: ../../../../src/loader/loader.c :129 :
asserted_dlsym: l'assertion « result » a échoué.
<br>
Abandon (core dumped)
<br>
------------------------------------------------------------------------------------------------
<br>
<br>
I'm on Ubuntu Trusty 14.04 and with PyQt5 5.2.1
<br>
<br>
Vincent
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
PyQt mailing list <a class="moz-txt-link-abbreviated" \
href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a> <a \
class="moz-txt-link-freetext" \
href="https://www.riverbankcomputing.com/mailman/listinfo/pyqt">https://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></pre>
</blockquote>
<br>
Oops, not the good plugin file.<br>
<br>
This is the goog one:<br>
<br>
<br>
</body>
</html>
["lineeditplugin.py" (text/x-python)]
# -*- coding: utf-8 -*-
from PyQt5.QtGui import QIcon
from PyQt5.QtDesigner import QPyDesignerCustomWidgetPlugin
from widgets.lineedit import LineEdit
class LineEditPlugin(QPyDesignerCustomWidgetPlugin):
"""Provides a Python custom plugin for Qt Designer by implementing the
QDesignerCustomWidgetPlugin using a PyQt-specific custom plugin class.
"""
def __init__(self, parent=None):
super(LineEditPlugin, self).__init__(parent)
self.initialized = False
def initialize(self, core):
if self.initialized:
return
self.initialized = True
def isInitialized(self):
return self.initialized
def createWidget(self, parent):
return LineEdit(parent)
def name(self):
return 'LineEdit'
def group(self):
return 'Custom'
def icon(self):
return QIcon()
def toolTip(self):
return "QLineEdit with yellow background"
def whatsThis(self):
return "QLineEdit with yellow background"
def isContainer(self):
return False
def domXml(self):
return '<widget class="LineEdit" name="LineEdit">\n'
def includeFile(self):
return 'widgets.lineedit'
[Attachment #7 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic