<div dir="ltr"><div>OK, I take that back.  Changing '1.2b2'  to '1.2' worked.  I had forgotten that that particular conf file was burried in the package and I was not in develop mode, so live updates were meaningless.  Had to reinstall for the change to take effect.<br>
<br></div><div>That said, following Erik's advice, I did check, and the conf is indeed getting sphinx 1.2b2.  (And we can thus conclude that conda uninstall works correctly.)<br><br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Nov 20, 2013 at 8:35 PM, Erik Tollerud <span dir="ltr"><<a href="mailto:erik.tollerud@gmail.com" target="_blank">erik.tollerud@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
To clarify why this is necessary: it turns out that sphinx used<br>
something in the graphviz API that was either private or deprecated,<br>
and it changed between graphviz 0.28 and 0.30.  Sphinx fixed this in<br>
version 1.2 beta something or other, but that means if you have Sphinx<br>
1.1.3 (the current release version) and a graphviz newer than 0.28,<br>
any graphviz graphs (including the class inheritance diagrams) cause<br>
sphinx to fail.<br>
<br>
The really odd thing is that it says you *have* Sphinx v1.2b2.  Is<br>
there any chance you have two different sphinx versions installed on<br>
top of each other?  It's *possible* that would make it think it's<br>
version 1.2, when the actual code getting called is 1.1.3 ... one way<br>
to check this might be to edit astropy/astropy/sphinx/conf.py to add a<br>
``print sphinx.__version__`` directly under the `need_sphinx`<br>
definitions.  Then you'd know for sure which version it was actually<br>
using there.<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Nov 20, 2013 at 7:24 PM, Miguel de Val-Borro<br>
<<a href="mailto:miguel.deval@gmail.com">miguel.deval@gmail.com</a>> wrote:<br>
> On Wed, Nov 20, 2013 at 06:20:19PM -0500, Russell Hewett wrote:<br>
>> def get_graphviz_version():<br>
>>     try:<br>
>>         output = subprocess.check_output(<br>
>>             ['dot', '-V'], stdin=subprocess.PIPE,<br>
>>             stderr=subprocess.STDOUT,<br>
>>             shell=True)<br>
>>     except subprocess.CalledProcessError:<br>
>>         return '0'<br>
>>     tokens = output.split()<br>
>>     for token in tokens:<br>
>>         if re.match(b'[0-9.]*', token):<br>
>>             return token.decode('ascii')<br>
>>     return '0'<br>
>><br>
>> graphviz_found = LooseVersion(get_graphviz_version())<br>
>> graphviz_broken = LooseVersion('0.30')<br>
>><br>
>> if graphviz_found >= graphviz_broken:<br>
>>     needs_sphinx = '1.2b2'<br>
>> else:<br>
>>     needs_sphinx = '1.1'<br>
><br>
> It looks like the version comparison in Sphinx is done with the<br>
> major.minor numbers in the version string. Could you try to replace in<br>
> that file:<br>
><br>
> needs_sphinx = '1.2b2'<br>
> by<br>
> needs_sphinx = '1.2'<br>
><br>
> I'm not sure that it will help but maybe the comparison is failing<br>
> because of that.<br>
> _______________________________________________<br>
> AstroPy mailing list<br>
> <a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a><br>
> <a href="http://mail.scipy.org/mailman/listinfo/astropy" target="_blank">http://mail.scipy.org/mailman/listinfo/astropy</a><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Erik<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
AstroPy mailing list<br>
<a href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/astropy" target="_blank">http://mail.scipy.org/mailman/listinfo/astropy</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Russell J. Hewett<br>Postdoctoral Associate <br>Imaging and Computing Group<br>Department of Mathematics<br>Massachusetts Institute of Technology<br><a href="http://www.russellhewett.com/" target="_blank">www.russellhewett.com</a>
</div>