establishing a connection fails due to "ImportError: cannot import name util"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-workbench (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
At start the following exception is printed to `stdout`:
['un\\"o', 'do``s']
Traceback (most recent call last):
File "/usr/lib/
import paramiko
File "/usr/lib/
from paramiko.transport import SecurityOptions, Transport
File "/usr/lib/
from paramiko.dsskey import DSSKey
File "/usr/lib/
from Crypto.PublicKey import DSA
ImportError: cannot import name DSA
Warning! Can't use connect with timeout in paramiko None
Ready.
Traceback (most recent call last):
File "/usr/share/
import paramiko
File "/usr/lib/
from paramiko.transport import SecurityOptions, Transport
File "/usr/lib/
from paramiko import util
ImportError: cannot import name util
When a connection is established a dialog "Cannot Connect to Database Server" is displayed and `** (mysql-
`sudo pip install --upgrade paramiko` and `sudo pip install --upgrade pycrypto` don't help.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: mysql-workbench 6.2.3+dfsg-7build1
Uname: Linux 4.0.0-040000-
NonfreeKernelMo
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Apr 22 13:29:41 2015
EcryptfsInUse: Yes
InstallationDate: Installed on 2015-04-02 (19 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Beta amd64 (20150326)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: mysql-workbench
UpgradeStatus: No upgrade log present (probably fresh install)
This error occurs due to an error in the `paramiko` python module depending on an error in the `pycrypto` module. Installation of `pycrypto` with `./autogen.sh && ./configure && python setup.py build && sudo python setup.py install` in source root (git commit 7acba5f3a6ff10f 1424c309d0d34d2 b713233019) and installation of `paramiko` with `python setup.py build && sudo python setup.py install` in the source root (git commit cfeca480db0116c 5c8d95ba1aaa9e5 e5e02951ed) fixes the issue.