import PyQt4.pyqtconfig fails

Bug #253245 reported by Origaman
4
Affects Status Importance Assigned to Milestone
python-qt4 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: python-qt4

>>> import PyQt4.pyqtconfig
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pyqtconfig

According to the PyQt4 docs, this module should be there:

http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/pyqt4ref.html#the-pyqt-build-system

I'm running Kubuntu Hardy 8.04, using the backported packages for KDE 4.1.

Revision history for this message
Origaman (mail-benno-dielmann) wrote :

Sorry, forgot to mention the package version:

4.4.2-0ubuntu2~hardy1~ppa1

Revision history for this message
Scott Kitterman (kitterman) wrote :

I suspect you need to install python-qt4-dev.

Revision history for this message
Origaman (mail-benno-dielmann) wrote :

Ok, that did it...

Changed in python-qt4:
status: New → Invalid
Revision history for this message
Origaman (mail-benno-dielmann) wrote :

Is there a compelling reason why pyqtconfig is in the devel package? IMHO it doesn't belong there (as there otherwise is only sip stuff). Simon Edwards (current PyKDE4 maintainer) seconds this in an email discussion we had on the PyQt/PyKDE mailing list.

Revision history for this message
Stephan Rügamer (sruegamer) wrote :

Hi,

would you like to point me to the discussion on pyqt@riverbank ml? I'm subscribed to it, but I really don't find it in my mail spool (could be me).

The reason (I'm not the packager just a pyqt/pykde app dev and universe pkg dude) why it is in python-qt4-dev :

IMHO it follows the debian policy for development files. Normally you don't need this module for any application development with pyqt...this module is only needed for the build system of pyqt4 in general.
Which means, a normal app developer with pyqt4+pykde4 will never import this module, without a reason.

And for this, it's laying in the -dev package, and imho this is good.

What we can discuss is an idea of Scott Kitterman yesterday on IRC, that we push a "dummy" module to python-qt4 package, which tells: "if you need this module, please apt-get install python-qt4-dev"...

But in general, the location of this module follows debian policy.

Regards,

\sh

Revision history for this message
Origaman (mail-benno-dielmann) wrote :

Hi,

here's the mail from Simon Edwards:

http://www.riverbankcomputing.com/pipermail/pyqt/2008-July/020112.html

The PyKDE4 documentation installer uses pyqtconfig to figure out where to put things in the file system hierarchy (as far as I can see).

At the moment, the packaging of pyqtconfig is inconsistent to the packaging of pykdeconfig. The latter is in python-kde4, not in python-kde4-dev. I am not insider enough to judge where to correctly put these modules so I leave this up to more competent people ;-).

The reason I opened the bug report is that I tried to install the pykdedocs viewing application that's missing in the python-kde4 (or python-kde4-doc) package. But with the current packages from ppa (kde 4.1 packages), this seems to be fundamentally broken (as Simon mentions in the above mail).

Best wishes,

Benno.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.