[LDTP-Dev] Linux Desktop Testing Project editor
Nagappan A
nagappan at gmail.com
Mon Nov 19 09:59:55 PST 2007
Hi,
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).
Thanks
Nagappan
On Nov 19, 2007 5:14 AM, Harsha <nharsha at gmail.com> wrote:
> I feel the configure command:
>
> ./configure -prefix=/usr
>
> should be
>
> ./configure --prefix=/usr
>
> In the configure script I see:
>
> echo $ECHO_N "checking python site path... $ECHO_C" >&6; }
> pythonsitedir="`./find-python-path.py`"
> pythondir="\${libdir}/${pythonsitedir}"
> ldtpdir="\${libdir}/${pythonsitedir}/ldtplib"
>
> 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
>
> which will be appended to $libdir.
>
> There is some relation b/w vars: libdir, exec_prefix, prefix and
> ac_default_prefix.
>
> libdir='${exec_prefix}/lib'
> ...
>
> test "x$prefix" = xNONE && prefix=$ac_default_prefix
> # Let make expand exec_prefix.
> test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
>
>
> 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.
>
> Correct me if I am wrong, please.
>
> Cheers!!
> Harsha Reddy
>
>
> On Nov 19, 2007 1:24 PM, konghao <konghao at bsw.net.cn> wrote:
>
> > Thanks , I will try it.
> >
> >
> > -----Original Message-----
> > From: LaviXuGuofuX [mailto:lavixu at hotmail.com]
> > Sent: Monday, November 19, 2007 3:25 PM
> > To: konghao; Nagappan A; ldtp-dev at lists.freedesktop.org
> > Subject: RE: [LDTP-Dev] Linux Desktop Testing Project editor
> >
> >
> >
> > In that case, path to your python bin under the command-line is not to
> > the ldtp checked.
> > So, please check to where you are installed for ldtp.py.
> >
> > ----------------------------------------
> > > From: konghao at bsw.net.cn
> > > To: nagappan at gmail.com; ldtp-dev at lists.freedesktop.org
> > > Date: Mon, 19 Nov 2007 15:18:03 +0800
> > > Subject: Re: [LDTP-Dev] Linux Desktop Testing Project editor
> > >
> > > Hi,
> > >
> > > Sorry for disturbing:)I have another issue.
> > >
> > > After successful run these commands:
> > > $./configure -prefix=/usr
> > > $make
> > > #make install
> > > I installed LDTP0.9.2 in FC6 and I can launch the ldtpeditor gui.
> > > After recording steps by using ldtpeditor,I got a gcalctool.py script
> > like that:
> > >
> > ----------------------------------------------------------------------------
> >
> > > from ldtp import *
> > > from ldtputils import *
> > >
> > > try:
> > > log ("test script", "teststart")
> > >
> > > click ("frmCalculator", "btnNumeric9")
> > > click ("frmCalculator", "btnDivide")
> > > click ("frmCalculator", "btnNumeric6")
> > > click ("frmCalculator", "btnCalculateresult")
> > >
> > > log ("test script", "pass")
> > > log ("test script", "testend")
> > > except LdtpExecutionError, msg:
> > > log (str (msg), "cause")
> > > log ("test script", "fail")
> > > log ("test script", "testend")
> > > raise LdtpExecutionError (str (msg))
> > >
> > ----------------------------------------------------------------------------
> >
> > > then I type:
> > > $python ./gcalctool.py
> > >
> > > then I got the issue:
> > >
> > ---------------------------------------------------------------------------
> > > Traceback (most recent call last):
> > > File "./gca.py", line 14, in ?
> > > except LdtpExecutionError, msg:
> > > NameError: name 'LdtpExecutionError' is not defined
> > >
> > --------------------------------------------------------------------------
> > > It seems the "from ldtp import *" or "from ldtputils import *" didn't
> > work?
> > >
> > > Thanks for you attention!
> > >
> > > Konghao
> > > _______________________________________________
> > > LDTP-dev mailing list
> > > LDTP-dev at lists.freedesktop.org
> > > http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
> >
> > _________________________________________________________________
> > MSN 中文网,最新时尚生活资讯,白领聚集门户。
> > http://cn.msn.com
> > _______________________________________________
> > LDTP-dev mailing list
> > LDTP-dev at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
> >
>
>
>
> --
> Cheers!!
> Harsha Reddy
>
> ----------------------------
>
> The things that will destroy us are:
>
> politics without principle;
> pleasure without conscience;
> wealth without work;
> knowledge without character;
> business without morality;
> science without humanity;
> and worship without sacrifice.
> --Mahatma Gandhi
> _______________________________________________
> LDTP-dev mailing list
> LDTP-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
>
>
--
Linux Desktop Testing Project - http://ldtp.freedesktop.org
http://nagappanal.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/ldtp-dev/attachments/20071119/4111a22c/attachment.html
More information about the LDTP-dev
mailing list