Hola, mismo sistema, Debian con openbox, y ese script funciona
perfectamente mostrando el aviso en la esquina de la pantalla. Si te sirve
de ayuda, estos son los paquetes que hacen referencia a glib que tengo
instalados en el sistema:

$ aptitude search glib | grep ^i
i A libavahi-glib1                  - Avahi glib integration
library
i A libdbus-glib-1-2                - simple interprocess messaging system
(GLib
i A libglib-perl                    - interface to the GLib and GObject
librarie
i   libglib1.2ldbl                  - The GLib library of C
routines
i A libglib2-ruby1.8                - Glib 2 bindings for the Ruby
language
i A libglib2.0-0                    - The GLib library of C
routines
i A libglib2.0-data                 - Common files for GLib
library
i   libglib2.0-dev                  - Development files for the GLib
library
i A libglibmm-2.4-1c2a              - C++ wrapper for the GLib toolkit
(shared l
i A libjson-glib-1.0-0              - GLib JSON manipulation
library
i A libnm-glib2                     - network management framework (GLib
shared
i A libpoppler-glib4                - PDF rendering library (GLib-based
shared l
i A libpulse-mainloop-glib0         - PulseAudio client libraries (glib
support)
i A libtelepathy-glib0              - Telepathy framework - GLib
library
i A libupower-glib1                 - abstraction for power management -
shared



El 19 de julio de 2012 00:31, José Javier Castro Matamoros <
el4t...@gmail.com> escribió:

> Hola a todos. Tenía un tiempo de no programar en Python; sin embargo, hoy
> me sentía un poco aburrido y me dio por divertirme un rato.
>
> La cosa es que estaba leyendo blogs y me encontré con py-notify, me gusto
> y di rienda suelta a mi imaginación. Para contextualizar un poco, utilizo
> Debian 6.0 estable, X y OpenBox. La versión de Python instalada es la 2.6 y
> al igual que py-notify se instaló utilizando el Apt. En fin, la cosa es que
> traté de ejecutar el siguiente código:
>
> import pynotify
>
> pynotify.init('someName')
> n = pynotify.Notification("Summary", "Body")
> n.show()
>
> Y como consecuencia obtuve el siguiente error:
>
> glib.GError: Unable to connect to server
>
> He Googleado el error pero sin recompensa alguna. Mi pregunta es por qué
> se da este error, leí por allí que se requería dbus para que el notify
> funcionara; sin embargo, ya está instalado.
>
> Podría darme alguien una luz con respecto a este error.
>
> Saludos y muchas gracias por la ayuda que me puedan brindar.
>
> _______________________________________________
> Python-es mailing list
> Python-es@python.org
> http://mail.python.org/mailman/listinfo/python-es
> FAQ: http://python-es-faq.wikidot.com/
>
>
_______________________________________________
Python-es mailing list
Python-es@python.org
http://mail.python.org/mailman/listinfo/python-es
FAQ: http://python-es-faq.wikidot.com/

Responder a