[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] pyuic4 error
From:       Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date:       2007-01-30 21:54:56
Message-ID: 200701302154.56105.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]

On Tuesday 30 January 2007 9:47 pm, TheMoon Seeker wrote:
> Hi!
>
> I'm trying PyQt and I have a problem when generating python file.. I'm on
> Ubuntu and I have installed python-qt4 4.0.1 and qt4.designer 4.2.0. I use
> the designer to create a simple gui with a Graphics View, then I saved it
> on test.ui. I generate py file by using this command : pyuic4 -o test.py -x
> test.ui and all is ok! But when I resize the QGraphicsView with the
> designer, save again and try to regenerate test.py, I've got this error :
>
> themoonseeker@virtualOne:~/Desktop$ pyuic4 -o test.py -x test.ui
> Traceback (most recent call last):
>   File "/usr/bin/pyuic4", line 76, in ?
>     sys.stderr.write(e)
> TypeError: argument 1 must be string or read-only character buffer, not
> instance
>
> I don't what's happened!? Could someone help me?

First thing to do is to upgrade to PyQt 4.1.1. If you still have a problem 
then post the .ui file.

Phil

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic