ImportError: No module named asn1crypto.algos

441
August 11, 2017, at 06:10 AM

I am trying to connect to a remote machine through ssh and I try to use paramiko. and i used below mention code followed by some custom python code. .

import paramiko
def start_connection():
    u_name = 'root'
    pswd = ''
    port = 22
    r_ip = '198.x.x.x'
    sec_key = '/mycert.ppk'
    myconn = paramiko.SSHClient()
    myconn.set_missing_host_key_policy(paramiko.AutoAddPolicy())
    my_rsa_key = paramiko.RSAKey.from_private_key_file(sec_key)
    session = myconn.connect(r_ip, username =u_name, password=pswd, port=port,pkey=my_rsa_key)
...
...
follow python code to perform some actions on remote machine. 

but i got few other errors and i installed those modules, but now i am getting this weird error.

ImportError: No module named asn1crypto.algos

Can someone help me in this regard or suggest me an alternative with example to ssh a remote machine. I enter into one machine through ssh and there I want to run python script which check modification time of files on another remote machine. I am trying to add this ssh user and password in this same python script. I would be grateful for any tip or help

READ ALSO
pyplot contourf: How can I make the colors in the chart continuous?

pyplot contourf: How can I make the colors in the chart continuous?

When I use contourf, matplotlib chooses to group the values into similar regions and color those regionsHow can I make this plot show the full spectrum of different values? In the code below, I want the colors to be continuous, so that sun over the hill is a gradient...

273
How can I change date format in csv in Python 3

How can I change date format in csv in Python 3

I'm new to Python, and I have a set of data in a CSV file that I would like to change the format from

307
Tkinter Focus lost after askstring

Tkinter Focus lost after askstring

I am currently implementing a program that uses many tkinter frames and while subframe is being opened I want the superframe to be locked for the user (otherwise things will not work out)After some research I found the grab_set and grab_release method...

344