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

Informational: invoke_shell() broke in Paramiko 2.1 #340

Closed
ebeahan opened this issue Dec 9, 2016 · 1 comment
Closed

Informational: invoke_shell() broke in Paramiko 2.1 #340

ebeahan opened this issue Dec 9, 2016 · 1 comment

Comments

@ebeahan
Copy link
Contributor

ebeahan commented Dec 9, 2016

Paramiko 2.1 was released recently (on 12/9/16) and due to a bug causes the following exception when running ConnectHandler to establish a device connection:

conn = ConnectHandler(**device)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "Envs/tmp-56d6d2813a52c68e/lib/python3.5/site-packages/netmiko/ssh_dispatcher.py", line 96, in ConnectHandler
    return ConnectionClass(*args, **kwargs)
  File "Envs/tmp-56d6d2813a52c68e/lib/python3.5/site-packages/netmiko/base_connection.py", line 89, in __init__
    self.establish_connection()
  File "Envs/tmp-56d6d2813a52c68e/lib/python3.5/site-packages/netmiko/base_connection.py", line 411, in establish_connection
    self.remote_conn = self.remote_conn_pre.invoke_shell()
  File "Envs/tmp-56d6d2813a52c68e/lib/python3.5/site-packages/paramiko/client.py", line 467, in invoke_shell
    chan.update_environment_variables(environment or {})
AttributeError: 'Channel' object has no attribute 'update_environment_variables'

The issue is internal to Paramiko, and I've opened an issue on their end:

paramiko/paramiko#859

@ebeahan
Copy link
Contributor Author

ebeahan commented Dec 13, 2016

This issue was resolved: paramiko/paramiko#859 (comment)

@ebeahan ebeahan closed this as completed Dec 13, 2016
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

1 participant