Discussion:
[Bug 695590] [NEW] pykdeuic4's processUi() calls compileUi() with 3 args instead of the 4 required by PyQt4.uic.Compiler.compiler
Launchpad Bug Tracker
2011-04-26 04:07:01 UTC
Permalink
You have been subscribed to a public bug:

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://people.ubuntu.com/~maco.m/needs_sponsorship/kdebindings_4.6.2b-
0ubuntu2.dsc

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/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)

Followed by an ImportError when the application being built is
eventually run.

** Affects: kdebindings (Ubuntu)
Importance: Medium
Assignee: Mackenzie Morgan (maco.m)
Status: Triaged


** Tags: amd64 apport-bug natty
--
pykdeuic4's processUi() calls compileUi() with 3 args instead of the 4 required by PyQt4.uic.Compiler.compiler
https://bugs.launchpad.net/bugs/695590
You received this bug notification because you are a member of Kubuntu Bugs, which is subscribed to kdebindings in Ubuntu.
Scott Kitterman
2011-04-26 04:07:00 UTC
Permalink
** Package changed: python-kde4 (Ubuntu) => kdebindings (Ubuntu)

** Also affects: kdebindings via
http://bugs.kde.org/show_bug.cgi?id=269710
Importance: Unknown
Status: Unknown
--
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
Scott Kitterman
2011-04-26 04:15:29 UTC
Permalink
Uploaded. Waiting for ubuntu-sru review.

** Changed in: kdebindings (Ubuntu)
Status: Triaged => Fix Committed
--
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
Martin Pitt
2011-04-26 20:46:36 UTC
Permalink
Accepted kdebindings into natty-proposed, the package will build now and
be available in a few hours. Please test and give feedback here. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed. Thank you in advance!

** Also affects: kdebindings (Ubuntu Natty)
Importance: Medium
Assignee: Mackenzie Morgan (maco.m)
Status: Fix Committed

** Tags added: verification-needed
--
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
Bug Watch Updater
2011-04-26 22:31:57 UTC
Permalink
** Changed in: kdebindings
Status: Unknown => Confirmed

** Changed in: kdebindings
Importance: Unknown => High
--
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
Felix Geyer
2011-04-27 14:30:14 UTC
Permalink
Compiling the attached ui file with python-kde4-dev 4:4.6.2b-0ubuntu1.1
works fine.

** Tags added: verification-done
** Tags removed: verification-needed
--
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
Launchpad Bug Tracker
2011-05-02 07:49:59 UTC
Permalink
This bug was fixed in the package kdebindings - 4:4.6.2b-0ubuntu1.1

---------------
kdebindings (4:4.6.2b-0ubuntu1.1) natty-proposed; urgency=low

* Make pykdeuic4 compatible with new PyQt.Compiler (LP: #695590)
-- Mackenzie Morgan <maco.m at ubuntu.com> Sun, 24 Apr 2011 00:04:26 -0400

** Changed in: kdebindings (Ubuntu Natty)
Status: Fix Committed => Fix Released
--
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
Martin Pitt
2011-05-02 07:54:42 UTC
Permalink
Copied to oneiric as well.

** Changed in: kdebindings (Ubuntu)
Status: Fix Committed => Fix Released
--
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
Launchpad Bug Tracker
2011-08-31 18:02:24 UTC
Permalink
** Branch linked: lp:ubuntu/kdebindings
--
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
Ubuntu QA's Bug Bot
2011-09-19 21:41:55 UTC
Permalink
** Tags added: testcase
--
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
Mackenzie Morgan
2013-08-12 14:40:36 UTC
Permalink
** Changed in: kdebindings (Ubuntu)
Assignee: Mackenzie Morgan (maco.m) => (unassigned)

** Changed in: kdebindings (Ubuntu Natty)
Assignee: Mackenzie Morgan (maco.m) => (unassigned)
--
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
Bug Watch Updater
2013-11-03 15:18:34 UTC
Permalink
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
Andrew-crouthamel
2018-11-17 05:27:29 UTC
Permalink
Hello, unfortunately this bug is being closed as unmaintained, per
request of einar77.
--
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
--
kubuntu-bugs mailing list
kubuntu-***@lists.ubuntu.com
https://lists.ubunt
Loading...