[Bug 695590] Re: pykdeuic4's processUi() calls compileUi() with 3 args instead of the 4 required by PyQt4.uic.Compiler.compiler

Bug Watch Updater 695590 at bugs.launchpad.net
Sun Nov 3 15:18:34 UTC 2013


Launchpad has imported 3 comments from the remote bug at
https://bugs.kde.org/show_bug.cgi?id=269710.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2011-03-29T17:27:48+00:00 Kevin-kofler wrote:

Version:           unspecified (using KDE 4.6.1) 
OS:                Linux

pykdeuic4 in kdebindings 4.6.x doesn't work with PyQt4 4.8.2 which it
supposedly requires. See:
https://bugzilla.redhat.com/show_bug.cgi?id=684419

Reproducible: Always

Steps to Reproduce:
1.create ui file with qt-designer
2.pykdeuic4 -o file.py file.ui


Actual Results:  
Traceback

Expected Results:  
No traceback

At first you get:

Traceback (most recent call last):
  File "/usr/bin/pykdeuic4", line 148, in <module>
    main()
  File "/usr/bin/pykdeuic4", line 145, in main
    processUI(args[0], output_filename, exe)
  File "/usr/bin/pykdeuic4", line 74, in processUI
    winfo = comp.compileUi(uifile, output)
TypeError: compileUi() takes exactly 4 arguments (3 given)

This is fixed in master, so it can be fixed by backporting:
https://projects.kde.org/projects/kde/kdebindings/pykde4/repository/revisions/3d84be0316c62136aa02f6a0a5482652d9582242

But that only gets you until the next traceback:

Traceback (most recent call last):
  File "/usr/bin/pykdeuic4", line 148, in <module>
    main()
  File "/usr/bin/pykdeuic4", line 145, in main
    processUI(args[0], output_filename, exe)
  File "/usr/bin/pykdeuic4", line 74, in processUI
    winfo = comp.compileUi(uifile, output, None)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/Compiler/compiler.py",
line 119, in compileUi
    w = self.parse(input_stream)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/uiparser.py", line 879, in
parse
    actor(elem)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/uiparser.py", line 720, in
createUserInterface
    self.wprops.setProperties(self.toplevelWidget, elem)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/properties.py", line 403,
in setProperties
    prop_value = self.convert(prop, widget)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/properties.py", line 368,
in convert
    return func(prop[0], **args)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/properties.py", line 148,
in _string
    prop.get('comment'), QtGui.QApplication.UnicodeUTF8)
  File "/usr/lib64/python2.7/site-packages/PyQt4/uic/Compiler/qtproxies.py",
line 238, in translate
    return i18n_string(text or "", disambig)
TypeError: __init__() takes exactly 2 arguments (3 given)

which doesn't appear to be fixed in master either.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdebindings/+bug/695590/comments/5

------------------------------------------------------------------------
On 2011-03-30T08:19:42+00:00 Gökçen Eraslan wrote:

What about that:

https://svn.pardus.org.tr/pardus/2011/devel/desktop/kde/base/kdebindings/files
/fix-pykdeuic4.patch

First hunk changing the __init__ method is not included in the
mainstream commit. Can you check that solves your problem? If so, I can
commit it.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdebindings/+bug/695590/comments/6

------------------------------------------------------------------------
On 2011-03-30T11:58:51+00:00 Than wrote:

Gökcen, the fix resolves the reported issue, it can be committed in
upstream. thanks

Reply at:
https://bugs.launchpad.net/ubuntu/+source/kdebindings/+bug/695590/comments/7


** Changed in: kdebindings
       Status: Confirmed => Unknown

** Bug watch added: Red Hat Bugzilla #684419
   https://bugzilla.redhat.com/show_bug.cgi?id=684419

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kdebindings in Ubuntu.
https://bugs.launchpad.net/bugs/695590

Title:
  pykdeuic4's processUi() calls compileUi() with 3 args instead of the 4
  required by PyQt4.uic.Compiler.compiler

To manage notifications about this bug go to:
https://bugs.launchpad.net/kdebindings/+bug/695590/+subscriptions




More information about the kubuntu-bugs mailing list