Python Incompatibility - Spirent STC 2G Shell #39
Unanswered
Quali-Community
asked this question in
Forums
Replies: 2 comments
-
|
This is critical for TSI customers as well. TSI Support ([email protected]) - 09/29/2020 03:14 AM
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hi, It looks like the python version of the driver is set to Python 2. Please change it to Python 3 and try again. Yoram Shamir (Yoram.S) - 10/04/2020 04:13 AM
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Yoram Shamir, I tried to use the Spirent Chassis 2G shell recently on a project and encountered an issue while attempting to add a Spirent Chassis via the CloudShell portal (v2020.1):
Discovery failed for resource 'Spirent Chassis 11U': 'get_inventory' command failed with 'General Execution' error. Description: Failed to start execution: Unexpected error - requested contract method raised unknown fault of type SyntaxError. original error: invalid syntax (tgn_utils.py, line 71). The resource is now excluded.
Basically, the shell zip file 'Spirent.TestCenter.Controller.Shell.2G.zip' file available at this link installs Python 3 dependencies though the shell is written to execute using Python 2:
The version of tgn_utils.py installed uses a function annotation -> at line 71 and this was incompatible with the shell version available in the Quali Community repo.
My work colleague advised of a fix which required updating the requirements file found in the shell so it uses pytrafficgen<3.0 and this ensures python 2 dependencies are installed.
I can see the version of the shell on GitHub is set up to use python 3 and so this may be up to date. Please can you update the downlink link for the 'Spirent.TestCenter.Controller.Shell.2G.zip' file so it's using the latest/working release?
Attachments:
Bade Oyewumi (bade.oyewumi) - 09/22/2020 08:53 AM
· 5241 ·
Beta Was this translation helpful? Give feedback.
All reactions