add_name error using slide directive

13 views
Skip to first unread message

Jon Peirce

unread,
Mar 5, 2014, 3:56:51 PM3/5/14
to hierogly...@googlegroups.com
Hi there,

Thanks for writing hieroglyph. I'm fully planning to use it for a 3-day workshop I'm about to give on python programming for neuroscientists. (I want something that can output slides, or pro-quality pdf including python syntax highlighting, so sphinx and hieroglyph look like the perfect combo).

I'm using the 0.6.5-dev and sphinx 1.2.2 and getting an error if I try and use the slide directive:

  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/hieroglyph/directives.py", line 351, in run
    self.add_name(admonition_node)
AttributeError: 'SlideDirective' object has no attribute 'add_name'

The nextslide directive works fine so it's no big deal (I didn't actually realise that this is only a few days old!)

Does hieroglyph require a particular version of sphinx to have this add_name attribute?

cheers,
Jon

Nathan Yergler

unread,
Mar 5, 2014, 4:53:04 PM3/5/14
to Jon Peirce, hierogly...@googlegroups.com
Hi Jon,

I'm glad you're finding Hieroglyph useful, sorry that you've run into a bug.

I run the Hieroglyph tests on Sphinx 1.1.3, and Sphinx 1.2.2, so I
don't think it's related to the Sphinx version. Can you check what
version of docutils you have installed? docutils is the underlying
library used by Sphinx, and where the add_name method is defined.
Sphinx 1.2.2 only specifies docutils >= 0.7, which is semi ancient.
The development version of Sphinx has updated that to docutils >=
0.10. You can check what version you have installed by doing:

$ python
>>> import docutils
>>> docutils.__version__
'0.11'

If you have something less that 0.10, can you try upgrading? If you're
using pip or a virtualenv, you should be able to do that with
something like:

$ pip install -U docutils

If that fixes the problem, I'll update Hieroglyph to ensure that it
requires docutils >= 0.10.

Cheers,

NRY
> --
> You received this message because you are subscribed to the Google Groups
> "Hieroglyph Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to hieroglyph-use...@googlegroups.com.
> To post to this group, send email to hierogly...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages