Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1705530

Summary: python-mapnik FTBFS with Python 3.8
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-mapnikAssignee: Tom Hughes <tom>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: tom
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-24 23:04:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1686977    
Attachments:
Description Flags
Full log from Copr none

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.