View Single Post
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:
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 <> "": 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 Devenport
VanDyke Software
Technical Support
YouTube Channel:
Reply With Quote