Bug 1705530 - python-mapnik FTBFS with Python 3.8
Summary: python-mapnik FTBFS with Python 3.8
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-mapnik
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Tom Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON38
TreeView+ depends on / blocked
 
Reported: 2019-05-02 13:09 UTC by Miro Hrončok
Modified: 2019-06-24 23:04 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-06-24 23:04:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Full log from Copr (270.80 KB, text/plain)
2019-05-02 13:09 UTC, Miro Hrončok
no flags Details

Description Miro Hrončok 2019-05-02 13:09:13 UTC
Created attachment 1561610 [details]
Full log from Copr

python-mapnik 0.1-45.20180411gitfe47aa1.fc31 fails to build with Python 3.8:

+ /usr/bin/python3 setup.py test
running test
running egg_info
writing mapnik.egg-info/PKG-INFO
writing dependency_links to mapnik.egg-info/dependency_links.txt
writing top-level names to mapnik.egg-info/top_level.txt
reading manifest file 'mapnik.egg-info/SOURCES.txt'
writing manifest file 'mapnik.egg-info/SOURCES.txt'
running build_ext
copying build/lib.linux-x86_64-3.8/mapnik/_mapnik.cpython-38m-x86_64-linux-gnu.so -> mapnik
/builddir/build/BUILD/python-mapnik-fe47aa15eecbc6e4ce740feed982c7661041b324/test/python_tests/filter_test.py:177: SyntaxWarning: invalid escape sequence \B
  expr = mapnik.Expression("[name].replace('(\B)|( )','$1 ')")
/builddir/build/BUILD/python-mapnik-fe47aa15eecbc6e4ce740feed982c7661041b324/test/python_tests/filter_test.py:182: SyntaxWarning: invalid escape sequence \B
  expr = mapnik.Expression("[name].replace('(\B)|( )','$1 ')")
/builddir/build/BUILD/python-mapnik-fe47aa15eecbc6e4ce740feed982c7661041b324/test/python_tests/filter_test.py:183: SyntaxWarning: invalid escape sequence \B
  eq_(str(expr), "[name].replace('(\B)|( )','$1 ')")
/builddir/build/BUILD/python-mapnik-fe47aa15eecbc6e4ce740feed982c7661041b324/test/python_tests/filter_test.py:191: SyntaxWarning: invalid escape sequence \B
  expr = mapnik.Expression("[name].replace('(\B)|( )','$1 ')")
/builddir/build/BUILD/python-mapnik-fe47aa15eecbc6e4ce740feed982c7661041b324/test/python_tests/json_feature_properties_test.py:38: SyntaxWarning: invalid escape sequence \ 
  "json": '{"type":"Feature","id":1,"geometry":null,"properties":{"name":"string with \\\ quote"}}'
/builddir/build/BUILD/python-mapnik-fe47aa15eecbc6e4ce740feed982c7661041b324/test/python_tests/mapnik_test_data_test.py:58: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if plugin is 'ogr':
python_tests.agg_rasterizer_integer_overflow_test.test_that_coordinates_do_not_overflow_and_polygon_is_rendered_memory ... /var/tmp/rpm-tmp.5CPJ7v: line 37:   551 Segmentation fault      (core dumped) PGHOST="$PWD" LANG="C.UTF-8" BOOST_PYTHON_LIB=boost_python38 /usr/bin/python3 setup.py test
+ __trap_cb
+ IFS=' '
+ for __func in $__TRAP_ACTIONS
+ pgtests_stop
+ pg_ctl stop -D /builddir/build/BUILD/python-mapnik-fe47aa15eecbc6e4ce740feed982c7661041b324/datadir -w
waiting for server to shut down.... done
server stopped
+ __clean_trap_action pgtests_stop
+ __new_actions=
+ for __action in $__TRAP_ACTIONS
+ test pgtests_stop = pgtests_stop
+ :
+ for __action in $__TRAP_ACTIONS
+ test pgtests_cleanup = pgtests_stop
+ __new_actions='pgtests_cleanup '
+ __TRAP_ACTIONS='pgtests_cleanup '
+ for __func in $__TRAP_ACTIONS
+ pgtests_cleanup
+ :
+ rm -r /builddir/build/BUILD/python-mapnik-fe47aa15eecbc6e4ce740feed982c7661041b324/datadir
+ __clean_trap_action pgtests_cleanup
+ __new_actions=
+ for __action in $__TRAP_ACTIONS
+ test pgtests_cleanup = pgtests_cleanup
+ :
+ __TRAP_ACTIONS=

Full log attached.

Comment 1 Tom Hughes 2019-05-02 18:29:49 UTC
Obviously the new warnings here are a python 3.8 issue but the main problem, the crash running the tests, doesn't seem to be as it happening for me with 3.7 as well.

It's inside mapnik itself rather than the python bindings, so tracking it down is going to require some effort...

Comment 2 Tom Hughes 2019-06-24 23:04:13 UTC
As I thought the main issue here was that mapnik needed a rebuild against the new version of mapbox-variant.


Note You need to log in before you can comment on or make changes to this bug.