phonon from PyKDE4: Phonon.createPath () error

View: New views
1 Messages — Rating Filter:   Alert me  

phonon from PyKDE4: Phonon.createPath () error

by Bugzilla from mdione@grulic.org.ar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    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
_______________________________________________
Kde-bindings mailing list
Kde-bindings@...
https://mail.kde.org/mailman/listinfo/kde-bindings