[Kde-bindings] [bindings] [Bug 326294] New: PyKDE, pykdeuic4: "TypeError: compileUi() takes exactly 5 arguments (4 given)"

totte totte at tott.es
Sat Oct 19 20:21:03 UTC 2013


https://bugs.kde.org/show_bug.cgi?id=326294

            Bug ID: 326294
           Summary: PyKDE, pykdeuic4: "TypeError: compileUi() takes
                    exactly 5 arguments (4 given)"
    Classification: Unclassified
           Product: bindings
           Version: 4.11.2
          Platform: Chakra
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kde-bindings at kde.org
          Reporter: totte at tott.es

The compileUi() recently changed in PyQt, leading to it now requiring five
arguments - it cannot be provided, however, in the current version of PyKDE.
Setting the default value of the last argument to an empty string resolves the
issue: `sed -i 's/winfo = comp.compileUi(uifile, output, None)/winfo =
comp.compileUi(uifile, output, None, "")/g' /usr/bin/pykdeuic4`.

Reproducible: Always

Steps to Reproduce:
1. Run `pykdeuic4 -o foo.py foo.ui`
Actual Results:  
I got the error: "TypeError: compileUi() takes exactly 5 arguments (4 given)"

Expected Results:  
Compiled the foo.ui file without a hitch.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kde-bindings mailing list