On Jul 6, 2011, at 1:38 PM, Sean Silbaugh wrote:

> 
> Hello,
> 
> I am trying to get Mapnik to render maps for a WMS server I am trying to
> host.  However, whenever I run  generate_image.py, it gives me an error
> saying "ImportError: /usr/local/lib/libboost_python.so.1.43.0:undefined
> symbol: Py_Init_Module4_64".

This sounds like you have compiled mapnik against mixed libraries, either 
different arch's (32 vs 64) or different boost python versions.

If I were to guess I'd say that the python you are using is from packages, and 
is 32 bit, but you built boost yourself 64 bit and the boost_python library 
cannot find a 64 bit version of python itself at runtime (on linux boost python 
does not directly link to python but rather loads its symbols at runtime).

Either way, you may either need to recompile boost_python or mapnik against the 
right python headers/libs.

To help futher you should run:

$ldd /usr/local/lib/libmapnik.so

$ldd /usr/local/lib/libboost_python.so

and do ldd on the _mapnik.so that should be sitting in the mapnik source folder 
here:

binding/python/

>  I have boost version 1.43 as well as python v
> 2.6 installed.

how was python installed?

>  I am on Centos 5 and I had no problems installing mapnik. 
> The only problem I have is when I try to run generate_image.py.  I have
> tried to export LD_LIBRARY_CONFIG=/usr/local/lib64 as well as
> /usr/local/lib64.  Any help would be greatly appreciated.
> 
> Thanks!
> Sean
> -- 
> View this message in context: 
> http://old.nabble.com/ImportError-undefined-symbol-Py_Init_Module-tp32008257p32008257.html
> Sent from the Mapnik - Users mailing list archive at Nabble.com.
> 
> _______________________________________________
> Mapnik-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/mapnik-users

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to