Hi,<br><br>I was able to run kapula.py here <br><a href="http://lindi.iki.fi/lindi/darcs/kapula/kapula">http://lindi.iki.fi/lindi/darcs/kapula/kapula</a><br>so I think import dbus is working.<br><br>PYTHONPPATH env var is it not set by default in SHR?<br>
<br>Sriranjan<br><br><div class="gmail_quote">On Fri, Jul 24, 2009 at 12:34 AM, Marc Verwerft <span dir="ltr">&lt;<a href="mailto:marc.js.verwerft@gmail.com">marc.js.verwerft@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;">
Hello Nriranjan,<br>
<div class="im"><br>
On Thu, Jul 23, 2009 at 8:43 PM, RANJAN&lt;<a href="mailto:infibit@gmail.com">infibit@gmail.com</a>&gt; wrote:<br>
&gt; I scp the code to phone mem and the typed python getgps.py but it ended with<br>
&gt; the following errors:<br>
&gt;<br>
</div><div class="im">&gt; NameError: global name &#39;dbus_error&#39; is not defined<br>
<br>
</div>NameError typically suggests that you use something that is not<br>
defined. Either the script is not functioning or (more likely) the<br>
dbus package (import dbus) is not loaded. is your PYTHONPATH env var<br>
set? See <a href="http://docs.python.org/using/cmdline.html?highlight=pythonpath#environment-variables" target="_blank">http://docs.python.org/using/cmdline.html?highlight=pythonpath#environment-variables</a><br>
<div><div></div><div class="h5"><br>
&gt;<br>
&gt; How shall I solve this?Please suggest.<br>
&gt;<br>
&gt; Sriranjan<br>
&gt;<br>
&gt; On Thu, Jul 23, 2009 at 11:45 PM, RANJAN &lt;<a href="mailto:infibit@gmail.com">infibit@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; Any ideas on how to run and use codes as this?<br>
&gt;&gt; <a href="http://people.debian.org/%7Eenrico/2009-06/getgps" target="_blank">http://people.debian.org/~enrico/2009-06/getgps</a><br>
&gt;&gt;<br>
&gt;&gt; Sriranjan<br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br>