AttributeError: 'module' object has no attribute 'TornadoAsyncNotifier'
2016-10-28 13:32
639 查看
/*************************************************************************** * 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
相关文章推荐
- 解决AttributeError: 'module' object has no attribute 'IPV4ONLY' 的问题
- AttributeError: 'module' object has no attribute 'xxx'
- [DONE]pomelo npm-install 出现 AttributeError: 'module' object has no attribute 'script_main'
- AttributeError: 'module' object has no attribute 'AF_INET' 错误的原因
- AttributeError: 'module' object has no attribute 'Thread'
- AttributeError: 'module' object has no attribute 'Thread'
- AttributeError: 'module' object has no attribute 'RAND_LIMIT'
- 提示AttributeError: 'module' object has no attribute 'HTTPSHandler'解决方法
- attributeError:'module' object has no attribute ** 解决办法
- 【.NET调用Python脚本】C#调用python requests类库报错 'module' object has no attribute '_getframe' - IronPython 2.7
- 'module' object has no attribute 'loads'
- pb2.text_format.Merge(f.read(), self.solver_param) AttributeError: 'module' object has no attribute 'text_format'
- AttributeError: 'TestLogin' object has no attribute 'driver' in Pycharm for python selenium
- AttributeError: 'WebDriver' object has no attribute 'switchTo'
- Python基础学习-'module' object has no attribute 'urlopen'解决方法
- 对于AttributeError: 'Flask' object has no attribute 'cli'的解决办法
- AttributeError: 'dict_values' object has no attribute 'translate'
- python文件名不要跟模块名相同,报错AttributeError: 'module' object has no attribute 'Differ'
- AttributeError: 'int' object has no attribute 'log'
- AttributeError: 'module' object has no attribute 'xxx'