mysqldiff No module named utilities.common.tools

Traceback (most recent call last):
  File "/bin/mysqldiff", line 28, in <module>
    from mysql.utilities.common.tools import check_python_version
ImportError: No module named utilities.common.tools

直接用yum安装的mysqldiff会提示No module named utilities.common.tools

解决方法:

yum remove mysql-connector-python -y#centos 7
rpm -Uvh http://repo.mysql.com/yum/mysql-connectors-community/el/7/x86_64/mysql-connector-python-2.1.8-1.el7.x86_64.rpm#centos 6rpm -Uvh http://repo.mysql.com/yum/mysql-connectors-community/el/6/x86_64/mysql-connector-python-2.1.8-1.el6.x86_64.rpmyum install mysql-utilities

原文地址:https://www.cnblogs.com/chenminklutz/p/10638050.html

时间: 2024-10-10 13:32:20

mysqldiff No module named utilities.common.tools的相关文章

ImportError: No module named &#39;pandas.tools&#39;

from pandas.tools.plotting import scatter_matrix 改成: from pandas.plotting import scatter_matrix 参考: pandas.plotting ImportError: No module named 'pandas.tools' 原文地址:https://www.cnblogs.com/zhhy236400/p/11111036.html

GAE下python之importmodules{No module named %s}解决方法

笔者菜菜,想看看github上tornado写的demo ---blog,于是在github上粘贴复制,粘贴复制, 用GAE打开的时候发现跑不起来,看看log File "E:\Python27\lib\ctypes\__init__.py", line 10, in <module> from _ctypes import Union, Structure, Array File "E:\GAE\google\appengine\tools\devappserv

解决cocos2dx 打包lua环境搭建问题( ImportError: No module named Cheetah.Template)

将c++ 封装成lua调用时,显示一下错误: PYTHON_BIN not defined, use current python. generating userconf.ini... Generating bindings for cocos2dx_TextLoader... Traceback (most recent call last): File "/Applications/Cocos/frameworks/cocos2d-x-3.5/tools/bindings-generato

python3中用HTMLTestRunner.py报ImportError: No module named &#39;StringIO&#39;如何解决

python3中用HTMLTestRunner.py报ImportError: No module named 'StringIO'的解决方法: 1.原因是官网的是python2语法写的,看官手动把官网的HTMLTestRunner.py改成python3的语法: 参考:http://bbs.chinaunix.net/thread-4154743-1-1.html 下载地址:http://tungwaiyip.info/software/HTMLTestRunner.html 修改后下载地址:

python3中用HTMLTestRunner.py报ImportError: No module named &#39;StringIO&#39;如何解决【转载】

原文转自:http://bbs.chinaunix.net/thread-4154743-1-1.html python3中用HTMLTestRunner.py报ImportError: No module named 'StringIO'的解决方法: 1.原因是官网的是python2语法写的,看官手动把官网的HTMLTestRunner.py改成python3的语法: 参考:http://bbs.chinaunix.net/thread-4154743-1-1.html 下载地址:http:/

centos7安装python3和Django后,ModuleNotFoundError: No module named &#39;_sqlite3&#39;

1.准备安装环境 yum groupinstall 'Development Tools' yum install zlib-devel bzip2-devel openssl-devel ncurses-devel 2.安装python3 去官网下载编译安装包或者直接执行以下命令下载 wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz 解压 tar -xvJf  Python-3.6.2.tar.xz 切换进入 cd

No module named &#39;flask_sqlalchemy&#39;

在使用sqlalchemy 扩展库 flask_sqlalchemy时报错: No module named 'flask_sqlalchemy' 观察sys.path 发现当前python版本是2.7不是本项目的环境, 将2.7的环境变量全部变成3.6版本重新启动项目即可 查看 sys.path 方法: import sys ···· print sys.path 重新启动项目报错 : ModuleNotFoundError: No module named 'MySQLdb' 原因没安装 p

python3中用HTMLTestRunner.py报ImportError: No module named &#39;StringIO&#39;的解决方法:

全文转载至:http://www.cnblogs.com/testyao/p/5658200.html python3中用HTMLTestRunner.py报ImportError: No module named 'StringIO'的解决方法: 1.原因是官网的是python2语法写的,看官手动把官网的HTMLTestRunner.py改成python3的语法: 参考:http://bbs.chinaunix.net/thread-4154743-1-1.html 下载地址:http://t

Django:django-cors-headers 报错no module named &quot;corsheaders&quot;

django跨域使用 pip install django-cors-headers 然后在settings文件中加上参数设置 # app配置 INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles