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 537 - cannot generate python code by using pyside-uic
: cannot generate python code by using pyside-uic
Status: CLOSED WORKSFORME
Product: PySide
Classification: Unclassified
Component: pyside-tools
: 1.0.0 beta1
: PC Linux
: P3 critical
Assigned To: Lauro Moura
:
:
:
  Show dependency treegraph
 
Reported: 2010-12-08 02:18 EET by halida
Modified: 2010-12-20 11:26 EET (History)
8 users (show)

See Also:


Attachments
ui file (581 bytes, application/x-designer)
2010-12-08 02:18 EET, halida
Details

Note You need to log in before you can comment on or make changes to this bug.
Description halida 2010-12-08 02:18:52 EET
Created attachment 172 [details]
ui file

ubuntu10.04, 
install pyside by using ppa:pyside/ppa,

convert draw.ui to draw.py, run script:

pyside-uic -d draw.ui -o draw_ui.py

error:

Traceback (most recent call last):
  File "/usr/bin/pyside-uic", line 75, in main
    options.indent)
  File "/usr/bin/pyside-uic", line 39, in generateUi
    pysideuic.compileUi(uifname, pyfile, execute, indent)
  File "/usr/lib/pymodules/python2.6/pysideuic/__init__.py", line 73, in
compileUi
    winfo = compiler.UICompiler().compileUi(uifile, pyfile)
  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 104, in
__init__
    self.factory = QObjectCreator(creatorPolicy)
  File "/usr/lib/pymodules/python2.6/pysideuic/objcreator.py", line 79, in
__init__
    raise WidgetPluginError, "%s: %s" % (e.__class__, str(e))
WidgetPluginError: <type 'exceptions.KeyError'>: 'pluginType'
Comment 1 Matti Airas 2010-12-08 12:21:54 EET
This worked for me on self-built 1.0.0~beta1 packages. I'll try again with the
PPA packages later tonight (or tomorrow) to see whether it's a packaging issue
or what.
Comment 2 Matti Airas 2010-12-10 06:37:56 EET
Hi,

I just tested this on a clean Ubuntu 10.10 installation with the PySide PPA
packages and it worked just fine. Please verify that you have the pyside-tools
package correctly installed and that you're not actually running any locally
compiled older version instead of /usr/bin/pyside-uic.

I'm resolving as WORKSFORME - please reopen if you're certain this is a PySide
issue.
Comment 3 halida 2010-12-10 06:52:21 EET
I install pyside on another pc, and it works. (ubuntu10.10)
next monday I will go to my office and check it again. (ubuntu 10.04)
Comment 4 halida 2010-12-12 21:22:17 EET
still not works in 10.04.
any more information needed?
Comment 5 Hugo Parente Lima 2010-12-20 11:26:14 EET
Closign bugs after release of 1.0.0 beta2.