Package: python-qt4
Version: 4.0.1-1
Severity: normal

Hi,

The PyQt4.Qt module is meant to be used as a shortcut when importing
things scattered in PyQt4.QtCore, PyQt4.QtGui, etc. However, due to the
split of python-qt4-gl and python-qt4-sql, importing PyQt4.Qt fails if
these two packages are not installed locally. 

An easy workaround is to patch slightly the Qt.py file for the debian
package and rewrite as follows:
-----------------------------8<-----------------------------
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtNetwork import *
try:
    from PyQt4.QtOpenGL import *
except ImportError:
    pass
try
    from PyQt4.QtSql import *
except ImportError:
    pass
from PyQt4.QtSvg import *
from PyQt4.QtXml import *
----------------------------8<-------------------------------

It should be ok to simply ignore the failed imports, since packages
requiring these modules should Depend on them, which guarantees that
they will be available at runtime. 


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-1-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages python-qt4 depends on:
ii  libc6                         2.3.6-18   GNU C Library: Shared libraries
ii  libgcc1                       1:4.1.1-10 GCC support library
ii  libqt4-core                   4.1.4-1    Qt 4 core non-GUI functionality ru
ii  libqt4-gui                    4.1.4-1    Qt 4 core GUI functionality runtim
ii  libstdc++6                    4.1.1-10   The GNU Standard C++ Library v3
ii  python                        2.3.5-11   An interactive high-level object-o
ii  python-central                0.5.2      register and build utility for Pyt
ii  python-elementtree            1.2.6-9    Light-weight toolkit for XML proce
ii  python-sip4                   4.4.5-2    Python/C++ bindings generator runt

python-qt4 recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to