artemp/mapnik — Issue #355: Test failures on PPC/Leopard OSX
Author: artemp
Created: 2011-10-11 16:14:03+00:00
State: open
Labels: Core_Library

I've always wondered how well (or whether) Mapnik works on PPC macs (no intel). I finally had a chance to compile latest trunk (r1169).

Here are the test failures:

{{{
#!sh
$ python tests/run_tests.py
- mapnik path: /Library/Python/2.5/site-packages/mapnik/__init__.py
- _mapnik.so path: /Library/Python/2.5/site-packages/mapnik/_mapnik.so
- Input plugins path: /usr/local/lib/mapnik/input
- Font path: /usr/local/lib/mapnik/fonts

======================================================================
ERROR: python_tests.object_test.test_shapefile_properties
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.5/site-packages/nose-0.11.1-py2.5.egg/nose/case.py", line 183, in runTest
self.test(*self.arg)
File "/Users/jmarlow/mapnik/tests/python_tests/object_test.py", line 159, in test_shapefile_properties
f = s.features_at_point(s.envelope().center()).features[0]
IndexError: list index out of range

======================================================================
ERROR: python_tests.object_test.test_textsymbolizer_pickle
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.5/site-packages/nose-0.11.1-py2.5.egg/nose/case.py", line 183, in runTest
self.test(*self.arg)
File "/Users/jmarlow/mapnik/tests/python_tests/object_test.py", line 205, in test_textsymbolizer_pickle
eq_(ts.fontset, ts2.fontset)
TypeError: No to_python (by-value) converter found for C++ type: mapnik::FontSet

======================================================================
FAIL: python_tests.datasource_test.test_total_feature_count
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.5/site-packages/nose-0.11.1-py2.5.egg/nose/case.py", line 183, in runTest
self.test(*self.arg)
File "/Users/jmarlow/mapnik/tests/python_tests/datasource_test.py", line 24, in test_total_feature_count
eq_(num_feats, 10)
File "/Library/Python/2.5/site-packages/nose-0.11.1-py2.5.egg/nose/tools.py", line 31, in eq_
assert a == b, msg or "%r != %r" % (a, b)
AssertionError: 3 != 10

======================================================================
FAIL: python_tests.datasource_test.test_feature_envelope
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.5/site-packages/nose-0.11.1-py2.5.egg/nose/case.py", line 183, in runTest
self.test(*self.arg)
File "/Users/jmarlow/mapnik/tests/python_tests/datasource_test.py", line 33, in test_feature_envelope
eq_(contains, True)
File "/Library/Python/2.5/site-packages/nose-0.11.1-py2.5.egg/nose/tools.py", line 31, in eq_
assert a == b, msg or "%r != %r" % (a, b)
AssertionError: False != True

======================================================================
FAIL: python_tests.object_test.test_shapefile_init
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.5/site-packages/nose-0.11.1-py2.5.egg/nose/case.py", line 183, in runTest
self.test(*self.arg)
File "/Users/jmarlow/mapnik/tests/python_tests/object_test.py", line 151, in test_shapefile_init
assert_almost_equal(e.minx, -11121.6896651, places=7)
AssertionError: -6.9375937724992728e-250 != -11121.689665100001 within 7 places

======================================================================
FAIL: python_tests.projection_test.test_wgs84_inverse_forward
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.5/site-packages/nose-0.11.1-py2.5.egg/nose/case.py", line 183, in runTest
self.test(*self.arg)
File "/Users/jmarlow/mapnik/tests/python_tests/projection_test.py", line 17, in test_wgs84_inverse_forward
eq_(p.inverse(c), c)
File "/Library/Python/2.5/site-packages/nose-0.11.1-py2.5.egg/nose/tools.py", line 31, in eq_
assert a == b, msg or "%r != %r" % (a, b)
AssertionError: Coord(3.01331418311,43.3333092669) != Coord(3.01331418311,43.3333092669)

======================================================================
FAIL: python_tests.render_test.test_render_image_to_string
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Library/Python/2.5/site-packages/nose-0.11.1-py2.5.egg/nose/case.py", line 183, in runTest
self.test(*self.arg)
File "/Users/jmarlow/mapnik/tests/python_tests/render_test.py", line 24, in test_render_image_to_string
eq_(s, 256 * 256 * '\x00\x00\x00\xff')
File "/Library/Python/2.5/site-packages/nose-0.11.1-py2.5.egg/nose/tools.py", line 31, in eq_
assert a == b, msg or "%r != %r" % (a, b)
AssertionError: '\xff\x00\x00\x00\xff\x00\x00\x00\xff\x00\x00\x00\xff\x00\x00\x00\xff\x00\x00\x00\xff\x00\x00\x00\xff

[..snip..]

\x00\x00\x00\xff\x00\x00\x00\xff\x00\x00\x00\xff\x00\x00\x00\xff\x00\x00\x00\xff\x00\x00\x00\xff\x00\x00\x00\xff\x00\x00\x00\xff\x00\x00\x00\xff\x00\x00\x00\xff'

----------------------------------------------------------------------
Ran 70 tests in 5.221s

FAILED (TODO=4, errors=2, failures=5)

}}}