AttributeError: 'module' object has no attribute 'TornadoAsyncNotifier'
/***************************************************************************
* AttributeError: 'module' object has no attribute 'TornadoAsyncNotifier'
* 说明:
* Tony在用mkdocs的时候遇到这个错误,找一些资料,解决一下。
*
* 2016-10-28 深圳 南山平山村 曾剑锋
*************************************************************************/ 一、参考文档:
. AttributeError: 'module' object has no attribute 'TornadoAsyncNotifier' #
https://github.com/clonn/simple-livereload/issues/1 二、错误现象:
zengjf@zengjf:~/zengjf/test$ mkdocs serve
INFO - Building documentation...
INFO - Cleaning site directory
[I :: server:] Serving on http://127.0.0.1:8000
[I :: handlers:] Start watching changes
Traceback (most recent call last):
File "/usr/local/bin/mkdocs", line , in <module>
sys.exit(cli())
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line , in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line , in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line , in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line , in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line , in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/mkdocs/__main__.py", line , in serve_command
livereload=livereload,
File "/usr/local/lib/python2.7/dist-packages/mkdocs/commands/serve.py", line , in serve
_livereload(host, port, config, builder, tempdir)
File "/usr/local/lib/python2.7/dist-packages/mkdocs/commands/serve.py", line , in _livereload
server.serve(root=site_dir, host=host, port=int(port), restart_delay=)
File "/usr/local/lib/python2.7/dist-packages/livereload/server.py", line , in serve
LiveReloadHandler.start_tasks()
File "/usr/local/lib/python2.7/dist-packages/livereload/handlers.py", line , in start_tasks
if not cls.watcher.start(cls.poll_tasks):
File "/usr/local/lib/python2.7/dist-packages/livereload/watcher.py", line , in start
self.notifier = pyinotify.TornadoAsyncNotifier(
AttributeError: 'module' object has no attribute 'TornadoAsyncNotifier' 三、解决办法:
sudo pip install pyinotify --upgrade
AttributeError: 'module' object has no attribute 'TornadoAsyncNotifier'的更多相关文章
- Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法
最近在编写Python脚本过程中遇到一个问题比较奇怪:Python脚本完全正常没问题,但执行总报错"AttributeError: 'module' object has no attrib ...
- attributeError:'module' object has no attribute ** 解决办法
写了一个小脚本,执行的时候报错: Traceback (most recent call last): File "F:/test/qrcode.py", line 109, in ...
- AttributeError: 'module' object has no attribute 'Thread'
$ python thread.py starting at: 2015-08-05 00:24:24Traceback (most recent call last): File "th ...
- 安装pandas报错(AttributeError: 'module' object has no attribute 'main')
在pycharm中安装pandas出现报错:AttributeError: 'module' object has no attribute 'main', 刚开始以为是pip的版本太旧了,于是乎将其 ...
- AttributeError: 'module' object has no attribute 'enableTrace'
Traceback (most recent call last): File "Long-lived-connection.py", line 29, in <module ...
- python问题:AttributeError: 'module' object has no attribute 'SSL_ST_INIT'
AttributeError: 'module' object has no attribute 'SSL_ST_INIT' 问题背景: 下载工具wydomain,安装依赖包以后,出现下图问题. 几经 ...
- AttributeError: 'module' object has no attribute 'main'
本机环境:ubuntu16.04, ros-kinetic $ roscore 报错 Traceback (most recent call last): File , in <module& ...
- python问题:AttributeError: 'module' object has no attribute 'SSL_ST_INIT'(转)
原文地址:http://www.cnblogs.com/zhaijiahui/p/7344778.html AttributeError: 'module' object has no attribu ...
- 在运行create_list.sh时候报错:AttributeError: 'module' object has no attribute 'LabelMap'
Traceback (most recent call last):File "/opt/xuben-project/caffe/data/VOC0712/../../scripts/cre ...
随机推荐
- uva 10118
10118 - Free Candies Time limit: 30.000 seconds Little Bob is playing a game. He wants to win some c ...
- 安装apache+php+mysql
#yum -y install httpd 安装完成之后查看安装时生成了哪些文件: #rpm -ql httpd 绑定域名(如果没有域名可以跳过): #cd /etc/httpd/conf.d ...
- memached 服务器lru算法
1.LRU是Least Recently Used的缩写,即最近最少使用页面置换算法,是为虚拟页式存储管理服务的.LRU算法的提出,是基于这样一个事实:在前面几条指令中使用频繁的页面很可能在后面的几条 ...
- redis sort
redis sort命令用法 1.命令描述返回或保存给定列表.集合.有序集合key中经过排序的元素.排序默认以数字作为对象,值被解释为双精度浮点数,然后进行比较. 2.一般sort用法最简单的sort ...
- POJ 1202 Family 概率,DP,高精 难度:2
http://poj.org/problem?id=1202 难度集中在输出格式上,因为输出格式所以是高精度 递推式: 血缘肯定只有从双亲传到儿子的,所以,设f,m为双亲,son为儿子,p[i][j] ...
- HDU 3265 扫描线(矩形面积并变形)
Posters Time Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Sub ...
- 周游加拿大(dp好题)
你赢得了一场航空公司举办的比赛,奖品是一张加拿大环游机票.旅行在这家航空公司开放的最西边的城市开始,然后一直自西向东旅行,直到你到达最东边的城市,再由东向西返回,直到你回到开始的城市.每个城市只能访问 ...
- function format_number(srcNumber, n) {
function format_number(srcNumber, n) {var dstNumber = parseFloat(srcNumber);if (isNaN(dstNumber)) {r ...
- ANT-build.xml编译文件详解
Ant 开发Ant的构建文件当开始一个新的项目时,首先应该编写Ant构建文件.构建文件定义了构建过程,并被团队开发中每个人使用.Ant构建文件默认命名为build.xml,也可以取其他的名字.只不过在 ...
- VisualSVN SERVER的安装和使用
SVN Server安装 Subversion是优秀的版本控制工具,其具体的的优点和详细介绍,这里就不再多说.下载的网址是:http://subversion.apache.org/packages. ...