标签:name ImportError EscapeFormatter 报错 master pip import salt
安装好salt-master和salt-minion之后,发现无法启动服务。
使用systemctl status salt-master命令查看,提示报错:
ImportError: cannot import name EscapeFormatter
Linux系统版本是:
# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core)
salt-master的版本是:
# yum info salt-master Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Installed Packages Name : salt-master Arch : noarch Version : 3000.9 Release : 1.el7 Size : 3.0 M Repo : installed From repo : salt-latest Summary : Management component for salt, a parallel remote execution system URL : http://saltstack.org/ License : ASL 2.0 Description : The Salt master is the central server to which all minions connect.
解决方法:
# pip install --upgrade pip # pip uninstall markupsafe # pip install markupsafe
检验结果:
# python Python 2.7.5 (default, Jul 13 2018, 13:06:57) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from markupsafe import EscapeFormatter >>>
import没有报错,就说明已经OK了。
参考文档:https://stackoverflow.com/questions/51998470/while-starting-airflow-webserver-importerror-cannot-import-name-escapeformatt/51998488
标签:name,ImportError,EscapeFormatter,报错,master,pip,import,salt 来源: https://www.cnblogs.com/kesu/p/15323400.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。