|
Boost : |
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2006-02-07 08:20:03
I wanted to learn about pyste, so I tried the "hello world" example, but
this is what I get:
pyste.py --debug --module=hello world.pyste
DEBUG: world.xml
Traceback (most recent call last):
File "/usr/bin/pyste.py", line 4, in ?
pyste.main()
File "/usr/lib/python2.4/site-packages/Pyste/pyste.py", line 418, in main
status = Begin()
File "/usr/lib/python2.4/site-packages/Pyste/pyste.py", line 257, in Begin
return GenerateCode(parser, module, out, interfaces, multiple)
File "/usr/lib/python2.4/site-packages/Pyste/pyste.py", line 376, in
GenerateCode
declarations, parsed_header = parser.Parse(header, interface, tail)
File "/usr/lib/python2.4/site-packages/Pyste/CppParser.py", line 165, in
Parse
declarations = self.ParseWithGCCXML(header, tail)
File "/usr/lib/python2.4/site-packages/Pyste/CppParser.py", line 128, in
ParseWithGCCXML
declarations = ParseDeclarations(xmlfile)
File "/usr/lib/python2.4/site-packages/Pyste/GCCXMLParser.py", line 469,
in ParseDeclarations
parser.Parse(filename)
File "/usr/lib/python2.4/site-packages/Pyste/GCCXMLParser.py", line 46, in
Parse
self.ParseElement(id, element)
File "/usr/lib/python2.4/site-packages/Pyste/GCCXMLParser.py", line 70, in
ParseElement
func(id, element)
File "/usr/lib/python2.4/site-packages/Pyste/GCCXMLParser.py", line 319,
in ParseStruct
self.ParseClass(id, element)
File "/usr/lib/python2.4/site-packages/Pyste/GCCXMLParser.py", line 306,
in ParseClass
self.AddDecl(class_)
File "/usr/lib/python2.4/site-packages/Pyste/GCCXMLParser.py", line 57, in
AddDecl
if decl.FullName() in self._names:
File "/usr/lib/python2.4/site-packages/Pyste/declarations.py", line 48, in
FullName
return namespace + self.name
TypeError: cannot concatenate 'str' and 'NoneType' objects
,----[ /home/nbecker/world.h ]
| #include <string>
|
| struct World
| {
| void set(std::string msg) { this->msg = msg; }
| std::string greet() { return msg; }
| std::string msg;
| };
`----
,----[ /home/nbecker/world.pyste ]
| Class("World", "world.h")
|
`----
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk