[C++-sig] Problems with Pyste from CVS.

Nicodemus nicodemus at globalite.com.br
Sat Jul 5 02:02:05 CEST 2003


Prabhu Ramachandran wrote:

>Hi,
>
>I just updated my local CVS checkout of Boost.  I tried running Pyste
>and got the following traceback.  The same exact pyste file worked
>fine a little while earlier with an older checkout (June 25th) of CVS.
>
>If you need any more information let me know.  I can also try and
>generate a smaller test case that I can include here (right now I
>don't have one).
>
>Thanks.
>prabhu
>
>--------------------------------------------------
>Traceback (most recent call last):
>  File "/usr/local/bin/pyste.py", line 11, in ?
>    status = pyste.Main()
>  File "/usr/local/stow/pyste/lib/python2.2/site-packages/Pyste/pyste.py", line 195, in Main
>    declarations, parsed_header = parser.parse(header, all_tails)
>  File "/usr/local/stow/pyste//lib/python2.2/site-packages/Pyste/CppParser.py", line 82, in parse
>    declarations = ParseDeclarations(xmlfile)
>  File "/usr/local/stow/pyste/lib/python2.2/site-packages/Pyste/GCCXMLParser.py", line 437, in ParseDeclarations
>    parser.Parse(filename)
>  File "/usr/local/stow/pyste/lib/python2.2/site-packages/Pyste/GCCXMLParser.py", line 36, in Parse
>    self.ParseElement(id, element)
>  File "/usr/local/stow/pyste/lib/python2.2/site-packages/Pyste/GCCXMLParser.py", line 60, in ParseElement
>    func(id, element)
>  File "/usr/local/stow/pyste/lib/python2.2/site-packages/Pyste/GCCXMLParser.py", line 371, in ParseOperatorMethod
>    self.ParseMethod(id, element, ClassOperator)
>  File "/usr/local/stow/pyste/lib/python2.2/site-packages/Pyste/GCCXMLParser.py", line 356, in ParseMethod
>    classname = self.GetDecl(element.get('context'))._FullName()
>  File "/usr/local/stow/pyste/lib/python2.2/site-packages/Pyste/GCCXMLParser.py", line 98, in GetDecl
>    self.ParseElement(id, elem)
>  File "/usr/local/stow/pyste/lib/python2.2/site-packages/Pyste/GCCXMLParser.py", line 60, in ParseElement
>    func(id, element)
>  File "/usr/local/stow/pyste/lib/python2.2/site-packages/Pyste/GCCXMLParser.py", line 291, in ParseClass
>    class_._AddMember(member)
>  File "/usr/local/stow/pyste/lib/python2.2/site-packages/Pyste/declarations.py", line 123, in _AddMember
>    m._is_unique = False
>AttributeError: 'str' object has no attribute '_is_unique'
>

I reverted the changes that I have made before, and this bug should be 
gone now. Thanks for all your work on reporting this Prabhu!

Regards,
Nicodemus.





More information about the Cplusplus-sig mailing list