[PyQt] 'import PyQt4.uic.Compiler' fails with Python 3.2

Arfrever Frehtes Taifersar Arahesis arfrever.fta at gmail.com
Fri Sep 17 19:51:55 BST 2010


I use SIP 4.11.1 and PyQt4 4.7.6.

$ python3.1 -c 'import PyQt4.uic.Compiler'
$ python3.2 -c 'import PyQt4.uic.Compiler'
Traceback (most recent call last):
  File "/usr/lib64/python3.2/site-packages/PyQt4/uic/Compiler/proxy_type.py", line 16, in __getattribute__
    return type.__getattribute__(cls, name)
AttributeError: type object 'ProxyBase' has no attribute 'module'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python3.2/site-packages/PyQt4/uic/__init__.py", line 3, in <module>
    from PyQt4.uic.Compiler import indenter, compiler
  File "/usr/lib64/python3.2/site-packages/PyQt4/uic/Compiler/compiler.py", line 5, in <module>
    from PyQt4.uic.Compiler import qtproxies
  File "/usr/lib64/python3.2/site-packages/PyQt4/uic/Compiler/qtproxies.py", line 8, in <module>
    from PyQt4.uic.port_v3.proxy_base import ProxyBase
  File "/usr/lib64/python3.2/site-packages/PyQt4/uic/port_v3/proxy_base.py", line 4, in <module>
    class ProxyBase(metaclass=ProxyType):
  File "/usr/lib64/python3.2/site-packages/PyQt4/uic/Compiler/proxy_type.py", line 11, in __init__
    if not hasattr(args[0], "module"):
  File "/usr/lib64/python3.2/site-packages/PyQt4/uic/Compiler/proxy_type.py", line 19, in __getattribute__
    from PyQt4.uic.Compiler.qtproxies import LiteralProxyClass
ImportError: cannot import name LiteralProxyClass

-- 
Arfrever Frehtes Taifersar Arahesis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100917/2af8534a/attachment-0001.pgp>


More information about the PyQt mailing list