Hi,<br><br>If the prefix is not set, then by default it goes to /usr/local/lib/python/site-packages directory. We are not using python distutils, so the new path is not getting updated in PYTHONPATH. Probably we need to update it, somehow in the script (
find-python-path.py).<br><br>Thanks<br>Nagappan<br><br><div class="gmail_quote">On Nov 19, 2007 5:14 AM, Harsha &lt;<a href="mailto:nharsha@gmail.com">nharsha@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I feel the configure command: <br><br>./configure -prefix=/usr<br><br>should be <br><br>./configure --prefix=/usr<br><br>In the configure script I see:<br><br>echo $ECHO_N &quot;checking python site path... $ECHO_C&quot; &gt;&amp;6; }
<br>pythonsitedir=&quot;`./find-python-path.py`&quot;<br>pythondir=&quot;\${libdir}/${pythonsitedir}&quot;<br>ldtpdir=&quot;\${libdir}/${pythonsitedir}/ldtplib&quot;<br><br>The script &quot;find-python-path.py (present in the ldtp source directory) is run by the configure script, and this python scripts just returns a relative path: lib\site-packages
<br><br>which will be appended to $libdir.<br><br>There is some relation b/w vars: libdir, exec_prefix, prefix and ac_default_prefix.<br><br>libdir=&#39;${exec_prefix}/lib&#39;<br>...<br><br>test &quot;x$prefix&quot; = xNONE &amp;&amp; prefix=$ac_default_prefix
<br># Let make expand exec_prefix.<br>test &quot;x$exec_prefix&quot; = xNONE &amp;&amp; exec_prefix=&#39;${prefix}&#39;<br><br><br>which in effect is installing in the ldtp python modules in a wrong path; which is not visible to the python interpreter. It is required to make sure that all the ldtp modules are visible to the python interpreter.
<br><br>Correct me if I am wrong, please.<br><br>Cheers!!<br>Harsha Reddy<div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Nov 19, 2007 1:24 PM, konghao &lt;<a href="mailto:konghao@bsw.net.cn" target="_blank">
konghao@bsw.net.cn</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks , I will try it.<br><div><div></div><div><br><br>-----Original Message-----<br>From: LaviXuGuofuX [mailto:<a href="mailto:lavixu@hotmail.com" target="_blank">lavixu@hotmail.com</a>]<br>Sent: Monday, November 19, 2007 3:25 PM
<br>To: konghao; Nagappan A; <a href="mailto:ldtp-dev@lists.freedesktop.org" target="_blank">ldtp-dev@lists.freedesktop.org</a><br>Subject: RE: [LDTP-Dev] Linux Desktop Testing Project editor<br><br><br><br>In that case, path to your python bin under the command-line is not to the ldtp checked.
<br>So, please check to where you are installed for ldtp.py.<br><br>----------------------------------------<br>&gt; From: <a href="mailto:konghao@bsw.net.cn" target="_blank">konghao@bsw.net.cn</a><br>&gt; To: <a href="mailto:nagappan@gmail.com" target="_blank">

nagappan@gmail.com</a>; <a href="mailto:ldtp-dev@lists.freedesktop.org" target="_blank">ldtp-dev@lists.freedesktop.org</a><br>&gt; Date: Mon, 19 Nov 2007 15:18:03 +0800<br>&gt; Subject: Re: [LDTP-Dev] Linux Desktop Testing Project editor
<br>&gt;<br>&gt; Hi,<br>&gt;<br>&gt; Sorry for disturbing:)I have another issue.<br>&gt;<br>&gt; After successful run these commands:<br>&gt; $./configure -prefix=/usr<br>&gt; $make<br>&gt; #make install<br>&gt; I installed 
LDTP0.9.2 in FC6 and I can launch the ldtpeditor gui.<br>&gt; After recording steps by using ldtpeditor,I got &nbsp;a gcalctool.py script like that:<br>&gt; ----------------------------------------------------------------------------
<br>&gt; from ldtp import *<br>&gt; from ldtputils import *<br>&gt;<br>&gt; try:<br>&gt; &nbsp; &nbsp; &nbsp; log (&quot;test script&quot;, &quot;teststart&quot;)<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; click (&quot;frmCalculator&quot;, &quot;btnNumeric9&quot;)
<br>&gt; &nbsp; &nbsp; &nbsp; click (&quot;frmCalculator&quot;, &quot;btnDivide&quot;)<br>&gt; &nbsp; &nbsp; &nbsp; click (&quot;frmCalculator&quot;, &quot;btnNumeric6&quot;)<br>&gt; &nbsp; &nbsp; &nbsp; click (&quot;frmCalculator&quot;, &quot;btnCalculateresult&quot;)
<br>&gt;<br>&gt; &nbsp; &nbsp; &nbsp; log (&quot;test script&quot;, &quot;pass&quot;)<br>&gt; &nbsp; &nbsp; &nbsp; log (&quot;test script&quot;, &quot;testend&quot;)<br>&gt; except LdtpExecutionError, msg:<br>&gt; &nbsp; &nbsp; &nbsp; log (str (msg), &quot;cause&quot;)
<br>&gt; &nbsp; &nbsp; &nbsp; log (&quot;test script&quot;, &quot;fail&quot;)<br>&gt; &nbsp; &nbsp; &nbsp; log (&quot;test script&quot;, &quot;testend&quot;)<br>&gt; &nbsp; &nbsp; &nbsp; raise LdtpExecutionError (str (msg))<br>&gt; ----------------------------------------------------------------------------
<br>&gt; then I type:<br>&gt; $python ./gcalctool.py<br>&gt;<br>&gt; then I got the issue:<br>&gt; ---------------------------------------------------------------------------<br>&gt; Traceback (most recent call last):<br>

&gt; &nbsp; File &quot;./gca.py&quot;, line 14, in ?<br>&gt; &nbsp; &nbsp; except LdtpExecutionError, msg:<br>&gt; NameError: name &#39;LdtpExecutionError&#39; is not defined<br>&gt; --------------------------------------------------------------------------
<br>&gt; It seems the &quot;from ldtp import *&quot; or &quot;from ldtputils import *&quot; didn&#39;t work?<br>&gt;<br>&gt; Thanks for you attention!<br>&gt;<br>&gt; Konghao<br>&gt; _______________________________________________
<br>&gt; LDTP-dev mailing list<br>&gt; <a href="mailto:LDTP-dev@lists.freedesktop.org" target="_blank">LDTP-dev@lists.freedesktop.org</a><br>&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev" target="_blank">
http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
</a><br><br>_________________________________________________________________<br>MSN 中文网,最新时尚生活资讯,白领聚集门户。<br><a href="http://cn.msn.com" target="_blank">http://cn.msn.com</a><br>_______________________________________________
<br>LDTP-dev mailing list<br><a href="mailto:LDTP-dev@lists.freedesktop.org" target="_blank">LDTP-dev@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
</a><br></div></div></blockquote></div><br><br clear="all"><br></div></div>-- <br>Cheers!!<br>Harsha Reddy<br><br>----------------------------<br><br>The things that will destroy us are:<br> <br>politics without principle; 
<br>pleasure without conscience; 
<br>wealth without work; <br>knowledge without character; <br>business without morality; <br>science without humanity; <br>and worship without sacrifice.<br>--Mahatma Gandhi
<br>_______________________________________________<br>LDTP-dev mailing list<br><a href="mailto:LDTP-dev@lists.freedesktop.org">LDTP-dev@lists.freedesktop.org</a><br><a href="http://lists.freedesktop.org/mailman/listinfo/ldtp-dev" target="_blank">
http://lists.freedesktop.org/mailman/listinfo/ldtp-dev</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Linux Desktop Testing Project - <a href="http://ldtp.freedesktop.org">http://ldtp.freedesktop.org</a><br>
<a href="http://nagappanal.blogspot.com">http://nagappanal.blogspot.com</a>