Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scripts fail on import #54

Open
mikepowe opened this issue Dec 7, 2021 · 4 comments
Open

scripts fail on import #54

mikepowe opened this issue Dec 7, 2021 · 4 comments

Comments

@mikepowe
Copy link

mikepowe commented Dec 7, 2021

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
Copy link
Owner

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
Copy link

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
Copy link

craigah commented Mar 15, 2022

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
Copy link
Owner

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants