parsing - clang's python binding throws an exception when get_children is called -


i'm trying run example found here, fails execute. after debugging, found out node.get_children() causes exception, , here's traceback:

traceback (most recent call last): file "_ctypes/callbacks.c", line 314, in 'calling callback function' file "c:\python27\lib\site-packages\clang\cindex.py", line 1383, in visitor children.append(child) attributeerror: 'str' object has no attribute 'append' 

i'm using llvm 4.0.1 on windows, , installed clang via pip (tried both clang3.5 , clang4.0.post1).

here's ld_library_path: c:\program files\llvm\bin, added path this: %ld_library_path%;%pythonpath%;...rest of path...

i got same error after installing llvm5.0 , cloning clang github.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -