Run with Python:
pip-2.7 install cffi PYTHON=python2.7 sh go.sh
Run with PyPy:
pip-pypy install cffi PYTHON=pypy sh go.sh
Run with Py3K:
pip-3.3 install cffi PYTHON=python3.3 sh go.sh
The expected output:
=> now run the native one hello, world => now run the pypy bound one hello, cffi
Traceback (most recent call last):
File "hello.py", line 12, in
hello("cffi")
File "hello.py", line 8, in hello
C.cffi_hello(name)
TypeError: initializer for ctype 'char *' must be a bytes or list or tuple, not str
I am getting this error.... can't find why