pykdeuic4's processUi() calls compileUi() with 3 args instead of the 4 required by PyQt4.uic.Compiler.compiler
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KDE Bindings |
Unknown
|
High
|
|||
kdebindings (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Natty |
Fix Released
|
Medium
|
Unassigned |
Bug Description
1. Impact: .ui files are not compiled into .py files. Instead a Python traceback is output and the resulting .py file is mostly blank (a bit of explanatory "this file was generated" text is all that's there)
2. How it's fixed: Modify the compileUi() call to include an additional argument ("False") to satisfy the API change in Qt.Compiler
3. Patch: see http://
4. TEST CASE
1. See attached .ui file
2. pykdeuic4 -o ui_twoPanes.py twoPanes.ui
Expected result:
- no traceback crashy Python output
- ui_twoPanes.py has lots of Python inside
(Bad result = crashy Python output and mostly blank ui_TwoPanes.py)
5. No known regression potential. Patch is coming from upstream.
=====
Symptoms are the following in a build log:
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
processUI(
File "/usr/bin/
winfo = comp.compileUi(
TypeError: compileUi() takes exactly 4 arguments (3 given)
Followed by an ImportError when the application being built is eventually run.
Related branches
description: | updated |
description: | updated |
affects: | python-kde4 (Ubuntu) → kdebindings (Ubuntu) |
Changed in kdebindings: | |
importance: | Unknown → High |
status: | Unknown → Confirmed |
tags: | added: testcase |
Changed in kdebindings (Ubuntu): | |
assignee: | Mackenzie Morgan (maco.m) → nobody |
Changed in kdebindings (Ubuntu Natty): | |
assignee: | Mackenzie Morgan (maco.m) → nobody |
Changed in kdebindings: | |
status: | Confirmed → Unknown |
Does the file /usr/share/ pyshared/ gally/twoPanes. py exist on your system?