pyuic AttributeError in RedHat 9
Dave
shuvit at 127.0.0.1
Fri Oct 17 09:50:13 EDT 2003
I've got a simpler sequence that demonstrates the problem. I now believe
it is a missing definition in qt.libqtc ( part of the package
PyQt-3.5-5.i386.rpm ). Before filing a bug report, I just wanted to see if
I'm missing something obvious.
--> Using Red Hat 9 with python-2.2.2 and PyQt-3.5:
[macquigg at saguaro macquigg]$ python
Python 2.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2
...
>>> import qt
>>> qt
<module 'qt' from '/usr/lib/python2.2/site-packages/qt.py'>
>>> from qt import QPixmap
>>> QPixmap
<class qt.QPixmap at 0x8243074>
>>> dir(QPixmap)
['__del__', '__doc__', '__init__', '__module__', 'arrowCursor', 'black',
'blankCursor', 'blue', 'color0', 'color1', 'crossCursor', 'cyan',
'darkBlue',
'darkCyan', 'darkGray', 'darkGreen', 'darkMagenta', 'darkRed', 'darkYellow',
'forbiddenCursor', 'gray', 'green', 'ibeamCursor', 'lightGray', 'magenta',
'pointingHandCursor', 'red', 'sizeAllCursor', 'sizeBDiagCursor',
'sizeFDiagCursor', 'sizeHorCursor', 'sizeVerCursor', 'splitHCursor',
'splitVCursor', 'upArrowCursor', 'waitCursor', 'whatsThisCursor', 'white',
'yellow']
--> There is no attribute 'QPixmap.fromMimeSource'
>>> QPixmap.fromMimeSource
Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: fromMimeSource
--> Here is the definition of QPixmap (from qt.py):
class QPixmap(QPaintDevice,Qt):
def __init__(self,*args):
libqtc.sipCallCtor(221,self,args)
...
>>> qt.libqtc
<module 'libqtc' from 'libqtcmodule.so'>
...
[macquigg at saguaro site-packages]$ rpm -qf libqtcmodule.so
PyQt-3.5-5
...
-- Dave
More information about the Python-list
mailing list