Ah.  Something changed in Sphinx SVN.  I think the best long term fix is 
to probably not "borrow" this regex from Sphinx, but include our own 
version in inheritance_diagram.py.  I'll fix this.

Cheers,
Mike

Darren Dale wrote:
> I think I see whats going on. On my machine, py_sig_re.match(name).groups() 
> returns:
>
> (u'matplotlib.', u'patches', None, None)
>
> but inheritance_diagram.py  is trying to unpack this length=4 result into a 
> length=3 tuple.
>
> Here is the definition of py_sig_re from sphinx:
>
> py_sig_re = re.compile(
>     r'''^ ([\w.]*\.)?            # class name(s)
>           (\w+)  \s*             # thing name
>           (?: \((.*)\)           # optional arguments
>           (\s* -> \s* .*)? )? $  # optional return annotation
>           ''', re.VERBOSE)
>
> On Saturday 21 June 2008 17:11:05 Michael Droettboom wrote:
>   
>> Sorry, I'm stumped.
>>
>> Mike
>>
>> Charlie Moad wrote:
>>     
>>> Here's that file.
>>>
>>> Thanks,
>>>      Charlie
>>>
>>> On Fri, Jun 20, 2008 at 9:25 AM, Michael Droettboom <[EMAIL PROTECTED]
>>> <mailto:[EMAIL PROTECTED]>> wrote:
>>>
>>>     Have you updated Sphinx from SVN lately?  I have r64374.
>>>
>>>     Sphinx should have dumped a full traceback into a tmp file (and
>>>     told you where it is, which I don't see in your log output).  Can
>>>     you send that?
>>>
>>>     Cheers,
>>>     Mike
>>>
>>>     Charlie Moad wrote:
>>>
>>>         Python2.5 on OSX.5
>>>
>>>         On Thu, Jun 19, 2008 at 11:14 PM, Michael Droettboom
>>>         <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>>>         <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> wrote:
>>>
>>>            What version of Python are you running?  All I can think from
>>>            looking at the code is that something in the regex is behaving
>>>            differently for you than me (on Python 2.5).
>>>
>>>            If you just want the docs to build (minus the inheritance
>>>            diagrams), you can put a "return []" at the top of
>>>            "inheritance_diagram_directive_run" in inheritance_diagram.py
>>>
>>>            Cheers,
>>>            Mike
>>>
>>>            Charles Moad wrote:
>>>
>>>                Just jumped into the new docs to take a look and
>>>         immediately
>>>                having  problems building.  I am hoping someone can make a
>>>                quick fix so I  don't have to debug.
>>>
>>>                quaternion:doc cmoad$ ./make.py html
>>>                Sphinx v0.3, building html
>>>                trying to load pickled env... not found
>>>                building [html]: targets for 45 source files that are
>>>         out of date
>>>                updating environment: 45 added, 0 changed, 0 removed
>>>                reading... api/artist_api Exception occurred:
>>>                  File "/Users/cmoad/workspace/matplotlib/doc/sphinxext/
>>>                inheritance_diagram.py", line 78, in
>>>         _import_class_or_module
>>>                    "Invalid class '%s' specified for inheritance
>>>         diagram" % name)
>>>                ValueError: Invalid class 'matplotlib.patches'
>>>         specified for
>>>                 inheritance diagram
>>>
>>>                Thanks,
>>>                       Charlie
>>>
>>>
>>>         
>>> -------------------------------------------------------------------------
>>> Check out the new SourceForge.net Marketplace.
>>>                It's the best place to buy or sell services for
>>>                just about anything Open Source.
>>>                http://sourceforge.net/services/buy/index.php
>>>                _______________________________________________
>>>                Matplotlib-devel mailing list
>>>                Matplotlib-devel@lists.sourceforge.net
>>>         <mailto:Matplotlib-devel@lists.sourceforge.net>
>>>                <mailto:Matplotlib-devel@lists.sourceforge.net
>>>         <mailto:Matplotlib-devel@lists.sourceforge.net>>
>>>
>>>
>>>          https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>>
>>>
>>>
>>>
>>>     --
>>>     Michael Droettboom
>>>     Science Software Branch
>>>     Operations and Engineering Division
>>>     Space Telescope Science Institute
>>>     Operated by AURA for NASA
>>>       
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________
>> Matplotlib-devel mailing list
>> Matplotlib-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>     
>
>
>   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to