AttributeError: 'module' object has no attribute 'TornadoAsyncNotifier'

简介: /*************************************************************************** * AttributeError: 'module' object has no attribute 'TornadoAsyncNotifier' * 说明: * Tony在用mkdocs的时候遇到这个错误,找一些资料,解决一下。
/***************************************************************************
 * AttributeError: 'module' object has no attribute 'TornadoAsyncNotifier'
 * 说明:
 *     Tony在用mkdocs的时候遇到这个错误,找一些资料,解决一下。
 *
 *                                  2016-10-28 深圳 南山平山村 曾剑锋
 *************************************************************************/

一、参考文档:
    1. AttributeError: 'module' object has no attribute 'TornadoAsyncNotifier' #1
        https://github.com/clonn/simple-livereload/issues/1

二、错误现象:
    zengjf@zengjf:~/zengjf/test$ mkdocs  serve
    INFO    -  Building documentation... 
    INFO    -  Cleaning site directory 
    [I 161028 13:21:24 server:281] Serving on http://127.0.0.1:8000
    [I 161028 13:21:24 handlers:59] Start watching changes
    Traceback (most recent call last):
      File "/usr/local/bin/mkdocs", line 11, in <module>
        sys.exit(cli())
      File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in __call__
        return self.main(*args, **kwargs)
      File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main
        rv = self.invoke(ctx)
      File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke
        return _process_result(sub_ctx.command.invoke(sub_ctx))
      File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
        return ctx.invoke(self.callback, **ctx.params)
      File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
        return callback(*args, **kwargs)
      File "/usr/local/lib/python2.7/dist-packages/mkdocs/__main__.py", line 115, in serve_command
        livereload=livereload,
      File "/usr/local/lib/python2.7/dist-packages/mkdocs/commands/serve.py", line 84, in serve
        _livereload(host, port, config, builder, tempdir)
      File "/usr/local/lib/python2.7/dist-packages/mkdocs/commands/serve.py", line 27, in _livereload
        server.serve(root=site_dir, host=host, port=int(port), restart_delay=0)
      File "/usr/local/lib/python2.7/dist-packages/livereload/server.py", line 298, in serve
        LiveReloadHandler.start_tasks()
      File "/usr/local/lib/python2.7/dist-packages/livereload/handlers.py", line 60, in start_tasks
        if not cls.watcher.start(cls.poll_tasks):
      File "/usr/local/lib/python2.7/dist-packages/livereload/watcher.py", line 160, in start
        self.notifier = pyinotify.TornadoAsyncNotifier(
    AttributeError: 'module' object has no attribute 'TornadoAsyncNotifier'

三、解决办法:
    sudo pip install pyinotify --upgrade

 

目录
相关文章
|
1月前
|
计算机视觉 Python
解决 NoneType‘ object has no attribute ‘astype’ 问题
解决 NoneType‘ object has no attribute ‘astype’ 问题
27 0
|
5月前
|
存储 JSON 数据格式
数据集加载时报错'dict' object has no attribute 'requests‘
数据集加载时报错'dict' object has no attribute 'requests‘
107 5
|
3月前
AttributeError: 'NoneType' object has no attribute 'to_capabilities'
AttributeError: 'NoneType' object has no attribute 'to_capabilities'
362 0
|
6月前
|
Python Windows
xlrd库报错【AttributeError: ‘ElementTree‘ object has no attribute ‘getiterator‘】
xlrd库报错【AttributeError: ‘ElementTree‘ object has no attribute ‘getiterator‘】
117 0
|
3月前
AttributeError ‘NoneType‘ object has no attribute ‘to_capabilities‘
AttributeError ‘NoneType‘ object has no attribute ‘to_capabilities‘
90 0
|
4月前
|
数据采集
运行爬虫时报错AttributeError—— 'str' object has no attribute 'capabilities'
运行爬虫时报错AttributeError—— 'str' object has no attribute 'capabilities'
228 0
|
4月前
'WebDriver' object has no attribute 'find_element_by_tag_name'
'WebDriver' object has no attribute 'find_element_by_tag_name'
117 0
|
8月前
yolov7—tensorrt报错AttributeError: ‘NoneType‘ object has no attribute ‘execute_v2‘已解决。
yolov7—tensorrt报错AttributeError: ‘NoneType‘ object has no attribute ‘execute_v2‘已解决。
85 0
yolov7—tensorrt报错AttributeError: ‘NoneType‘ object has no attribute ‘execute_v2‘已解决。
|
5月前
|
Java
java判断Object对象是否为空demo
java判断Object对象是否为空demo
|
9天前
|
JavaScript
js 字符串String转对象Object
该代码示例展示了如何将一个以逗号分隔的字符串(`&#39;1.2,2,3,4,5&#39;`)转换为对象数组。通过使用`split(&#39;,&#39;)`分割字符串并`map(parseFloat)`处理每个元素,将字符串转换成浮点数数组,最终得到一个对象数组,其类型为`object`。