Re: Issues with bora's dbus-python
Hi Henri, Thanks for this report. Right now we are migrating pymaemo svn to garage.maemo.org. After this we will give special attention to all bugs reported. Could you open a bug on pymaemo bugzilla[1] with a link or some information about this patch for pyrex? Regards, Luciano Wolf -INdT- [1] https://garage.maemo.org/tracker/?atid=229group_id=40func=browse On 3/2/07, Henri Bergius [EMAIL PROTECTED] wrote: Hi, all! I've been trying to make Maemo Plazer to function as a GeoClue position backend. GeoClue is a DBUS-based system that applications can use to get location information for the device. This can eventually be used for bunch of interesting things like pulling local wikipedia pages and populating them as Maemo Mapper POIs or whatever. However, it seems that the version of dbus-python that is available for bora is not fully compatible with Python 2.5 on the N800. This means that I can't return multiple values from a DBUS service written in Python as GeoClue would require. From discussion on #dbus: bergie: Exception exceptions.AttributeError: 'exceptions.TypeError' object has no attribute '__module__' in 'dbus_bindings._GIL_safe_cmessage_function_handler' ignored smcv: that's the python 2.5 incompatibility smcv: INdT either need to patch their version of pyrex with the python 2.5 compat patch from Fedora and rebuild d-p, or build d-p 0.80.2 instead SNIP Now, would it be possible to get a fixed dbus-python package for bora? -- Henri Bergius Motorcycle Adventures and Free Software http://bergie.iki.fi/ Skype: henribergius Jabber: [EMAIL PROTECTED] ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: Python libosso bindings and ICd not working
Hi Erik, I had the same problem testing here. At this moment we are migrating the PyMaemo repository to garage.maemo.org and this will take some time. Finishing this task we will take a look on this problem in osso bindings. Could you file a bug in pymaemo bugzilla[1]? Thanks in advance! Regards, Luciano -INdT- [1] pymaemo.garage.maemo.org On 2/28/07, Erik Walthinsen [EMAIL PROTECTED] wrote: I've got a control panel app that must have a constant network connection in order to function (button press - UDP packet). For the moment I've faked up a wrapper script that uses a preload'd ping, but it's very lame and doesn't work consistently, which is not good in this situation. I'm trying to use the libosso bindings to connect, and eventually listen to status_changed so I can reconnect and reinitialize my network sockets. It's not even coming close to working ;-( Figuring the bindings would be better, I started by grabbing the latest pymaemo2.5. Then I tried the following script: = #!/usr/bin/env python import osso import gtk osso_c = osso.Context(icconnect, 0.0.1, False) osso_rpc = osso.Rpc(osso_c) try: retval = osso_rpc.rpc_run( com.nokia.icd, /com/nokia/icd, com.nokia.icd, connect, (omegacs.net,0), True, True) except Exception, inst: print failed with exception +repr(inst) else: print retval is %s % retval = I get the following error: failed with exception SystemError('error return without exception set',) AFAICT this is an internal Python error that means the bindings have a bug. OTOH, calling disconnect with (omegacs.net,) returns with omegacs.net and no error, but does nothing. This is rather critical to my application, and any other potential Python program, so I would appreciate hints as to either what I'm doing wrong, or what in pymaemo needs to be worked on so it can function. As a side note, I tried to use the DBus bindings directly, which also failed miserably. I was told that Maemo's DBus doesn't support introspection, yet the python bindings will not function without introspection, making the bindings completely worthless. Is this really true? TIA, Omega aka Erik Walthinsen [EMAIL PROTECTED] ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
New release of Python2.5 for Maemo
Hi Maemo Developers! I would like to announce the release of a new version of Python2.5 for Maemo. This release includes bugfixes in the following areas: - Patch for race condition with signals, inside python; - Inclusion of pyexpat module. It was removed accidentally during the build process. This one enables the cElementTree usage. - Closes #388 and #389 (Pierre Amadio, thanks for bug report!). Now its possible to use rpc_run and rpc_async_run correctly. Some modifications inside online documentation must be done, regarding callback function used by rpc_async_run. Actually it will receive 4 parameters, like C code does. (eg. def callback_func (interface, method, retval, user_data) ). Thanks to Carman project team too. You have provided great feedback and helped us a lot. Hope all you enjoy it and keep reporting problems to improve even more. Regards, Luciano Wolf -INdT- ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] PyMaemo and modules left out.
On 1/31/07, Simo Hosio [EMAIL PROTECTED] wrote: Hi, I am starting to develop a middleware for Maemo with Python. However, there are numerous python modules I'd like to utilize in my work, e.g. xmlrpc server side. This is only available in the SDK, I realize. What is the reason for having some modules only there? I mean, I understand that they are heavy and generate overhead, but doesn't this only make developing with Python harder? Since the scripts / code one develops, won't work directly in the device? Couldn't find answer to this..and I am quite unexperienced with both, python and Maemo anyway.. And furthermore, if the efficiency and efficiency of the software is not my greatest concern, is it a big sin just grabbing the libs / sources and just importing them to the device? Or will I have some other problems if I do that? Any opinions? (Or, knowledge even;) Br, Simo Hi Simo, The SDK and device use the same python packages. The problem seems to be that you don't have python2.5-dev installed in your device, which is the default configuration. This dev package provides xmlrpc capabilities. To install it open a xterm session in your N800, gain root access (sudo /usr/sbin/gainroot) and install the package (apt-get install python2.5-dev). After this, remember to logout from gainroot typing exit. We will add these steps to the PyMaemo[1] website as soon as possible. Hope to be usefull and welcome new pymaemo user :) Regards, Luciano -INdt- [1] http://pymaemo.garage.maemo.org ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers
Re: [maemo-developers] Re: Python/Contact Data Store APIs..
On 1/30/07, Ross Burton [EMAIL PROTECTED] wrote: On Mon, 2007-01-29 at 17:48 -0900, John P. Mitchell wrote: I want to write an address book that intergrates with the built in contacts data store. Which libraries are required for accessing that data store and are there bindings for them in the Python 2.5 release? Has anyone tried using swig[1] to build a wrapper for binding Maemo C libraries to Python? To access the address book data you libebook, there is a tutorial on maemo.org: http://maemo.org/platform/docs/howtos/howto_using_abook_bora.html However there are no Python wrappers. The API is fairly standard GObject style so you should have some success in using the existing pygtk framework to wrap it. The parsing tools are quite pedantic so I'll happily modify any headers in the EDS svn repository to make it build, as I'd love to see Python wrappers myself. You may find http://www-128.ibm.com/developerworks/linux/library/l-wrap/ useful, it's a tutorial I wrote some time ago (but still mostly relevant, not a lot has changed) that documents the basics in wrapping GObjects for Python. Ross -- Ross Burton mail: [EMAIL PROTECTED] jabber: [EMAIL PROTECTED] www: http://www.burtonini.com./ PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF Hi, You could take a look in PythonHildon[1] too. We use codegen, provided by pygtk, to produce bindings. First of all run h2def to produce the def files that will be used by gen-enum-c and gen-enum-h. Codegen will work over code generated by these utilities. The utilities are called by setup.py. Most part of time swig application is used to produce C++ wrappers and here we use C. This is the reason to adopt codegen. Regards, Luciano -INdT- [1] https://stage.maemo.org/svn/maemo/projects/haf/trunk/python-hildon/ ___ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers