I am building imread from git master with msvc9 on win32-py2.7, linking statically against tiff-3.9.6, libpng-1.5.10, jpeg-8d, libwebp-0.1.3, and zlib-1.2.6. The link libraries all test OK. There are no warnings during build. Running setup.py test
results in the following errors:
<snip>
imread.tests.test_error.test_error ... ok
imread.tests.test_imread.test_with_dot ... ERROR
imread.tests.test_imread.test_no_ext ... ok
imread.tests.test_imread.test_formatstr ... ERROR
imread.tests.test_jpeg.test_jpeg ... Corrupt JPEG data: 53 extraneous bytes before marker 0xc0
ok
imread.tests.test_jpeg.test_error ... ok
imread.tests.test_png.test_png_raw ... ERROR
imread.tests.test_png.test_asym ... ERROR
imread.tests.test_png.test_error ... ok
imread.tests.test_png.test_regression ... ERROR
imread.tests.test_tiff.test_read_back ... ERROR
imread.tests.test_tiff.test_error ... ok
imread.tests.test_tiff.test_monochrome ... ERROR
imread.tests.test_webp.test_error ... ok
imread.tests.test_xcf.test_xcf ... The process cannot access the file because it is being used by another process.
ERROR
======================================================================
ERROR: imread.tests.test_imread.test_with_dot
----------------------------------------------------------------------
Traceback (most recent call last):
File "X:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "imread-git\imread\tests\test_imread.py", line 7, in test_with_dot
f = imread('./imread/tests/data/good.png')
File "imread-git\imread\imread.py", line 45, in imread
im = reader(filename, formatstr)
RuntimeError: Read Error
======================================================================
ERROR: imread.tests.test_imread.test_formatstr
----------------------------------------------------------------------
Traceback (most recent call last):
File "X:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "imread-git\imread\tests\test_imread.py", line 16, in test_formatstr
f = imread('./imread/tests/data/good', formatstr='png')
File "imread-git\imread\imread.py", line 45, in imread
im = reader(filename, formatstr)
RuntimeError: Not a PNG file
======================================================================
ERROR: imread.tests.test_png.test_png_raw
----------------------------------------------------------------------
Traceback (most recent call last):
File "X:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "imread-git\imread\tests\test_png.py", line 21, in test_png_raw
back = imread(_filename)
File "imread-git\imread\imread.py", line 45, in imread
im = reader(filename, formatstr)
RuntimeError: Read Error
======================================================================
ERROR: imread.tests.test_png.test_asym
----------------------------------------------------------------------
Traceback (most recent call last):
File "X:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "imread-git\imread\tests\test_png.py", line 29, in test_asym
back = imread(_filename)
File "imread-git\imread\imread.py", line 45, in imread
im = reader(filename, formatstr)
RuntimeError: Read Error
======================================================================
ERROR: imread.tests.test_png.test_regression
----------------------------------------------------------------------
Traceback (most recent call last):
File "X:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "imread-git\imread\tests\test_png.py", line 38, in test_regression
im = imread('imread/tests/data/palette_zero.png')
File "imread-git\imread\imread.py", line 45, in imread
im = reader(filename, formatstr)
RuntimeError: Read Error
======================================================================
ERROR: imread.tests.test_tiff.test_read_back
----------------------------------------------------------------------
Traceback (most recent call last):
File "X:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "imread-git\imread\tests\test_tiff.py", line 20, in test_read_back
back = imread(_filename)
File "imread-git\imread\imread.py", line 45, in imread
im = reader(filename, formatstr)
RuntimeError: imread.imread._tiff: libtiff error: `internal: Read error at scanline 4294967295; got 16 bytes, expected 291`
======================================================================
ERROR: imread.tests.test_tiff.test_monochrome
----------------------------------------------------------------------
Traceback (most recent call last):
File "X:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "imread-git\imread\tests\test_tiff.py", line 28, in test_monochrome
mono = imread('imread/tests/data/mono.tif')
File "imread-git\imread\imread.py", line 45, in imread
im = reader(filename, formatstr)
RuntimeError: imread.imread._tiff: libtiff error: `internal: Can not read TIFF directory`
======================================================================
ERROR: imread.tests.test_xcf.test_xcf
----------------------------------------------------------------------
Traceback (most recent call last):
File "X:\Python27\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "imread-git\imread\tests\test_xcf.py", line 4, in test_xcf
im = imread('imread/tests/data/diag.xcf')
File "imread-git\imread\imread.py", line 45, in imread
im = reader(filename, formatstr)
File "imread-git\imread\special.py", line 36, in readxcf
return imread.imread(N.name)
File "imread-git\imread\imread.py", line 45, in imread
im = reader(filename, formatstr)
OSError: File does not exist
----------------------------------------------------------------------
Ran 15 tests in 0.065s
FAILED (errors=8)
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "X:\Python27\lib\atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "X:\Python27\lib\multiprocessing\util.py", line 284, in _exit_function
info('process shutting down')
TypeError: 'NoneType' object is not callable
Error in sys.exitfunc:
Traceback (most recent call last):
File "X:\Python27\lib\atexit.py", line 24, in _run_exitfuncs
func(*targs, **kargs)
File "X:\Python27\lib\multiprocessing\util.py", line 284, in _exit_function
info('process shutting down')
TypeError: 'NoneType' object is not callable