"IMPORTERROR: NO MODULE NAMED CRYPTO.PUBLICKEY" WHEN LAUNCH MYSQL WORKBENCH (Doc ID 2127039.1)

Last updated on NOVEMBER 28, 2016

Applies to:

MySQL Workbench - Version 6.3 and later
Information in this document applies to any platform.

Symptoms

Unable to Launch MySQL Workbench, received the following errors:

(mysql-workbench-bin:37261): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale_simple: assertion `dest_width > 0' failed

(mysql-workbench-bin:37261): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(mysql-workbench-bin:37261): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(mysql-workbench-bin:37261): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(mysql-workbench-bin:37261): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(mysql-workbench-bin:37261): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_pixels: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(mysql-workbench-bin:37261): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_rowstride: assertion `GDK_IS_PIXBUF (pixbuf)' failed

(mysql-workbench-bin:37261): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_n_channels: assertion `GDK_IS_PIXBUF (pixbuf)' failed

 

See the following error from mysql-workbench.log:

 

Traceback (most recent call last):
File "/usr/lib64/mysql-workbench/modules/wb_admin_ssh.py", line 32, in <module>
import paramiko
File "/usr/lib64/mysql-workbench/modules/paramiko/__init__.py", line 30, in <module>
from paramiko.transport import SecurityOptions, Transport
File "/usr/lib64/mysql-workbench/modules/paramiko/transport.py", line 49, in <module>
from paramiko.dsskey import DSSKey
File "/usr/lib64/mysql-workbench/modules/paramiko/dsskey.py", line 26, in <module>
from Crypto.PublicKey import DSA
ImportError: No module named Crypto.PublicKey
Warning! Can't use connect with timeout in paramiko None
Ready.

*** Segmentation fault
Register dump:

RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000003857049aa0
RDX: 0000000002b73bb0 RSI: fffffffffffffffd RDI: ffffffffffffffff
RBP: 0000000002b73bb0 R8 : ffffffffffffffff R9 : fffffffffffffffc
R10: 00007ffd4d834960 R11: 00000033ca02a140 R12: 0000000000000000
R13: 00000000ffffffff R14: 00000000ffffffff R15: 00000033ca277a80
RSP: 00007ffd4d834be0

RIP: 00000033cc81fb00 EFLAGS: 00010213

CS: 0033 FS: 0000 GS: 0000

Trap: 0000000e Error: 00000004 OldMask: 00000000 CR2: 00000002

FPUCW: 0000037f FPUSW: 00000000 TAG: 00000000
RIP: 00000000 RDP: 00000000

ST(0) 0000 000000000000000f ST(1) 0000 0000000000000031
ST(2) 0000 0014000000000000 ST(3) 0000 000000000000000a
ST(4) 0000 0000000000000000 ST(5) 0000 0000000000000000
ST(6) 0000 3000000000000000 ST(7) 0000 0000000000000000
mxcsr: 1fa0
XMM0: 00000000000000000000000024000000 XMM1: 00000000000000000000000024000000
XMM2: 00000000000000000000000024000000 XMM3: 00000000000000000000000024000000
XMM4: 00000000000000000000000024000000 XMM5: 00000000000000000000000024000000
XMM6: 00000000000000000000000024000000 XMM7: 00000000000000000000000024000000
XMM8: 00000000000000000000000024000000 XMM9: 00000000000000000000000024000000
XMM10: 00000000000000000000000024000000 XMM11: 00000000000000000000000024000000
XMM12: 00000000000000000000000024000000 XMM13: 00000000000000000000000024000000
XMM14: 00000000000000000000000024000000 XMM15: 00000000000000000000000024000000

Backtrace:
/usr/lib64/libgdk-x11-2.0.so.0(gdk_cairo_set_source_pixbuf+0x110)[0x33cc81fb00]
/usr/lib64/libgtk-x11-2.0.so.0[0x33cccd7434]
/usr/lib64/libgtk-x11-2.0.so.0[0x33ccd559d3]
/lib64/libgobject-2.0.so.0(g_closure_invoke+0x15e)[0x385780e3de]
/lib64/libgobject-2.0.so.0[0x385782451f]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x62b)[0x3857825bbb]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x83)[0x3857826333]
/usr/lib64/libgtk-x11-2.0.so.0[0x33cce88bef]
/usr/lib64/libgtk-x11-2.0.so.0(gtk_main_do_event+0x56f)[0x33ccd4daff]
/usr/lib64/libgdk-x11-2.0.so.0[0x33cc84634a]
/usr/lib64/libgdk-x11-2.0.so.0[0x33cc8462f7]
/usr/lib64/libgdk-x11-2.0.so.0[0x33cc8462f7]
/usr/lib64/libgdk-x11-2.0.so.0[0x33cc8462f7]
/usr/lib64/libgdk-x11-2.0.so.0[0x33cc842de7]
/usr/lib64/libgdk-x11-2.0.so.0(gdk_window_process_all_updates+0x128)[0x33cc847968]
/usr/lib64/libgtk-x11-2.0.so.0[0x33cccbf6d1]
/usr/lib64/libgdk-x11-2.0.so.0[0x33cc81ea96]
/lib64/libglib-2.0.so.0(g_main_context_dispatch+0x1f2)[0x3857040642]
/lib64/libglib-2.0.so.0[0x3857044c98]
/lib64/libglib-2.0.so.0(g_main_loop_run+0x195)[0x38570451a5]
/usr/lib64/libgtk-x11-2.0.so.0(gtk_main+0xa7)[0x33ccd4dd17]
/usr/libexec/mysql-workbench/mysql-workbench-bin(main+0x45b)[0x48c2fb]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x385541ed5d]
??:0(??)[0x48bbe9]

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms