[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bindings
Subject:    [Kde-bindings] phonon from PyKDE4: Phonon.createPath () error
From:       Marcos Dione <mdione () grulic ! org ! ar>
Date:       2009-11-08 14:24:04
Message-ID: 20091108142404.GC30893 () mustang ! grulicueva ! net
[Download RAW message or body]


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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic