Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

looks like crashing on union #4

Open
h4ck3rm1k3 opened this issue Mar 7, 2012 · 0 comments
Open

looks like crashing on union #4

h4ck3rm1k3 opened this issue Mar 7, 2012 · 0 comments

Comments

@h4ck3rm1k3
Copy link

Not handled: <ctypeslib.codegen.typedesc.Union object at 0x948e42c>
Traceback (most recent call last):
File "/usr/local/bin/xml2cython.py", line 165, in
sys.exit(main())
File "/usr/local/bin/xml2cython.py", line 148, in main
ffilter=ffilter, funcs_list=funcs)
File "/usr/local/bin/xml2cython.py", line 71, in generate_main
generate_cython(output, gen, anoenumvals)
File "/usr/local/lib/python2.7/dist-packages/cycodegenlib/cycodegen.py", line 12, in generate_cython
cython_code = [cy_generate(i) for i in genitems]
File "/usr/local/lib/python2.7/dist-packages/cycodegenlib/cycodegen.py", line 73, in cy_generate
return cy_generate_typedef(item)
File "/usr/local/lib/python2.7/dist-packages/cycodegenlib/cycodegen.py", line 32, in cy_generate_typedef
return ["ctypedef %s" % (named_pointer_decl(item.typ) % item.name)]
File "/usr/local/lib/python2.7/dist-packages/cycodegenlib/funcs.py", line 67, in named_pointer_decl
return generic_decl(tp.typ) + ' * %s'
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant