On Thu, 2010-08-19 at 14:35 +0530, divya wrote:
> Hi,
> 
> Autotest throws the following error while importing git
>        from autotest_lib.server import git
>       ImportError: No module named server
> 
> 
> p55alp2:/home/divya/autotest-client-0.12.0/tests/ltp # ../../bin/autotest 
> control
> 12:51:21 INFO | Writing results to 
> /home/divya/autotest-client-0.12.0/results/default
> 12:51:21 INFO | Initializing the state engine
> 12:51:21 INFO | Symlinking init scripts
> 12:51:21 ERROR| [stderr] ln: creating symbolic link `/etc/rc3.d/S99autotest': 
> No such file or directory
> 12:51:21 WARNI| Linking init scripts failed
> 12:51:25 INFO | START ----    ----    timestamp=1282202485    localtime=Aug 
> 19 12:51:25       
> 12:51:25 INFO |       START   ltp     ltp     timestamp=1282202485    
> localtime=Aug 19 12:51:25       
> 12:51:25 ERROR| child process failed
> 12:51:25 INFO |               ERROR   ltp     ltp     timestamp=1282202485    
> localtime=Aug 19 12:51:25       Unhandled str: Unhandled ImportError: No 
> module named server
>                 Traceback (most recent call last):
>                   File "/home/divya/autotest-client-0.12.0/bin/parallel.py", 
> line 18, in fork_start
>                     l()
>                   File "/home/divya/autotest-client-0.12.0/bin/job.py", line 
> 473, in<lambda>
>               l = lambda : test.runtest(self, url, tag, args, dargs)
>                   File "/home/divya/autotest-client-0.12.0/bin/test.py", line 
> 96, in runtest
>                     job.sysinfo.log_after_each_iteration)
>                   File 
> "/home/divya/autotest-client-0.12.0/common_lib/test.py", line 642, in runtest
>                     local_namespace, global_namespace)
>                   File "<string>", line 1, in<module>
>               File "/home/divya/autotest-client-0.12.0/tests/ltp/ltp.py", 
> line 4, in<module>
>               from autotest_lib.server import git
>                 ImportError: No module named server
>               
>                 None
> 12:51:25 INFO |       END ERROR       ltp     ltp     timestamp=1282202485    
> localtime=Aug 19 12:51:25       
> 12:51:25 INFO | END GOOD      ----    ----    timestamp=1282202485    
> localtime=Aug 19 12:51:25
> 
> Pls let me know from which module to import git.


Divya, you are using the autotest client here, so the module you are
looking for can't possibly be loaded, and it's plain wrong to try
importing server side APIs on client tests.

Please explain what you are trying to accomplish, and we can come up
with a shared API that can be used by both server and the client. It
will only be available on future versions of autotest though.

Cheers,

Lucas

> Thanks
> Divya
> 
> _______________________________________________
> Autotest mailing list
> [email protected]
> http://test.kernel.org/cgi-bin/mailman/listinfo/autotest


_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to