Problema con pynotify

Reynaldo reynaldomic en gmail.com
Mar Feb 17 21:25:09 CET 2009


Moises Brenes escribió:
> Tengo el siguiente codigo para probar pynotify:
>
> import pynotify
>     ...
>         pynotify.init("g2u")
>
>         n = pynotify.Notification("titulo", "mensaje")
>         n.set_timeout(1000)
>         n.show()
>
> Pero me me muestra este error:
>
> libnotify-Message: Unable to get session bus: Did not receive a reply.
> Possible causes include: the remote application did not send a reply,
> the message bus security policy blocked the reply, the reply timeout
> expired, or the network connection was broken.
>   
El código que tienes corre perfectamente acá, por el mensaje presumo que
no tienes una sesion de d-bus corriendo.

prueba primero esto :

dbus-launch --sh-syntax

y luego corre tu programa
_______________________________________________
Lista de correo Python-es 
http://listas.aditel.org/listinfo/python-es
FAQ: http://listas.aditel.org/faqpyes





Más información sobre la lista de distribución Python-es