Katie,

What is likely happening is that the macports boost_python lib is built
again either your system python or a macports copy of python rather than
your MacPython install (assuming that your MacPython install is
default).

By default I mean what you get if you type:
$ which python

To try to figure out if this is the case do:

$ otool -L /opt/local/lib/libboost_python-mt.dylib

For me this gives:

/opt/local/lib/libboost_python-mt.dylib:
        /opt/local/lib/libboost_python-mt-1_35.dylib (compatibility version 
0.0.0, current version 0.0.0)
        /System/Library/Frameworks/Python.framework/Versions/2.5/Python 
(compatibility version 2.5.0, current version 2.5.1)
        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current 
version 7.4.0)
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 
1.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current 
version 88.3.6)

The third line there shows that macports built boost_python against my
/System (apple installed) python (which for me is default and not a
problem).

So I can do this:

$ /System/Library/Frameworks/Python.framework/Versions/2.5/bin/python
Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26) 
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import mapnik
>>>

but I cannot use the macports copy of python:

dane-springmeyers-mac-mini:~ dane$ /opt/local/bin/python
Python 2.5.2 (r252:60911, Nov 10 2008, 23:25:42) 
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import mapnik
Fatal Python error: Interpreter not initialized (version mismatch?)
Abort trap


So, can you reply with what you get with these commands? Ideally fully
uninstalling the macports boost and then re-installing it should
automatically link boost_python against your default python that mapnik
will build against. If not, well then write back!

Dane

 







On Thu, 20 Nov 2008 13:56:08 -0800 (PST), "Katie Lohrenz"
<[EMAIL PROTECTED]> said:
> 
> I'm a newbie, in over my head, and I'm getting the same error message,
> but I
> think my circumstances are a little different. Anyone care to point me in
> the right direction?
> 
> What I did, starting with a MacBook running 10.5:
> - upgrade to MacPython binary
> - install macports
> - per http://trac.mapnik.org/wiki/MacInstallation, run "sudo port install
> libpng jpeg libgeotiff icu jam"
> - again per http://trac.mapnik.org/wiki/MacInstallation, run "sudo port
> install boost +python25 +icu" which put the boost libs in /opt/local/lib
> - build and install mapnik from svn checkout
> - launch python, try to import mapnik, get "Fatal Python error:
> Interpreter
> not initialized (version mismatch?)" message
> 
> I'm not sure which dependency has the version mismatch since, unlike
> Matt, I
> don't have a previous version of boost anywhere.
> 
> Any idea which of the following should be my red flag?
> 
> $ otool -L
> /Library/Frameworks/Python.framework/Versions/Current/lib/python2.5/site-packages/mapnik/_mapnik.so
> /Library/Frameworks/Python.framework/Versions/Current/lib/python2.5/site-packages/mapnik/_mapnik.so:
>       /Library/Frameworks/Python.framework/Versions/2.5/Python (compatibility
> version 2.5.0, current version 2.5.0)
>       libmapnik.dylib (compatibility version 0.0.0, current version 0.0.0)
>       /opt/local/lib/libpng12.0.dylib (compatibility version 34.0.0, current
> version 34.0.0)
>       /opt/local/lib/libjpeg.62.dylib (compatibility version 63.0.0, current
> version 63.0.0)
>       /opt/local/lib/libboost_python-mt-1_35.dylib (compatibility version 
> 0.0.0,
> current version 0.0.0)
>       /opt/local/lib/libicuuc.40.dylib (compatibility version 40.0.0, current
> version 40.0.0)
>       /opt/local/lib/libicudata.40.dylib (compatibility version 40.0.0, 
> current
> version 40.0.0)
>       /opt/local/lib/libboost_regex-mt-1_35.dylib (compatibility version 
> 0.0.0,
> current version 0.0.0)
>       /opt/local/lib/libboost_thread-mt-1_35.dylib (compatibility version 
> 0.0.0,
> current version 0.0.0)
>       /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version
> 7.4.0)
>       /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version
> 1.0.0)
>       /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
> 111.1.1)
> 
> Thanks.
> 
> - Katie
> 
> 
> Matt Bartolome wrote:
> > 
> > I recently upgraded to the MacPython binary off python.org because I
> > needed the python framework not included in the built-in mac python
> > (lame) for another project. I guess I could have built from source but
> > I liked how the binary kept everything clean and it was relatively
> > straight forward to get going. I was curious enough to then rebuild
> > mapnik against the new binary, problems problems problems ensued (not
> > related to mapnik)... I imagine this will bite anybody who upgrades
> > their core python and tries to rebuild mapnik and also happens to have
> > the boost libs built from macports.
> > 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Fatal-Python-error%3A-Interpreter-not-initialized-%28version-mismatch-%29%3A-possible-solution-%28leopard%29-tp19484546p20610808.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