#1 Python Wrapper Parse Error

open
nobody
None
5
2009-01-07
2009-01-07
Cerin
No

When I attempt to use the zinnia.Character().parse method to parse the input:

(character (width 600)(height 600)(strokes ((201 269)(203 275)(205 281)(207 287)(211 291)(216 295)(221 299)(226 302)(233 304)(239 305)(245 306)(251 306)(258 305)(264 304)(270 304)(276 303)(282 301)(288 298)(294 296)(299 293)(305 290)(311 287)(316 284)(320 279)(323 274)(327 269)(330 263)(331 257)(332 251)(327 247)(323 243)(318 239)(312 236)(306 233)(300 232)(294 232)(288 233)(281 233)(275 234)(269 237)(264 240)(258 243)(252 245)(247 248)(242 252)(236 255)(231 259)(226 263)(221 266)(216 270)(219 264)(223 259)(226 254)(230 249)(233 243)(237 238)(241 233)(244 228)(248 223)(252 218)(255 212)(258 207)(261 201))))

I get the error:

Traceback (most recent call last):
File "testZinnia.py", line 41, in <module>
if not s.parse(input):
File "/usr/lib/python2.5/site-packages/zinnia.py", line 70, in parse
def parse(*args): return _zinnia.Character_parse(*args)
TypeError: in method 'Character_parse', argument 2 of type 'char const *'

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks