Bug #72194 Paramiko Version 1.13.0 not supported
Submitted: 1 Apr 2014 18:50 Modified: 18 May 2014 9:40
Reporter: Henning Habighorst Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:6.1.4 OS:Any
Assigned to:

[1 Apr 2014 18:50] Henning Habighorst
Description:
I found out the hard way that paramiko 1.13.0 is not supported by mysql-workbench.

I noticed after establishing a connection that the "Server" Menu was empty, and an attempt in getting an "Management" Tab lead to an empty "frame".

How to repeat:
Install paramiko 1.13.0 and try to run mysql-workbench.

The "Server" tab opens, but has no entries.

The "Management" page opens, but is greyed out.

Enabling debug shows the import error in paramiko:

mysql-workbench --log-to-stderr --log-level=debug3

Following is the "interesting" line:
20:27:42 [ERR][         python]: Error importing Python module /usr/lib64/mysql-workbench/modules/wb_admin_grt.py
20:27:42 [ERR][         python]: Traceback (most recent call last):
...
20:27:42 [ERR][         python]:   File "/usr/lib64/mysql-workbench/modules/wb_admin_ssh.py", line 71, in <module>
20:27:42 [ERR][         python]:     from paramiko.common import sys, MSG_CHANNEL_OPEN
20:27:42 [ERR][         python]: ImportError: cannot import name sys
20:27:42 [ERR][            grt]: Failed loading module '/usr/lib64/mysql-workbench/modules/wb_admin_grt.py' (python)

Suggested fix:
less -N /usr/lib64/mysql-workbench/modules/wb_admin_ssh.py
71     from paramiko.common import sys, MSG_CHANNEL_OPEN

This line leads to the import error. 

The import sys seems superfluous - if I remove the line, I can still connect via SSH with paramiko versions 1.12.0, 1.11.0, 1.10.0 and 1.13.0.

So instead of checking for a paramiko version < 1.13.0 I suggest removing the import sys line.
[1 Apr 2014 18:54] Henning Habighorst
from paramiko.common import sys, MSG_CHANNEL_OPEN

should become

from paramiko.common import MSG_CHANNEL_OPEN

Comment saying "remove import sys line" is a bit misleading, sorry.
[18 May 2014 9:40] Henning Habighorst
Silently fixed in 6.1.6.