Closed ravichandra66 closed 9 years ago
Hello @ravichandra66 ,
The error is ImportError: cannot import name MYSSHClient
.
You don't have the file MYSSHClient
in the libraries.
The tests are run in a separated environment, where you cannot easily access other system files.
Why don't you use MYSSHClient
file in your libraries list ?
MYSSHClient libraries loated the in newoftest/lib/common.py.
Please find attahment of
i am getting error like
ERROR Cannot import the Common libraries! cannot import name iniparser
Hello @ravichandra66
This is a rare issue that you are having; you have created a library called "common" that is in conflict with Twisters "common" library that is absolutely essential for running tests. Try to rename common.py to common1.py.
Please find the error log
TWISTER_PATH is set to
/home/user/twister
.EP Info: Connecting to the Central Engine... EP Debug: Connected and authenticated to CE at
10.201.10.64:8000
.EP Debug: Creating a threaded logger... EP Debug: Created the logger.
~ Start the Execution Process ~ ~ User: user ; EP: controller_EP-1001 ; CE path: 10.201.10.64:8000 ~
Downloading library
TscCommonLib.py
... ... all libraries downloaded.EP Info: Start running the tests!
===== ===== ===== ===== ===== Starting suite
101 - S1
===== ===== ===== ===== =====Downloading library
TscFtpLib.py
... Downloading libraryTscSshLib.py
... Downloading libraryTscStepLib.py
... Downloading libraryTscTelnetLib.py
... Downloading libraryTscThreadsLib.py
... Downloading libraryTscUnitTestLib.py
... Downloading librarynewoftest/lib/case_one.py
... Downloading librarynewoftest/lib/common.py
... Downloading librarynewoftest/lib/dpctl.py
... Downloading librarynewoftest/lib/of_one.py
... Downloading librarynewoftest/lib/ofctl.py
... Downloading librarynewoftest/lib/ovs_config.py
... Downloading librarynewoftest/lib/sshtestcase.py
... Downloading librarynewoftest/lib/tw_of_one.py
... Downloading librarynewoftest/lib/vsctl.py
... Flattennewoftest/lib/case_one.py
. Flattennewoftest/lib/sshtestcase.py
. Flattennewoftest/lib/vsctl.py
. Flattennewoftest/lib/tw_of_one.py
. Flattennewoftest/lib/common.py
. Flattennewoftest/lib/ofctl.py
. Flattennewoftest/lib/ovs_config.py
. Flattennewoftest/lib/of_one.py
. Flattennewoftest/lib/dpctl.py
.<<< START filename:
1001:/home/user/oftest//newoftest/lib/tw_of_one.py
>>>Test case exception: File "/home/user/twister/client/executionprocess/ExecutionProcess.py", line 1178, in tests result = current_runner._eval(str_to_execute, globs, args) File "/home/user/twister/client/executionprocess/RunnerClasses.py", line 253, in _eval execfile(fpath, globs_copy) File "/home/user/twister/.twister_cache/controller_EP-1001/tw_of_one.py", line 9, in
from common import MYSSHClient
ImportError: cannot import name MYSSHClient
Test statistics: Start time 2015-02-26 14:54:46 -- End time 2015-02-26 14:54:46 -- 0.09 sec.
<<< END filename:
1001:/home/user/oftest//newoftest/lib/tw_of_one.py
>>>. . . All tests done . . .