[PyQt] pyuic5 error : AttributeError: 'ProxyClassMember' object has no attribute 'raise_'

Rudy Metzger rudy.metzger at xs4all.nl
Mon Jun 1 10:53:16 BST 2015


Hello,

I am using pyuic5 on Fedora 21 to create my interface files from the
designer. What worked flawlessly until now, now gives this error:

Traceback (most recent call last):
  File "/usr/lib64/python3.4/site-packages/PyQt5/uic/port_v3/invoke.py",
line 34, in invoke
    exit_status = driver.invoke()
  File "/usr/lib64/python3.4/site-packages/PyQt5/uic/driver.py", line
59, in invoke
    self._generate()
  File "/usr/lib64/python3.4/site-packages/PyQt5/uic/driver.py", line
93, in _generate
    self._opts.from_imports, self._opts.resource_suffix)
  File "/usr/lib64/python3.4/site-packages/PyQt5/uic/__init__.py", line
162, in compileUi
    winfo = compiler.UICompiler().compileUi(uifile, pyfile,
from_imports, resource_suffix)
  File
"/usr/lib64/python3.4/site-packages/PyQt5/uic/Compiler/compiler.py",
line 110, in compileUi
    w = self.parse(input_stream, resource_suffix)
  File "/usr/lib64/python3.4/site-packages/PyQt5/uic/uiparser.py", line
1006, in parse
    actor(elem)
  File "/usr/lib64/python3.4/site-packages/PyQt5/uic/uiparser.py", line
818, in createUserInterface
    self.traverseWidgetTree(elem)
  File "/usr/lib64/python3.4/site-packages/PyQt5/uic/uiparser.py", line
796, in traverseWidgetTree
    handler(self, child)
  File "/usr/lib64/python3.4/site-packages/PyQt5/uic/uiparser.py", line
497, in createLayout
    self.traverseWidgetTree(elem)
  File "/usr/lib64/python3.4/site-packages/PyQt5/uic/uiparser.py", line
796, in traverseWidgetTree
    handler(self, child)
  File "/usr/lib64/python3.4/site-packages/PyQt5/uic/uiparser.py", line
540, in handleItem
    self.traverseWidgetTree(elem)
  File "/usr/lib64/python3.4/site-packages/PyQt5/uic/uiparser.py", line
796, in traverseWidgetTree
    handler(self, child)
  File "/usr/lib64/python3.4/site-packages/PyQt5/uic/uiparser.py", line
257, in createWidget
    self.traverseWidgetTree(elem)
  File "/usr/lib64/python3.4/site-packages/PyQt5/uic/uiparser.py", line
796, in traverseWidgetTree
    handler(self, child)
  File "/usr/lib64/python3.4/site-packages/PyQt5/uic/uiparser.py", line
764, in setZOrder
    getattr(self.toplevelWidget, elem.text).raise_()
  File
"/usr/lib64/python3.4/site-packages/PyQt5/uic/Compiler/qtproxies.py",
line 145, in __getattribute__
    return object.__getattribute__(self, attribute)
AttributeError: 'ProxyClassMember' object has no attribute 'raise_'

As from what I could track, this is caused by Spacers. 

My PyQt version is:
Name        : python3-qt5
Version     : 5.4.1
Release     : 1.fc21
Architecture: x86_64
Install Date: Tue 07 Apr 2015 13:08:36 CEST
Group       : Unspecified
Size        : 20330614
License     : BSD and GPLv2+
Signature   : RSA/SHA256, Sat 21 Mar 2015 13:47:50 CET, Key ID
89ad4e8795a43f54
Source RPM  : python-qt5-5.4.1-1.fc21.src.rpm
Build Date  : Sat 28 Feb 2015 01:01:59 CET
Build Host  : buildvm-25.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://www.riverbankcomputing.com/software/pyqt/
Summary     : Python 3 bindings for Qt5

If you need more info (e.g. he interface .ui file), please let me know
and i send/post it.

Thank you in advance!
/rudy



More information about the PyQt mailing list