jamiecaesar / securecrt-tools

SecureCRT scripts, written in Python, for doing various tasks when connected to Cisco equipment.
Apache License 2.0
246 stars 78 forks source link

scripts fail on import #54

Open mikepowe opened 2 years ago

mikepowe commented 2 years ago

This might be a nubb error, but no matter which script I attempt to run in SecureCRT, I get an error that points to a module import. I didn't see any instructions on installing packages with PIP, and I assume that's why the scripts are failing?

jamiecaesar commented 2 years ago

Which version of SecureCRT are you running? SecureCRT comes with its own python interpreter bundled with the application and so you can't pip install anything, unfortunately. Although, I believe in the more recent versions, you have the ability to use your own python environment instead of one that is bundled in, but I haven't had time to play with that feature yet.

If you don't mind posting the full error message you are getting, as well as the version of SecureCRT you are running, hopefully that will help me narrow down the issue for you.

rsephiroth commented 2 years ago

yes,using scripts on osx and got import fail too, Error: invalid syntax File: /Users/Documents/Python/securecrt-tools-master/m_cdp_to_csv.py Line: 17

from securecrt_tools import scripts

securecrt:Version 9.1.1 (build 2638) python version 3.8

craigah commented 2 years ago

Still open issue on latest SecureCRT version (9.1.1). Seems to be an issue with their interpreter. Cannot get any package imports to work.

jamiecaesar commented 2 years ago

Thanks for the info. I'll have to get my hands on the newer version of SecureCRT so I can figure out how things need to change to handle the new way they handle Python scripts. Also, FYI I have some travel coming up and my work projects don't currently use these scripts, so while I'll try to get these fixes done it may not be a super-quick turn-around. Apologies!