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

Importing library 'SSHLibrary' failed: ModuleNotFoundError: No module named 'SSHLibrary' #406

Open
holicwings opened this issue Feb 4, 2022 · 4 comments

Comments

@holicwings
Copy link

Followed all the steps here https://giters.com/robotframework/SSHLibrary#support

Got the following versions:
roboframework : 4.1.3
python : 3.9.7
ssh library : 3.8.0
paramiko : 2.9.2
pscp : release 0.76
win_inet_pton : 1.1.0

Already restarted, but when executing a simple script of open connection, it is still showing Module Not Found
[ ERROR ] Error in file 'c:\Users\OneDrive\robotAuto\App_Testsuites\Regression\ssh.robot' on line 8: Importing library 'SSHLibrary' failed: ModuleNotFoundError: No module named 'SSHLibrary'

the script which i just copied on the site
*** Settings ***
Documentation This example demonstrates executing a command on a remote machine
... and getting its output.
...
... Notice how connections are handled as part of the suite setup and
... teardown. This saves some time when executing several test cases.

Library SSHLibrary

*** Variables ***
${HOST} localhost
${USERNAME} test
${PASSWORD} test

*** Test Cases ***
Execute Command And Verify Output
[Documentation] Execute Command can be used to run commands on the remote machine.
... The keyword returns the standard output by default.
Open Connection And Log In
${output}= Execute Command echo Hello SSHLibrary!
Should Be Equal ${output} Hello SSHLibrary!

*** Keywords ***
Open Connection And Log In
Open Connection ${HOST}
Login ${USERNAME} ${PASSWORD}

I'm at lost, I don't know the root cause of this anymore.

@fzs1994
Copy link

fzs1994 commented Feb 9, 2023

I'm also having the same issue. Did you managed to get it fixed?

@alanplord
Copy link

was there a fix found for this? I am also having this exact same issue....

@fzs1994
Copy link

fzs1994 commented Aug 4, 2023

@alanplord Yes, I got it fixed by adding ssh library in conda.yaml file under dependencies:

image

@alanplord
Copy link

@fzs1994 Excellent!! Thanks so much for the quick response!

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

3 participants