Skip to content

Instantly share code, notes, and snippets.

@cointoss1973
Last active December 17, 2015 03:49
Show Gist options
  • Select an option

  • Save cointoss1973/268cb91ee21a4fb352ca to your computer and use it in GitHub Desktop.

Select an option

Save cointoss1973/268cb91ee21a4fb352ca to your computer and use it in GitHub Desktop.

build NG debian pkg (sudo aptitude install python-sphinx)

tkondou@trinity:~/work/sphinx-bundle-extensions$ make html
sphinx-build -b html -d _build/doctrees   . _build/html
Running Sphinx v1.1.3
/home/tkondou/work/sphinx-bundle-extensions
/usr/share/sphinx/scripts/python2
/usr/lib/python2.7
/usr/lib/python2.7/plat-linux2
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/PIL
/usr/lib/python2.7/dist-packages/gst-0.10
/usr/lib/python2.7/dist-packages/gtk-2.0
/usr/lib/pymodules/python2.7

Extension error:
Could not import extension sphinxcontrib.plantuml (exception: No module named plantuml)
make: *** [html] エラー 1
tkondou@trinity:~/work/sphinx-bundle-extensions$

build OK ( pip install Sphinx==1.1.3)

tkondou@trinity:~/work/sphinx-bundle-extensions$ make html
sphinx-build -b html -d _build/doctrees . _build/html
Running Sphinx v1.1.3
/home/tkondou/work/sphinx-bundle-extensions
/usr/local/bin
/usr/lib/python2.7
/usr/lib/python2.7/plat-linux2
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/PIL
/usr/lib/python2.7/dist-packages/gst-0.10
/usr/lib/python2.7/dist-packages/gtk-2.0
/usr/lib/pymodules/python2.7
loading pickled environment... done
building [html]: targets for 0 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
looking for now-outdated files... none found
no targets are out of date.

Build finished. The HTML pages are in _build/html.
@cointoss1973
Copy link
Copy Markdown
Author

tkondou@neo:/work/sphinx-bundled-extensions$
tkondou@neo:
/work/sphinx-bundled-extensions$ make html
sphinx-build -b html -d _build/doctrees . _build/html
Running Sphinx v1.1.3
/home/tkondou/work/sphinx-bundled-extensions
/usr/share/sphinx/scripts/python2
/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg
/usr/local/lib/python2.7/dist-packages/virtualenv-1.9.1-py2.7.egg
/usr/local/lib/python2.7/dist-packages/dulwich-0.8.7-py2.7-linux-x86_64.egg
/usr/local/lib/python2.7/dist-packages/pip-1.3.1-py2.7.egg
/usr/local/lib/python2.7/dist-packages/ipython-0.13.2-py2.7.egg
/usr/lib/python2.7
/usr/lib/python2.7/plat-linux2
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/PIL
/usr/lib/python2.7/dist-packages/gst-0.10
/usr/lib/python2.7/dist-packages/gtk-2.0
/usr/lib/pymodules/python2.7

Exception occurred:
File "/usr/lib/pymodules/python2.7/sphinx/cmdline.py", line 188, in main
warningiserror, tags)
File "/usr/lib/pymodules/python2.7/sphinx/application.py", line 102, in init
confoverrides or {}, self.tags)
File "/usr/lib/pymodules/python2.7/sphinx/config.py", line 216, in init
exec code in config
File "/home/tkondou/work/sphinx-bundled-extensions/conf.py", line 26, in
print sphinxcontrib.file
AttributeError: 'module' object has no attribute 'file'
The full traceback has been saved in /tmp/sphinx-err-XrBwug.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
Either send bugs to the mailing list at http://groups.google.com/group/sphinx-dev/,
or report them in the tracker at http://bitbucket.org/birkenfeld/sphinx/issues/. Thanks!
make: *** [html] エラー 1
tkondou@neo:/work/sphinx-bundled-extensions$
tkondou@neo:
/work/sphinx-bundled-extensions$ ipython
Python 2.7.3 (default, Jan 2 2013, 13:56:14)
Type "copyright", "credits" or "license" for more information.

IPython 0.13.2 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.

In [1]: import sys

In [2]: sys.path
Out[2]:
['',
'/usr/local/bin',
'/usr/local/lib/python2.7/dist-packages/setuptools-0.6c11-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/virtualenv-1.9.1-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/dulwich-0.8.7-py2.7-linux-x86_64.egg',
'/usr/local/lib/python2.7/dist-packages/pip-1.3.1-py2.7.egg',
'/usr/local/lib/python2.7/dist-packages/ipython-0.13.2-py2.7.egg',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages/gst-0.10',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.7',
'/usr/local/lib/python2.7/dist-packages/ipython-0.13.2-py2.7.egg/IPython/extensions']

In [3]: import sphinxcontrib;print sphinxcontrib.file
sphinxcontrib/init.pyc

In [4]: exit
tkondou@neo:~/work/sphinx-bundled-extensions$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment