Red Hat Bugzilla – Bug 503422
mapnik python module doesn't import
Last modified: 2009-07-03 15:55:33 EDT
Description of problem:
I'm unable to import the mapnik python module.
Version-Release number of selected component (if applicable):
$ rpm -q mapnik-python
Steps to Reproduce:
1. Run python from the command line
2. import mapnik
>>> import mapnik
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/site-packages/mapnik/__init__.py", line 31, in <module>
from _mapnik import *
ImportError: /usr/lib/libmapnik.so.0.5: undefined symbol: _ZN5Cairo7Context15set_font_matrixERK13_cairo_matrix
The module imports cleanly.
I downloaded the src.rpm for the mapnik packages and recompiled it with mock. This seems to have resolved the issue for me. Because of the font changes for F11 I was unable to get the latest release of the package to build but rebuilding the same version already on F10 built just fine.
I can reproduce this on F-10. I'll look into rebuilding for both F-10 and F-11.
(I recently rebuilt it for F-12/rawhide).
mapnik-0.5.2-0.8.svn738.fc10 has been submitted as an update for Fedora 10.
I have downloaded and installed the packages from koji and they seem to fix the import problem. I also tested the "hello world" tutorial which also worked as expected.
mapnik-0.5.2-0.8.svn738.fc10 has been pushed to the Fedora 10 testing repository. If problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update mapnik'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-7284
mapnik-0.5.2-0.8.svn738.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.