{"issue":{"created_at":"2011-11-13T10:34:54Z","state":"closed","updated_at":"2011-11-18T13:33:44Z","user":{"gravatar_id":"62026667822f948637ca9a6022a511b7","id":300048,"url":"https://api.github.com/users/s0undt3ch","login":"s0undt3ch","avatar_url":"https://secure.gravatar.com/avatar/62026667822f948637ca9a6022a511b7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":2,"body":"Generate the xml file\r\n\r\n```\r\n$ h2xml gnokii.h -I ~/projects/Gnokyy/extra/gnokii/include/ -I ~/projects/Gnokyy/extra/gnokii/include/gnokii/ -o ../../../gnokii/gnokii.xml\r\ncreating xml output file ...\r\nrunning: gccxml /tmp/tmpvUnUGQ.cpp -fxml=../../../gnokii/gnokii.xml -I /home/vampas/projects/Gnokyy/extra/gnokii/include/ -I /home/vampas/projects/Gnokyy/extra/gnokii/include/gnokii/\r\n```\r\n\r\nSo far so good, but:\r\n\r\n```\r\n$ xml2cython.py gnokii.h ../../../gnokii/gnokii.xml \r\nIgnoring <ctypeslib.codegen.typedesc.Structure object at 0xb721de0c> _IO_FILE\r\nItem not handled for cy_generate <ctypeslib.codegen.typedesc.ArrayType object at 0x9e0d28c>\r\nItem not handled for cy_generate <ctypeslib.codegen.typedesc.ArrayType object at 0x9e0d28c>\r\nItem not handled for cy_generate <ctypeslib.codegen.typedesc.ArrayType object at 0x9e0d28c>\r\nItem not handled for cy_generate <ctypeslib.codegen.typedesc.ArrayType object at 0x9e0de0c>\r\nItem not handled for cy_generate <ctypeslib.codegen.typedesc.ArrayType object at 0x9e0de0c>\r\nItem not handled for cy_generate <ctypeslib.codegen.typedesc.ArrayType object at 0x9e0d28c>\r\nItem not handled for cy_generate <ctypeslib.codegen.typedesc.ArrayType object at 0x9e0d28c>\r\nItem not handled for cy_generate <ctypeslib.codegen.typedesc.ArrayType object at 0x9dfc42c>\r\nItem not handled for cy_generate <ctypeslib.codegen.typedesc.ArrayType object at 0x9dfc42c>\r\nNot handled:  <ctypeslib.codegen.typedesc.Enumeration object at 0xb72247ac>\r\nTraceback (most recent call last):\r\n  File \"/home/vampas/projects/DotSOS/.working-dir/installed/1.0b1-dev/bin/xml2cython.py\", line 165, in <module>\r\n    sys.exit(main())\r\n  File \"/home/vampas/projects/DotSOS/.working-dir/installed/1.0b1-dev/bin/xml2cython.py\", line 148, in main\r\n    ffilter=ffilter, funcs_list=funcs)\r\n  File \"/home/vampas/projects/DotSOS/.working-dir/installed/1.0b1-dev/bin/xml2cython.py\", line 71, in generate_main\r\n    generate_cython(output, gen, anoenumvals)\r\n  File \"/home/vampas/projects/DotSOS/.working-dir/installed/1.0b1-dev/lib/python2.7/site-packages/cycodegenlib/cycodegen.py\", line 12, in generate_cython\r\n    cython_code = [cy_generate(i) for i in genitems]\r\n  File \"/home/vampas/projects/DotSOS/.working-dir/installed/1.0b1-dev/lib/python2.7/site-packages/cycodegenlib/cycodegen.py\", line 76, in cy_generate\r\n    return cy_generate_structure(item)\r\n  File \"/home/vampas/projects/DotSOS/.working-dir/installed/1.0b1-dev/lib/python2.7/site-packages/cycodegenlib/cycodegen.py\", line 41, in cy_generate_structure\r\n    output.append(\"\\t\" + (generic_named_decl(m.typ) % m.name))\r\n  File \"/home/vampas/projects/DotSOS/.working-dir/installed/1.0b1-dev/lib/python2.7/site-packages/cycodegenlib/cytypes.py\", line 66, in generic_named_decl\r\n    return pointer_named_decl(tp)\r\n  File \"/home/vampas/projects/DotSOS/.working-dir/installed/1.0b1-dev/lib/python2.7/site-packages/cycodegenlib/cytypes.py\", line 55, in pointer_named_decl\r\n    return generic_decl(tp.typ.returns) + '(*%s)' + '(%s)' % \", \".join(args)\r\nTypeError: unsupported operand type(s) for +: 'NoneType' and 'str'\r\n```\r\n\r\nWhat can I do now?","assignee":null,"labels":[],"id":2220877,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":3,"title":"Exception with the Gnokii library","closed_at":"2011-11-18T13:33:44Z","html_url":"https://github.com/cournape/cython-codegen/issues/3","milestone":null,"url":"https://api.github.com/repos/cournape/cython-codegen/issues/3"},"action":"closed"}