I scp the code to phone mem and the typed python getgps.py but it ended with the following errors:<br><br><span style="color: rgb(51, 51, 255);">Traceback (most recent call last):</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> File "getgps.py", line 192, in <module></span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> gps.print_all()</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> File "getgps.py", line 108, in print_all</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> self.print_connection()</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> File "getgps.py", line 37, in print_connection</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> constatus = self.obj.GetConnectionStatus(dbus_interface='org.freedesktop.Gypsy.Device')</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 68, in __call__</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> return self._proxy_method(*args, **keywords)</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 140, in __call__</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> **keywords)</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 622, in call_blocking</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> message, timeout)</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">dbus.exceptions.DBusException: org.freedesktop.DBus.Python.NameError: Traceback (most recent call last):</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> File "/usr/lib/python2.6/site-packages/dbus/service.py", line 702, in _message_cb</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> retval = candidate_method(self, *args, **keywords)</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> File "<string>", line 1, in <lambda></span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);"> File "/usr/lib/python2.6/site-packages/framework/resource.py", line 57, in checkedsyncmethod</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);"> dbus_error( ResourceNotEnabled( "Resource %s is not enabled, current status is '%s'" % ( self.__class__.__name__, self._resourceStatus ) ) )</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">NameError: global name 'dbus_error' is not defined</span><br><br>How shall I solve this?Please suggest.<br><br>Sriranjan<br><br><div class="gmail_quote">On Thu, Jul 23, 2009 at 11:45 PM, RANJAN <span dir="ltr"><<a href="mailto:infibit@gmail.com">infibit@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>Any ideas on how to run and use codes as this?<br><a href="http://people.debian.org/%7Eenrico/2009-06/getgps" target="_blank">http://people.debian.org/~enrico/2009-06/getgps</a><br>
<br>Sriranjan<br>
</blockquote></div><br>