[Cython] known? 0.16 on varioius platforms: ValueError: Buffer dtype mismatch, expected 'char' but got 'unsigned char' in ...

Yaroslav Halchenko lists at onerussian.com
Thu Jul 19 04:26:23 CEST 2012


On Tue, 17 Jul 2012, Yaroslav Halchenko wrote:
> I have tested on a sparc box and current master seems to not show this
> particular problem (see below though) -- does anyone remember this
> particular issue and commit which fixed it?

I am sorry -- I got lost among architectures and what fails where and possibly
misguided you in my original report -- current master does still have this
problem -- this time testing on s390x (it does pass on sparc):

(s390x-sid)yoh at zelenka:~/cython/cython$ python runtests.py -vv memoryview_compare_type_pointers
Python 2.7.3 (default, Jul 14 2012, 05:19:55) 
[GCC 4.6.3]

Running tests against Cython 0.17pre 0cbc0f4398cb0edbc7a128cfb2b72567f2e5e217
/home/yoh/cython/cython/BUILD/support/temp.linux-s390x-2.7/pyrex/refnanny.c: In function ‘__pyx_f_8refnanny_report_unraisable’:
/home/yoh/cython/cython/BUILD/support/temp.linux-s390x-2.7/pyrex/refnanny.c:2309:7: warning: variable ‘__pyx_clineno’ set but not used [-Wunused-but-set-variable]
/home/yoh/cython/cython/BUILD/support/temp.linux-s390x-2.7/pyrex/refnanny.c:2308:15: warning: variable ‘__pyx_filename’ set but not used [-Wunused-but-set-variable]
/home/yoh/cython/cython/BUILD/support/temp.linux-s390x-2.7/pyrex/refnanny.c:2307:7: warning: variable ‘__pyx_lineno’ set but not used [-Wunused-but-set-variable]
Backends: c,cpp

runTest (__main__.EndToEndTest)
End-to-end memoryview_compare_type_pointers ... /usr/bin/python setup.py build_ext --inplace
Compiling test_compare_type_pointers.pyx because it changed.
Compiling other_module.pyx because it changed.
Cythonizing other_module.pyx
Cythonizing test_compare_type_pointers.pyx
running build_ext
building 'test_compare_type_pointers' extension
creating build
creating build/temp.linux-s390x-2.7
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c test_compare_type_pointers.c -o build/temp.linux-s390x-2.7/test_compare_type_pointers.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-s390x-2.7/test_compare_type_pointers.o -o /home/yoh/cython/cython/BUILD/memoryview/memoryview_compare_type_pointers/test_compare_type_pointers.so
building 'other_module' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c other_module.c -o build/temp.linux-s390x-2.7/other_module.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-s390x-2.7/other_module.o -o /home/yoh/cython/cython/BUILD/memoryview/memoryview_compare_type_pointers/other_module.so

test_compare_type_pointers.c:1040:1: warning: useless type name in empty declaration [enabled by default]
test_compare_type_pointers.c:1042:1: warning: useless type name in empty declaration [enabled by default]
other_module.c:1038:1: warning: useless type name in empty declaration [enabled by default]
other_module.c:1040:1: warning: useless type name in empty declaration [enabled by default]
other_module.c:1044:1: warning: useless type name in empty declaration [enabled by default]
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "test_compare_type_pointers.pyx", line 3, in init test_compare_type_pointers (test_compare_type_pointers.c:13542)
    import other_module
  File "other_module.pyx", line 4, in init other_module (other_module.c:13350)
    cdef Foo[:] fooview = fooarray
ValueError: Buffer dtype mismatch, expected 'char' but got 'unsigned char' in 'Foo.c'

FAIL

======================================================================
FAIL: runTest (__main__.EndToEndTest)
End-to-end memoryview_compare_type_pointers
----------------------------------------------------------------------
Traceback (most recent call last):
  File "runtests.py", line 1100, in runTest
    self.assertEqual(0, res, "non-zero exit status")
AssertionError: non-zero exit status

----------------------------------------------------------------------
Ran 1 test in 11.070s

FAILED (failures=1)
ALL DONE

-- 
Yaroslav O. Halchenko
Postdoctoral Fellow,   Department of Psychological and Brain Sciences
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik        


More information about the cython-devel mailing list