[maemo-developers] OssoRPCException running a python osso example

From: Andrea Grandi a.grandi at gmail.com
Date: Sat Mar 1 15:05:40 EET 2008
Hi,

I was trying to run this example from pymaemo website:

import osso

def main():
    osso_c = osso.Context("osso_test_statusbar", "0.0.1", False)
    statusbar = osso.Statusbar(osso_c)
    statusbar.statusbar_send_event("display", 1, 1, "")

if __name__ == "__main__":
    main()

but I get this exception:

Traceback (most recent call last):
  File "/root/.pluthon/PluThonTest1/src/hello_world.py", line 27, in <module>
    main()
  File "/root/.pluthon/PluThonTest1/src/hello_world.py", line 24, in main
    statusbar.statusbar_send_event("display", 1, 1, "")
osso.OssoRPCException: The name com.nokia.statusbar was not provided
by any .service files

how can I fix it? Thanks for your help!

-- 
Andrea Grandi
email: a.grandi [AT] gmail [DOT] com
website: http://www.andreagrandi.it
PGP Key: http://www.ptlug.org/andreagrandi.asc

More information about the maemo-developers mailing list