Docs don't build; AttributeError for matplotlib.__version__numpy__ #823

Closed
cdeil opened this Issue Apr 13, 2012 · 2 comments

Comments

Projects
None yet
2 participants
Contributor

cdeil commented Apr 13, 2012

I installed matplotlib a6f17f9 on Mac OS X Lion (XCode 4.3).
Numpy 1.6.1 is installed via Macports.
All matplotlib tests pass.

Trying to build the docs fails:

$ python make.py html
Running Sphinx v1.1.3

Exception occurred:
  File "/Users/deil/code/matplotlib/doc/conf.py", line 188, in <module>
    """ % matplotlib.__version__numpy__
AttributeError: 'module' object has no attribute '__version__numpy__'
The full traceback has been saved in /var/folders/9v/3cf9p8mx0n1gzcsq3mw9799m0000gn/T/sphinx-err-p93eiN.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!
Building HTML failed.

christoph-deils-macbook:doc deil$ cat /var/folders/9v/3cf9p8mx0n1gzcsq3mw9799m0000gn/T/sphinx-err-p93eiN.log
# Sphinx version: 1.1.3
# Python version: 2.7.2
# Docutils version: 0.8.1 release
# Jinja2 version: 2.6
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sphinx/cmdline.py", line 188, in main
    warningiserror, tags)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sphinx/application.py", line 102, in __init__
    confoverrides or {}, self.tags)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/sphinx/config.py", line 216, in __init__
    exec code in config
  File "/Users/deil/code/matplotlib/doc/conf.py", line 188, in <module>
    """ % matplotlib.__version__numpy__
AttributeError: 'module' object has no attribute '__version__numpy__'

Owner

mdboom commented Apr 13, 2012

Perhaps it is picking up an earlier version of matplotlib than what you think. It's possible that Sphinx is picking up a different version of matplotlib than what you get when from the default python interpreter on your path.

If you remove the rst_epilog = line at the end of conf.py, then build the docs, what does the version of matplotlib displayed in the footer of the html pages say?

Contributor

cdeil commented Apr 14, 2012

Yes, there were old files and removing them resolved the issue.
Thanks for your help!

cdeil closed this Apr 14, 2012

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