View Single Post
  #2  
Old 03-24-2021, 09:13 PM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 1,096
That example script is written for Python 2.7 which is no longer supported in SecureCRT 9.0 and newer versions on the macOS platform.

Changing that line from...
except Exception, objErr:
...to:
except Exception as objErr:
... would certainly help.


Another change you'll likely need to make is on the line near line #461, so that instead of a <> on that line...
if g_strErrors <> "":
...you should have a != instead:
if g_strErrors != "":
There may very well be other changes needed to the script example you're trying to use in order for it to work with Python 3. When cycles become available for us to provide a python 3 version of the script, we'll update that post.

--Jake
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support
Reply With Quote