Skip to content

AttributeError: module 'redssh.clients' has no attribute 'default_client' #9

Description

@netsamir

Hi,

I have just downloaded RedExpect which raises an exception from RedSSH.

[nav] In [11]: import redssh

[ins] In [12]:  rs = redssh.RedSSH()
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-12-5b77a74c0c4c> in <module>
----> 1 rs = redssh.RedSSH()

/home/e83/projects/swsh/local/lib64/python3.6/site-packages/redssh/redssh.py in __init__(self, encoding, terminal, known_hosts, ssh_host_key_verification, ssh_keepalive_interval, set_flags, method_preferences, callbacks, auto_terminate_tunnels, tcp_nodelay)
     38         ssh_keepalive_interval=0.0,set_flags={},method_preferences={},callbacks={},auto_terminate_tunnels=False,tcp_nodelay=False):
     39         self.debug = False
---> 40         self.client = self.pick_client()(encoding=encoding,terminal=terminal,known_hosts=known_hosts,ssh_host_key_verification=ssh_host_key_verification,
     41             ssh_keepalive_interval=ssh_keepalive_interval,set_flags=set_flags,method_preferences=method_preferences,callbacks=callbacks,
     42             auto_terminate_tunnels=auto_terminate_tunnels,tcp_nodelay=tcp_nodelay)

/home/e83/projects/swsh/local/lib64/python3.6/site-packages/redssh/redssh.py in pick_client(self, ssh_client, custom_ssh_clients)
     44
     45     def pick_client(self,ssh_client=None,custom_ssh_clients={}):
---> 46         default_client = clients.default_client
     47         if ssh_client==None:
     48             ssh_client = default_client

AttributeError: module 'redssh.clients' has no attribute 'default_client'

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions