** Description changed:

+ 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.
- 
- 
- ==== Original report ====
- 
- Binary package hint: gally
- 
- Tried to launch Gally on Ubuntu 11.04 I get this error:
- 
- alex-mayorga@VPCCW1FFXL:~$ gally
- Traceback (most recent call last):
-   File "/usr/bin/gally", line 26, in <module>
-     from gally.twoPanes import Ui_TwoPanes
- ImportError: cannot import name Ui_TwoPanes
- 
- ProblemType: Bug
- DistroRelease: Ubuntu 11.04
- Package: gally 0.5.1-1
- ProcVersionSignature: Ubuntu 2.6.37-11.25-generic 2.6.37-rc7
- Uname: Linux 2.6.37-11-generic x86_64
- Architecture: amd64
- CheckboxSubmission: ed5dbdfb54bf5043a043813a33527c9f
- CheckboxSystem: b633b4f40868d491c2ae5b50030ce6f3
- Date: Wed Dec 29 23:56:46 2010
- InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 
(20100816.1)
- PackageArchitecture: all
- ProcEnviron:
-  LANGUAGE=en_US:en
-  LANG=en_US.UTF-8
-  LC_MESSAGES=en_US.utf8
-  SHELL=/bin/bash
- SourcePackage: gally

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to 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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to