question

Diwakar01 avatar image
Diwakar01 asked Diwakar01 answered

Stc.sleep is not working

My script is failing on stc.sleep(2) saying import error : no module named time . This is wierd as in the same directory I can see python working ..... also stcpython is having import time in stcpython sleep function .

Also waituntilcommand in stcpython does not works as well.

What is wrong and why time module does not works through stcpython.py script

Spirent TestCenter (STC)python script
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Diwakar01 avatar image
Diwakar01 answered

Issue was with Python language only no issue with spirent . Resolved by changing to different python language installed in Linux. after which it worked properly

10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.