Is it possible to use the CFE python bindings with PyPy?


I hope this is not a total noob question…

When I try to do this I get the following error:

File “/home/amitm/clangws/linst/”, line 121, in find_all_nodes
for c in node.get_children():
File “/local/amitm/usr/lib/python/clang/”, line 1339, in get_children
File “/usr/lib/pypy/lib_pypy/_ctypes/”, line 699, in call
return, *args)
File “/usr/lib/pypy/lib_pypy/_ctypes/”, line 333, in call
args, kwargs)
File “/usr/lib/pypy/lib_pypy/_ctypes/”, line 552, in _convert_args
raise ArgumentError(str(e))
ArgumentError: expected py_object instance instead of list
make: *** [test_logs.o] Error 1

This is based on LLVM 3.4, I believe, and PyPy 1.8.0.


Amit Margalit
IBM XIV - Storage Reinvented
XIV-NAS Development Team
Tel. 03-689-7774
Fax. 03-689-7230