GPS programming

RANJAN infibit at gmail.com
Thu Jul 23 20:43:02 CEST 2009


I scp the code to phone mem and the typed python getgps.py but it ended with
the following errors:

Traceback (most recent call last):
  File "getgps.py", line 192, in <module>
    gps.print_all()
  File "getgps.py", line 108, in print_all
    self.print_connection()
  File "getgps.py", line 37, in print_connection
    constatus =
self.obj.GetConnectionStatus(dbus_interface='org.freedesktop.Gypsy.Device')
  File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 68, in
__call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 140, in
__call__
    **keywords)
  File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 622, in
call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.NameError:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/dbus/service.py", line 702, in
_message_cb
    retval = candidate_method(self, *args, **keywords)
  File "<string>", line 1, in <lambda>
  File "/usr/lib/python2.6/site-packages/framework/resource.py", line 57, in
checkedsyncmethod
    dbus_error( ResourceNotEnabled( "Resource %s is not enabled, current
status is '%s'" % ( self.__class__.__name__, self._resourceStatus ) ) )
NameError: global name 'dbus_error' is not defined

How shall I solve this?Please suggest.

Sriranjan

On Thu, Jul 23, 2009 at 11:45 PM, RANJAN <infibit at gmail.com> wrote:

> Hi,
>
> Any ideas on how to run and use codes as this?
> http://people.debian.org/~enrico/2009-06/getgps<http://people.debian.org/%7Eenrico/2009-06/getgps>
>
> Sriranjan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/devel/attachments/20090724/4dd91b1a/attachment.htm 


More information about the devel mailing list