[AstroPy] docs building issue
russell.j.hewett at gmail.com
Wed Nov 20 18:20:19 EST 2013
It is commented out. With sphinx 1.1.3 it works fine, but with graphviz
installed, this code (from astropy/astropy/sphinx/conf.py) indicates that a
newer sphinx is needed (which I have installed).
output = subprocess.check_output(
['dot', '-V'], stdin=subprocess.PIPE,
tokens = output.split()
for token in tokens:
if re.match(b'[0-9.]*', token):
graphviz_found = LooseVersion(get_graphviz_version())
graphviz_broken = LooseVersion('0.30')
if graphviz_found >= graphviz_broken:
needs_sphinx = '1.2b2'
needs_sphinx = '1.1'
On Wed, Nov 20, 2013 at 6:04 PM, Miguel de Val-Borro <miguel.deval at gmail.com
> Hi Russell,
> Can you check the setting of the "needs_sphinx" variable in the
> astropy/docs/conf.py configuration file? If the file has not been
> modified locally this line should be commented out. I have just tried to
> build the HTML documentation from the current master branch and it
> worked fine with Sphinx 1.1.3 on a Linux system.
> On Wed, Nov 20, 2013 at 04:11:19PM -0500, Russell Hewett wrote:
> > Hi All,
> > I can't seem to get the docs to build, ever since I installed graphviz.
> > worked beforehand, with the older version of sphinx that comes with
> > anaconda. Any ideas?
> > C:\Users\rhewett\research\software-projects\astropy\docs>make html
> > Running Sphinx v1.2b2
> > Sphinx version error:
> > This project needs at least Sphinx v1.2b2 and therefore cannot be built
> > with this version.
> > (Also doesn't work with 1.2b3)
> > C:\Users\rhewett\research\software-projects\astropy\docs>ipython
> > Python 2.7.5 |Anaconda 1.7.0 (64-bit)| (default, Jul 1 2013, 12:37:52)
> > [MSC v.1500 64 bit (AMD64)]
> > Type "copyright", "credits" or "license" for more information.
> > IPython 1.1.0 -- 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 : import sphinx
> > In : sphinx.__version__
> > Out: '1.2b2'
> > -Russ
> > --
> > Russell J. Hewett
> > Postdoctoral Associate
> > Imaging and Computing Group
> > Department of Mathematics
> > Massachusetts Institute of Technology
> > www.russellhewett.com
> > _______________________________________________
> > AstroPy mailing list
> > AstroPy at scipy.org
> > http://mail.scipy.org/mailman/listinfo/astropy
> AstroPy mailing list
> AstroPy at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the AstroPy