question

arnolmi avatar image
arnolmi asked stebhla answered

Trying to run a script for the python API causes the error "Failed to rerieve supported phy types from RCM"

stc = StcPython.StcPython() No LSB modules are available stc.perform('LoadFromDatabaseCommand', DatabaseConnectionString='/home/adtran/test.tcc') hProject = stc.get('system1', 'children-project') portList = stc.get(hProject, 'children-port') stc.apply() stc.perform('attachPorts', portList=portList, autoConnect='TRUE') 12:07:34.115 ERROR - in perform: One or more ports could not be brought online. Please relocate the affected port(s) or correct the following problem(s). Failed to retrieve supported phy types from RCM Traceback (most recent call last): File "", line 1, in File "StcPython.py", line 105, in perform retSvec = self.stcInt.salPerform(cmd, svec) RuntimeError: in perform: One or more ports could not be brought online. Please relocate the affected port(s) or correct the following problem(s). Failed to retrieve supported phy types from RCM The same .tcc works if I do this in TCL. Any help is much appreciated. We are running Spirent TestCenter 4.03.0496.0000 Thanks.
Spirent TestCenter (STC)python
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

·
stebhla avatar image
stebhla answered
Check for the python Platform used. STC API's do not support 64 bit python, Need to install 32bit Python. Refer to below KB article for your reference. http://docid.spirent.com/KNI12501 Regards Sohel
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.