PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 812 - pyside-uic 0.2.8 "unexpected error" (KeyError: 'pluginType')
: pyside-uic 0.2.8 "unexpected error" (KeyError: 'pluginType')
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: pyside-tools
: HEAD
: PC Linux
: P2 normal
Assigned To: Lauro Moura
:
:
:
  Show dependency treegraph
 
Reported: 2011-04-06 03:16 EEST by Luke Graybill
Modified: 2011-04-29 18:06 EEST (History)
11 users (show)

See Also:


Attachments
simple MainWindow with the menubar removed (492 bytes, application/x-designer)
2011-04-06 03:16 EEST, Luke Graybill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke Graybill 2011-04-06 03:16:17 EEST
Created attachment 299 [details]
simple MainWindow with the menubar removed

Using QT Designer 4.7.0, I created a basic MainWindow, removed the menubar, and
saved the file as example.ui (attached here). Running pyside-uic 0.2.8 and
using PySide 1.0.1, I get the following output:

$ pyside-uic example.ui -d
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'example.ui'
#
# Created: Tue Apr  5 18:15:38 2011
#      by: pyside-uic 0.2.8 running on PySide 1.0.1
#
# WARNING! All changes made in this file will be lost!

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/pysideuic/port_v2/invoke.py", line 34, in
invoke
    exit_status = driver.invoke()
  File "/usr/lib/pymodules/python2.6/pysideuic/driver.py", line 60, in invoke
    self._generate()
  File "/usr/lib/pymodules/python2.6/pysideuic/driver.py", line 94, in
_generate
    compileUi(self._ui_file, pyfile, self._opts.execute, self._opts.indent,
self._opts.from_imports)
  File "/usr/lib/pymodules/python2.6/pysideuic/__init__.py", line 142, in
compileUi
    winfo = compiler.UICompiler().compileUi(uifile, pyfile, from_imports)
  File "/usr/lib/pymodules/python2.6/pysideuic/Compiler/compiler.py", line 37,
in __init__
    CompilerCreatorPolicy())
  File "/usr/lib/pymodules/python2.6/pysideuic/uiparser.py", line 103, in
__init__
    self.factory = QObjectCreator(creatorPolicy)
  File "/usr/lib/pymodules/python2.6/pysideuic/objcreator.py", line 70, in
__init__
    pluginType = plugin_locals["pluginType"]
KeyError: 'pluginType'
Comment 1 izimobil 2011-04-06 18:21:28 EEST
Hi, I encountered this issue as well.
Not sure if it's the correct fix but this change fixed the issue for me:
https://qt.gitorious.org/~izi/pyside/izi-pyside-tools/commit/81d96be39b6ebe79eb1bb5089c78b75d8b2e04ef

I've sent a merge request via gitorious.
Comment 2 Hugo Parente Lima 2011-04-06 19:57:41 EEST
Your patch has been merged, thanks very much for the patch.

fixed in commit:
pyside-tools/338c3a45a22f5215734ef7020e47284104374bff
Comment 3 Hugo Parente Lima 2011-04-13 17:15:03 EEST
*** Bug 817 has been marked as a duplicate of this bug. ***
Comment 4 renato filho 2011-04-29 18:06:33 EEST
PySide release 1.0.2