MySQL Workbench:尝试导出架构时出现错误“全局名称“self”未定义”

MySQL Workbench:尝试导出架构时出现错误“全局名称“self”未定义”

在 MySQL Workbench 中单击“导出”后,就会出现此信息。错误日志条目:

18:19:12 [ERR][wb_admin_main.py:tab_changed:211]: Unhandled exception in Admin for <wb_admin_export.WbAdminExport; proxy of <Swig Object of type 'mforms::Box *' at 0x10d767630

: Traceback (most recent call last):
  File "/Applications/MySQLWorkbench.app/Contents/Resources/plugins/wb_admin_main.py", line 208, in tab_changed
    panel.page_activated()
  File "/Applications/MySQLWorkbench.app/Contents/Resources/plugins/wb_admin_export.py", line 2255, in page_activated
    self.create_ui()
  File "/Applications/MySQLWorkbench.app/Contents/Resources/plugins/wb_admin_export.py", line 2308, in create_ui
    self.options_tab = WbAdminExportOptionsTab(self.ctrl_be.target_version, self.export_tab.mysqldump_defaults)
  File "/Applications/MySQLWorkbench.app/Contents/Resources/plugins/wb_admin_export.py", line 1997, in __init__
    mysqldump_version = get_mysqldump_version()
  File "/Applications/MySQLWorkbench.app/Contents/Resources/plugins/wb_admin_export.py", line 113, in get_mysqldump_version
    self.print_log_message("Error retrieving version from %s:\n%s (exit %s)"%(path, output, rc))
NameError: global name 'self' is not defined

答案1

重新安装 Workbench 解决了该问题。

相关内容