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 <<a href="mailto:nharsha@gmail.com">nharsha@gmail.com</a>> 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 "checking python site path... $ECHO_C" >&6; }
<br>pythonsitedir="`./find-python-path.py`"<br>pythondir="\${libdir}/${pythonsitedir}"<br>ldtpdir="\${libdir}/${pythonsitedir}/ldtplib"<br><br>The script "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='${exec_prefix}/lib'<br>...<br><br>test "x$prefix" = xNONE && prefix=$ac_default_prefix
<br># Let make expand exec_prefix.<br>test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'<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 <<a href="mailto:konghao@bsw.net.cn" target="_blank">
konghao@bsw.net.cn</a>> 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>> From: <a href="mailto:konghao@bsw.net.cn" target="_blank">konghao@bsw.net.cn</a><br>> 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>> Date: Mon, 19 Nov 2007 15:18:03 +0800<br>> Subject: Re: [LDTP-Dev] Linux Desktop Testing Project editor
<br>><br>> Hi,<br>><br>> Sorry for disturbing:)I have another issue.<br>><br>> After successful run these commands:<br>> $./configure -prefix=/usr<br>> $make<br>> #make install<br>> I installed
LDTP0.9.2 in FC6 and I can launch the ldtpeditor gui.<br>> After recording steps by using ldtpeditor,I got a gcalctool.py script like that:<br>> ----------------------------------------------------------------------------
<br>> from ldtp import *<br>> from ldtputils import *<br>><br>> try:<br>> log ("test script", "teststart")<br>><br>> click ("frmCalculator", "btnNumeric9")
<br>> click ("frmCalculator", "btnDivide")<br>> click ("frmCalculator", "btnNumeric6")<br>> click ("frmCalculator", "btnCalculateresult")
<br>><br>> log ("test script", "pass")<br>> log ("test script", "testend")<br>> except LdtpExecutionError, msg:<br>> log (str (msg), "cause")
<br>> log ("test script", "fail")<br>> log ("test script", "testend")<br>> raise LdtpExecutionError (str (msg))<br>> ----------------------------------------------------------------------------
<br>> then I type:<br>> $python ./gcalctool.py<br>><br>> then I got the issue:<br>> ---------------------------------------------------------------------------<br>> Traceback (most recent call last):<br>
> File "./gca.py", line 14, in ?<br>> except LdtpExecutionError, msg:<br>> NameError: name 'LdtpExecutionError' is not defined<br>> --------------------------------------------------------------------------
<br>> It seems the "from ldtp import *" or "from ldtputils import *" didn't work?<br>><br>> Thanks for you attention!<br>><br>> Konghao<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><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>