Good morning, Sorry just checked my emails now, thank you very much it works beautifully.
Regards, Lezan Sebastien Estienne wrote: > Hello, > > Have your tried the python code that i sent? > > the avahi-browse.in use an older version of the Api. > > On 6/6/07, Lezan Hawizy <[EMAIL PROTECTED]> wrote: > >> Hello again, >> >> I've tried running the python browser code from : >> >> http://www.avahi.org/browser/tags/release-0.5.2/avahi-utils/avahi-browse.in >> >> And I get the following error message when i run it with the -a/--all >> command. Does it mean my files are conflicting? >> Apologies again but its taking me ages to get my head around this. >> >> Regards, >> Lezan >> --------------------------------------------------------------------------------------------------------------------- >> l/ine 134, in browse_domain >> b = dbus.Interface(bus.get_object(avahi.DBUS_NAME, >> server.ServiceTypeBrowserNew(interface, protocol, domain)), >> avahi.DBUS_INTERFACE_SERVICE_TYPE_BROWSER) >> File "/var/lib/python-support/python2.5/dbus/proxies.py", line 85, in >> __call__ >> return self._proxy_method(*args, **keywords) >> File "/var/lib/python-support/python2.5/dbus/proxies.py", line 155, in >> __call__ >> message.append(signature=introspect_sig, *args) >> TypeError: More items found in D-Bus signature than in Python arguments >> >> /------------------------------------------------------------------------------------------------------------------- >> >> Trent Lloyd wrote: >> >>> Hi Lezan, >>> >>> Lezan Hawizy wrote: >>> >>> >>>> Hello, >>>> >>>> I am trying to use Avahi as part of my work. I am trying to create some >>>> services that use Avahi as a way of notifying each other of their >>>> presence and services. >>>> I am implementing this in python and I have found a way to publish a >>>> service on avahi but I am somehow finding is really difficult to find a >>>> way of implementing the discover tool. I've checked the >>>> avahi-discover.py but the discover code is too interlinked with the >>>> glade code. I was wondering if there is a python file that could list >>>> services based on their service_type. >>>> >>>> I am currently looking into python dbus code so any help (even some >>>> information about a python avahi API) would be greatly appreciated. >>>> >>>> >>>> >>> Try this: >>> http://www.avahi.org/browser/tags/release-0.5.2/avahi-utils/avahi-browse.in >>> >>> This is a fairly complete example, however we have since added the >>> 'flags' paramater to a couple calls, so double check the D-Bus API docs >>> at http://avahi.org/wiki/ProgrammingDocs for where to put any 'flags' >>> paramaters >>> >>> From memory ServiceBrowserNew & ResolveService require flags. >>> >>> Cheers, >>> Trent >>> >>> >>>> Kind Regards, >>>> Lezan >>>> >>>> _______________________________________________ >>>> avahi mailing list >>>> [email protected] >>>> http://lists.freedesktop.org/mailman/listinfo/avahi >>>> >>>> >>>> >>>> >>> _______________________________________________ >>> avahi mailing list >>> [email protected] >>> http://lists.freedesktop.org/mailman/listinfo/avahi >>> >>> >> _______________________________________________ >> avahi mailing list >> [email protected] >> http://lists.freedesktop.org/mailman/listinfo/avahi >> >> > > > _______________________________________________ avahi mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/avahi
