/***************************************************************************
* 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'的更多相关文章

  1. Python脚本报错AttributeError: ‘module’ object has no attribute’xxx’解决方法

    最近在编写Python脚本过程中遇到一个问题比较奇怪:Python脚本完全正常没问题,但执行总报错"AttributeError: 'module' object has no attrib ...

  2. attributeError:'module' object has no attribute ** 解决办法

    写了一个小脚本,执行的时候报错: Traceback (most recent call last): File "F:/test/qrcode.py", line 109, in ...

  3. AttributeError: 'module' object has no attribute 'Thread'

    $ python thread.py starting at: 2015-08-05 00:24:24Traceback (most recent call last):  File "th ...

  4. 安装pandas报错(AttributeError: 'module' object has no attribute 'main')

    在pycharm中安装pandas出现报错:AttributeError: 'module' object has no attribute 'main', 刚开始以为是pip的版本太旧了,于是乎将其 ...

  5. AttributeError: 'module' object has no attribute 'enableTrace'

    Traceback (most recent call last): File "Long-lived-connection.py", line 29, in <module ...

  6. python问题:AttributeError: 'module' object has no attribute 'SSL_ST_INIT'

    AttributeError: 'module' object has no attribute 'SSL_ST_INIT' 问题背景: 下载工具wydomain,安装依赖包以后,出现下图问题. 几经 ...

  7. AttributeError: 'module' object has no attribute 'main'

    本机环境:ubuntu16.04,  ros-kinetic $ roscore 报错 Traceback (most recent call last): File , in <module& ...

  8. python问题:AttributeError: 'module' object has no attribute 'SSL_ST_INIT'(转)

    原文地址:http://www.cnblogs.com/zhaijiahui/p/7344778.html AttributeError: 'module' object has no attribu ...

  9. 在运行create_list.sh时候报错:AttributeError: 'module' object has no attribute 'LabelMap'

    Traceback (most recent call last):File "/opt/xuben-project/caffe/data/VOC0712/../../scripts/cre ...

随机推荐

  1. uva 1631

    1631 Locker A password locker with N digits, each digit can be rotated to 0-9 circularly. You can ro ...

  2. 《Play for Java》学习笔记(六)文件上传file upload

    一. Play中标准方法 使用表单form和multipart/form-data的content-type类型. 1.Form @form(action = routes.Application.u ...

  3. splunk 索引过程

    术语: Event :Events are records of activity in log files, stored in Splunk indexes. 简单说,处理的日志或话单中中一行记录 ...

  4. git的一个merge流程

    git merge testSupport 合并testSupport分支代码到当前分支. 若无冲突发生,git commit -m "RM ID:5094",在git push即 ...

  5. php变量与数组相互转换的方法(extract与compact

    #php变量与数组相互转换的方法(extract与compact) #compact 多个变量转数组 $name = 'sui'; $email = 'sui@qq.com'; $arr = comp ...

  6. .NET开发知识体系

    记得几年前写过一篇关于.NET开发方面的知识总结,但是随着技术的发展以及自己技术理解的提升,觉得有必要对那篇文章加以更新和完善. 最近在园子里也看到有人写关于.NET知识体系的文章,特别是灵感之源写的 ...

  7. qml 一些知识点

    1.pagestack进行页面调整的时候,需要对页面状态做一些跟踪: Stack.onStatusChanged: { if (Stack.status == Stack.Active) { //可以 ...

  8. 封装自己的JS库

    一.基础知识 1.点击计数 第一种: var aBtn=document.getElementsByTagName('input'); var i=0; for(i=0;i<aBtn.lengt ...

  9. RelativeLayout练习

    <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android=&q ...

  10. PL/SQL

    function & procedure packages function --> arguments or parameters with arguments, IN, read o ...