Open sebastic opened 4 years ago
I've just encountered the same issue myself.
@sebastic @edge0701 - could you try latest v3.0.x branch to see if 7da019c fixed this issue, thanks
It builds successfully with the changes from 7da019cf9eb12af8f8aa88b7d75789dfcd1e901b.
There are some (unrelated) test failures:
======================================================================
ERROR: Failure: TabError (inconsistent use of tabs and spaces in indentation (pdf_printing_test.py, line 41))
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
module = self.importer.importFromPath(
File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/usr/lib/python3.8/imp.py", line 234, in load_module
return load_source(name, filename, file)
File "/usr/lib/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 779, in exec_module
File "<frozen importlib._bootstrap_external>", line 916, in get_code
File "<frozen importlib._bootstrap_external>", line 846, in source_to_code
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/build/python-mapnik-0.0~20200224-7da019cf9/.pybuild/cpython3_3.8_mapnik/build/test/python_tests/pdf_printing_test.py", line 41
source_xml = '../data/good_maps/marker-text-line.xml'.encode('utf-8')
^
TabError: inconsistent use of tabs and spaces in indentation
======================================================================
FAIL: python_tests.multi_tile_raster_test.test_multi_tile_policy
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/build/python-mapnik-0.0~20200224-7da019cf9/.pybuild/cpython3_3.8_mapnik/build/test/python_tests/multi_tile_raster_test.py", line 49, in test_multi_tile_policy
eq_(im.view(0, 64, 1, 1).tostring(), b'\x00\xff\x00\xff')
AssertionError: b'\x00\x00\x00\x00' != b'\x00\xff\x00\xff'
======================================================================
FAIL: python_tests.projection_test.test_proj_antimeridian_bbox
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/build/python-mapnik-0.0~20200224-7da019cf9/.pybuild/cpython3_3.8_mapnik/build/test/python_tests/projection_test.py", line 147, in test_proj_antimeridian_bbox
assert_box2d_almost_equal(fwd_ext, better)
File "/build/python-mapnik-0.0~20200224-7da019cf9/.pybuild/cpython3_3.8_mapnik/build/test/python_tests/utilities.py", line 141, in assert_box2d_almost_equal
assert_almost_equal(a.maxy, b.maxy, msg=msg)
AssertionError: -24.584595927676872 != -24.584597490955804 within 7 places (1.5632789320818574e-06 difference) : Box2d(-180.0,-62.33374815277128,180.0,-24.584595927676872) != Box2d(-180.0,-62.33374815225163,180.0,-24.584597490955804)
======================================================================
FAIL: python_tests.render_grid_test.test_point_symbolizer_grid
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/build/python-mapnik-0.0~20200224-7da019cf9/.pybuild/cpython3_3.8_mapnik/build/test/python_tests/render_grid_test.py", line 950, in test_point_symbolizer_grid
eq_(utf1, point_expected, show_grids('point-sym', utf1, point_expected))
AssertionError: JSON does not match ->
X grid does not match
X data does not match
X keys do not
/tmp/mapnik-point-sym-actual.json
/tmp/mapnik-point-sym-expected.json
----------------------------------------------------------------------
Ran 346 tests in 13.087s
FAILED (SKIP=155, errors=1, failures=3)
The v3.0.x branch fails to build with 3.0.23: