From kde-bindings Sun Nov 08 14:24:04 2009 From: Marcos Dione Date: Sun, 08 Nov 2009 14:24:04 +0000 To: kde-bindings Subject: [Kde-bindings] phonon from PyKDE4: Phonon.createPath () error Message-Id: <20091108142404.GC30893 () mustang ! grulicueva ! net> X-MARC-Message: https://marc.info/?l=kde-bindings&m=125778025615662 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 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 _______________________________________________ Kde-bindings mailing list Kde-bindings@kde.org https://mail.kde.org/mailman/listinfo/kde-bindings