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 &quot;getgps.py&quot;, line 192, in &lt;module&gt;</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 &quot;getgps.py&quot;, 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 &quot;getgps.py&quot;, 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=&#39;org.freedesktop.Gypsy.Device&#39;)</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">  File &quot;/usr/lib/python2.6/site-packages/dbus/proxies.py&quot;, 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 &quot;/usr/lib/python2.6/site-packages/dbus/proxies.py&quot;, 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 &quot;/usr/lib/python2.6/site-packages/dbus/connection.py&quot;, 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 &quot;/usr/lib/python2.6/site-packages/dbus/service.py&quot;, 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 &quot;&lt;string&gt;&quot;, line 1, in &lt;lambda&gt;</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">  File &quot;/usr/lib/python2.6/site-packages/framework/resource.py&quot;, line 57, in checkedsyncmethod</span><br style="color: rgb(51, 51, 255);"><span style="color: rgb(51, 51, 255);">    dbus_error( ResourceNotEnabled( &quot;Resource %s is not enabled, current status is &#39;%s&#39;&quot; % ( self.__class__.__name__, self._resourceStatus ) ) )</span><br style="color: rgb(51, 51, 255);">
<span style="color: rgb(51, 51, 255);">NameError: global name &#39;dbus_error&#39; 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">&lt;<a href="mailto:infibit@gmail.com">infibit@gmail.com</a>&gt;</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>