Python version on XMC
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎07-10-2018 08:12 AM
Hello,
what version of python is used in the XMC scripting engine?
As I see both versions (Python2 and Python3) are available on XMC ubuntu.
Best regards
Stephan
what version of python is used in the XMC scripting engine?
As I see both versions (Python2 and Python3) are available on XMC ubuntu.
Best regards
Stephan
Regards
Stephan
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎07-11-2018 10:02 AM
Hello tknv,
thank you very much for your detailed answer.
Do you have an hint for my other question here, too?
https://community.extremenetworks.com/extreme/topics/xmc-and-python-install-additional-modules
As I can see in you comment there is a xmclib with python modules. Do I have install new modules in there?
Best regards
Stephan
thank you very much for your detailed answer.
Do you have an hint for my other question here, too?
https://community.extremenetworks.com/extreme/topics/xmc-and-python-install-additional-modules
As I can see in you comment there is a xmclib with python modules. Do I have install new modules in there?
Best regards
Stephan
Regards
Stephan
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎07-10-2018 11:03 PM
Hi Stephan,
First possible different version by XMC version and running environment.
But able to check current running Python version by sys.version.
Sample code.
#@METADATASTART #@DetailDescriptionStart ################################################################ # System Script # # Script : Check ver. # Revision : 1.0 # Last updated : 7/12/2018 # Purpose : Check running Py version # ################################################################ #@DetailDescriptionEnd #@ScriptDescription "Check ver." #@SectionStart ( description = "Check running Python version.") #@SectionEnd #@MetaDataEnd import sys sys.path.append('/usr/local/Extreme_Networks/NetSight/appdata/scripting') import os from xmclib import emc_vars from xmclib import logger print("Running Python version is: %s" % sys.version)
And run it at XMC: Tasks > Scripts.
Below is result.
Running Python version is: 2.7.1 (, Jul 8 2017, 22:14:05)
First possible different version by XMC version and running environment.
But able to check current running Python version by sys.version.
Sample code.
#@METADATASTART #@DetailDescriptionStart ################################################################ # System Script # # Script : Check ver. # Revision : 1.0 # Last updated : 7/12/2018 # Purpose : Check running Py version # ################################################################ #@DetailDescriptionEnd #@ScriptDescription "Check ver." #@SectionStart ( description = "Check running Python version.") #@SectionEnd #@MetaDataEnd import sys sys.path.append('/usr/local/Extreme_Networks/NetSight/appdata/scripting') import os from xmclib import emc_vars from xmclib import logger print("Running Python version is: %s" % sys.version)
And run it at XMC: Tasks > Scripts.
Below is result.
Running Python version is: 2.7.1 (, Jul 8 2017, 22:14:05)
