New question #698716 on SikuliX:
https://answers.launchpad.net/sikuli/+question/698716

Hello, I am new to sikuli. I want to connect to Remote Linux server and execute 
some Linux command from Sikuli. 
For this purpose I tried below Python code. That runs fine on the Python 
terminal that uses Python interpreter.

import paramiko
!(sys.executable} --version
host = 'IP Address'
user = '****'
pwd = '********'
c = Client(host, username=user, password=pwd, encrypt=False)
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(hostname=host, username=user, password=pwd)
shell = ssh.invoke_shell()

After that I put the same code in Sikuli. Also stored the Paramiko package 
folder at below path and executed from Sikuli: 
C:\Users\MY_USER\AppData\Roaming\Sikulix\Lib

But it is throwing Import Paramiko Errors. As I go through some blogs I 
understand that, 
Sikuli is based on Jython, not standard Python. Perhaps Python terminal uses 
Python interpreter to run the code, 
but Sikuli IDE uses Jython interpreter, and that might be the reason why it 
does not see Paramiko module and cannot run it.

Is there any other way to achieve this?

Thanks in advance.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to