Which version of pycparser you have used?
Closed this issue · 0 comments
LightSun commented
Traceback (most recent call last):
File "/home/heaven7/heaven7/study/github/mine_temp/tensorrt-pri/trt_py/src/FrontEndC/translate.py", line 23, in <module>
import canonicalize
File "/home/heaven7/heaven7/study/github/mine_temp/tensorrt-pri/trt_py/src/FrontEndC/canonicalize.py", line 27, in <module>
import transform_printf
File "/home/heaven7/heaven7/study/github/mine_temp/tensorrt-pri/trt_py/src/FrontEndC/transform_printf.py", line 45, in <module>
"write_u": MakePrintfStyleDecl("write_u", ["int", "unsigned"]),
File "/home/heaven7/heaven7/study/github/mine_temp/tensorrt-pri/trt_py/src/FrontEndC/transform_printf.py", line 30, in MakePrintfStyleDecl
MakeSimpleTypeDecl("fd", ["int"]), None, None)
File "/home/heaven7/heaven7/study/github/mine_temp/tensorrt-pri/trt_py/src/FrontEndC/transform_printf.py", line 25, in MakeSimpleTypeDecl
return c_ast.TypeDecl(name, [], common.GetCanonicalIdentifierType(type_names))
TypeError: __init__() missing 1 required positional argument: 'type'