[cfe-dev] Is it possible to use the CFE python bindings with PyPy?

Amit Margalit AMITM at il.ibm.com
Wed Nov 20 07:49:29 PST 2013


Hello,

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/wclang.py", line 121, in find_all_nodes
    for c in node.get_children():
  File "/local/amitm/usr/lib/python/clang/cindex.py", line 1339, in 
get_children
    children)
  File "/usr/lib/pypy/lib_pypy/_ctypes/function.py", line 699, in __call__
    return CFuncPtr.__call__(self, *args)
  File "/usr/lib/pypy/lib_pypy/_ctypes/function.py", line 333, in __call__
    args, kwargs)
  File "/usr/lib/pypy/lib_pypy/_ctypes/function.py", 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.

Thanks,

Amit Margalit
IBM XIV - Storage Reinvented
XIV-NAS Development Team
Tel. 03-689-7774
Fax. 03-689-7230
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131120/41cfd6de/attachment.html>


More information about the cfe-dev mailing list