sphinx-doc / sphinx-autobuild

Watch a Sphinx directory and rebuild the documentation when a change is detected. Also includes a hot-reload web server.
MIT License
524 stars 75 forks source link

error in Mac OS X #17

Closed timtan closed 9 years ago

timtan commented 9 years ago

I got the following!

os: Mac OS 10.10 libs: I use a virtualenv. and download the latest version of sphinx and sphinx-autobuild steps: just type make livehtml as document say.

sphinx-autobuild -b html -d build/doctrees   source build/html
Traceback (most recent call last):
  File "/Users/tim/Projects/acer-admin/document/venv/bin/sphinx-autobuild", line 11, in <module>
    sys.exit(main())
  File "/Users/tim/Projects/acer-admin/document/venv/lib/python2.7/site-packages/sphinx_autobuild/__init__.py", line 208, in main
    server.watch(srcdir, SphinxBuilder(outdir, build_args, ignored))
  File "/Users/tim/Projects/acer-admin/document/venv/lib/python2.7/site-packages/livereload/server.py", line 172, in watch
    self.watcher.watch(filepath, func, delay)
TypeError: watch() takes exactly 3 arguments (4 given)
make: *** [livehtml] Error 1

below are the output of pip freeze

Jinja2==2.7.3
MarkupSafe==0.23
PyYAML==3.11
Pygments==1.6
Sphinx==1.2.3
argh==0.26.1
backports.ssl-match-hostname==3.4.0.2
certifi==14.05.14
docutils==0.12
livereload==2.3.1
pathtools==0.1.2
sphinx-autobuild==0.3.0
tornado==4.0.2
watchdog==0.8.2
wsgiref==0.1.2

hope the above message can help you guys reproduce the problem and thanks for the awesome package

halayli commented 9 years ago

I am getting the same error. I think livereload Watcher class has changed and sphinx-autobuild is sending in an improper interface for a watcher instance. If only Python had interfaces!

As a workaround, you can: pip install livereload==2.2.0

pluskid commented 9 years ago

Same error here. The workaround works. But hope the pull request above be merged soon!

aldendaniels commented 9 years ago

Same issue here - and yes, the workaround does work. Thanks @halayli.

amr commented 9 years ago

Same here, Ubuntu 14.04. Pull request solved the issue.

GaretJax commented 9 years ago

Fixed by #18.