[Kde-bindings] phonon from PyKDE4: Phonon.createPath () error
Marcos Dione
mdione at grulic.org.ar
Sun Nov 8 14:24:04 UTC 2009
The following code fails:
--- code ---
from PyQt4.QtGui import QApplication
from PyKDE4.phonon import Phonon
app= QApplication ([])
media= Phonon.MediaObject ()
ao= Phonon.AudioOutput (Phonon.MusicCategory, app)
Phonon.createPath (media, ao)
--- code ---
the error (and a warning):
--- error ---
WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names through the DBUS interface
Traceback (most recent call last):
File "../../trash & toys/phonon_createPath.py", line 8, in <module>
Phonon.createPath (media, ao)
TypeError: argument 2 of createPath() has an invalid type
--- error ---
what's strange is that the same code, except for the second import, seems
to work if one uses PyQt4's phonon wrapper. I say seems because that code works
with debian's python-qt4-phonon packege. I skimmed the patches that debian
applies to the original source code and I couldn't find anything relative to
this.
--
(Not so) Random fortune:
AFAIR, being insane is usually a pre-requisite for becoming a sysadmin. In the
few cases where it's not pre-requisite, it's certainly going to be a bonus.
-- SIggi the Underpaid
More information about the Kde-bindings
mailing list