[C++-sig] Error about a simple example
Julien Vivenot
julien.vivenot at nsigma.fr
Tue Jan 16 02:01:48 CET 2007
Hi,
My System is Ubuntu 6.10/Python 2.4.4c1/Pyste 0.9.30.
I'm totally new to Boost.Python.
Since it would be better than me explaining the problem, I'm quoting it
here :
> jvivenot at jvivenot-laptop:~/Projets/Pfff$ pyste --pyste-ns=pfff --debug --module=pfff main.pyste
> DEBUG: action.xml
> DEBUG: actingagent.xml
> DEBUG: drawableelement.xml
> Traceback (most recent call last):
> File "/usr/bin/pyste", line 4, in ?
> pyste.main()
> File "/var/lib/python-support/python2.4/Pyste/pyste.py", line 418, in main
> status = Begin()
> File "/var/lib/python-support/python2.4/Pyste/pyste.py", line 257, in Begin
> return GenerateCode(parser, module, out, interfaces, multiple)
> File "/var/lib/python-support/python2.4/Pyste/pyste.py", line 376, in GenerateCode
> declarations, parsed_header = parser.Parse(header, interface, tail)
> File "/var/lib/python-support/python2.4/Pyste/CppParser.py", line 165, in Parse
> declarations = self.ParseWithGCCXML(header, tail)
> File "/var/lib/python-support/python2.4/Pyste/CppParser.py", line 128, in ParseWithGCCXML
> declarations = ParseDeclarations(xmlfile)
> File "/var/lib/python-support/python2.4/Pyste/GCCXMLParser.py", line 469, in ParseDeclarations
> parser.Parse(filename)
> File "/var/lib/python-support/python2.4/Pyste/GCCXMLParser.py", line 46, in Parse
> self.ParseElement(id, element)
> File "/var/lib/python-support/python2.4/Pyste/GCCXMLParser.py", line 70, in ParseElement
> func(id, element)
> File "/var/lib/python-support/python2.4/Pyste/GCCXMLParser.py", line 319, in ParseStruct
> self.ParseClass(id, element)
> File "/var/lib/python-support/python2.4/Pyste/GCCXMLParser.py", line 306, in ParseClass
> self.AddDecl(class_)
> File "/var/lib/python-support/python2.4/Pyste/GCCXMLParser.py", line 57, in AddDecl
> if decl.FullName() in self._names:
> File "/var/lib/python-support/python2.4/Pyste/declarations.py", line 48, in FullName
> return namespace + self.name
> TypeError: cannot concatenate 'str' and 'NoneType' objects
> jvivenot at jvivenot-laptop:~/Projets/Pfff$
My pyste file is :
jvivenot at jvivenot-laptop:~/Projets/Pfff$ cat main.pyste
Class("Action", "action.hpp")
Enum("Act", "action.hpp")
Enum("Condition", "action.hpp")
Class("ActingAgent", "actingagent.hpp")
Class("DrawableElement", "drawableelement.hpp")
Class("Character", "character.hpp")
Class("View", "view.hpp")
Class("Engine", "engine.hpp")jvivenot at jvivenot-laptop:~/Projets/Pfff$
What should I do ? What is wrong with this ?
I hope my dumb question won't disturb any of you.
Thanx everyone.
Julien Vivenot
More information about the Cplusplus-sig
mailing list