<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2800.1522" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 9pt ËÎÌå"><FONT size=2>Hi Premkumar,Nags</FONT></DIV>
<DIV style="FONT: 9pt ËÎÌå"><FONT size=2></FONT> </DIV>
<DIV style="FONT: 9pt ËÎÌå"><FONT size=2>According to your advice,I hava cross
checked it.From python prompt,I input the following command one by
one,</FONT></DIV><FONT size=2></FONT></BLOCKQUOTE>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><FONT size=2>
<DIV><FONT size=2>from ldtp import *<BR>from ldtputils import *<BR>import sys,
string, os, commands, time, filecmp</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>initappmap ('nautilus.map')<BR>launchapp
('nautilus')</FONT></DIV></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>it is successful in Suse9.3,and failed in my co-create
linux.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>in my co-create linxu,error happened:</FONT></DIV>
<DIV><FONT size=2>>>> from ldtp import *<BR>>>> from
ldtputils import *<BR>Traceback (most recent call last):<BR> File
"<stdin>", line 1, in ?<BR> File
"/usr/lib/python2.4/site-packages/ldtputils.py", line 31, in
?<BR> log ('Python-Imaging package not installed',
'error')<BR>NameError: name 'log' is not defined</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><BR></DIV>Hi Nags/Victor,<BR><BR>I checked the ldtputils.py file and
there is a line "import ldtp". So I am not sure why Victor encountred such
error.I am afraid ldtp.so file available in Victor's comp is not proper. To
cross check it, Victor can try some sample ldtp commands like initappmap,
click etc., from python prompt. If "from ldtp import *", works from python
prompt then it means things are fine. lets us wait for Victor to try
this.<BR><BR>Regards<BR>Premkumar J<BR><BR>
<DIV><SPAN class=gmail_quote>On 11/17/05, <B
class=gmail_sendername>Nagappan</B> <<A
href="mailto:anagappan@novell.com">anagappan@novell.com</A>> wrote:</SPAN>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi
Victor,<BR> Looks like this line is missing in the
script 'from ldtp import *' ?<BR>Python imaging is required only when you
are planing to compare two<BR>images. If you are not planing to use that
functionality you can just <BR>ignore the
message.<BR><BR>Thanks<BR>Nagappan<BR><BR>½ª¹úΰ
wrote:<BR>><BR>><BR>><BR>><BR>>
Thanks!<BR>> The two
files ldtp.so and ldtputils.py just in the
right<BR>>
place"/usr/lib/python2.4/site-packages".But when I input the
<BR>> command 'python
nautilus.py',it uses python2.3(there are
two<BR>> pythons in my
linux).So I use the command
'/usr/bin/python2.4<BR>>
nautilus.py'this time,new error happended:<BR>>
<BR>><BR>> Traceback
(most recent call
last):<BR>>
File "nautilus.py", line 4, in
?<BR>>
from ldtputils import
*<BR>> File
'/usr/lib/python2.4/site-packages/ldtputils.py" ,line
<BR>> 31,in
?<BR>>
log('Python-Imaging package not
installed','error')<BR>>
NameError: name 'log' is not
defined<BR>><BR>> Should
I install the package'Python-Imaging'?On suse9.3
there<BR>> isn't so much
trouble.<BR>><BR>><BR>>
Victor Jiang<BR>><BR>><BR>>
------------------------------------------------------------------------<BR>><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">http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
</A><BR>><BR><BR>--<BR>Nagappan A <<A
href="mailto:anagappan@novell.com">anagappan@novell.com</A>><BR>Novell
Software Development (I) Pvt. Ltd.<BR>Linux Desktop Testing Project - <A
href="http://gnomebangalore.org/ldtp/index.php/Main_Page">http://gnomebangalore.org/ldtp/index.php/Main_Page</A><BR><A
href="http://nagappanal.blogspot.com/">http://nagappanal.blogspot.com/</A><BR><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>