Hi Ken,

So you are still trying to avoid those nonetype errors, huh?  Well, I  
just looked back at your email and yes: from my experience with  
compiling mapnik dependencies macports has been troublesome.  I would  
recommend trying to compile the mapnik libs in the default /usr/local/ 
lib/mapnik location.

I still rely on macports for the boost libraries and a few image  
libaries, and scons is able to find them in /opt/local/ without  
explicitly setting those path during the scons build as long as the  
macports binaries are on my path (export PATH=/opt/local/bin:/opt/ 
local/sbin:$PATH).

So my build just looks like this:

python scons/scons.py DEBUG=y PGSQL_INCLUDES=/usr/local/pgsql/include  
PGSQL_LIBS=/usr/local/pgsql/lib

Dane


On Apr 17, 2008, at 11:49 AM, Ken-ichi wrote:

> Hi Claire,
>
> I'm still struggling to get mapnik installed myself, but here are
> somethings you can try:
>
> - check when version of python you're running with
>
> which python
>
> and make sure that's the same framework python for which you  
> installed mapnik.
>
>
> - in your mapnik src dir, try
>
> python scons/scons.py -h
>
> with whatever flags you initially used to compile and make sure that
> all the paths line up with what you might expect.  It's possible you
> have another copy of python installed on your system (e.g. the
> MacPorts version), and mapnik installed itself there instead of where
> you think.
>
> Hope that helps a little.
>
>
> -Ken-ichi
>
>
>
> On Thu, Apr 17, 2008 at 10:35 AM, Claire McLister
> <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>>  I just managed to get mapnik compiled and installed on Mac OS X.
>>
>>  When I invoke python and try to import mapnik, I get the following
>> error:
>>
>>  Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:16)
>> [GCC 4.0.1 (Apple Inc. build 5465)] on darwin
>> Type "help", "copyright", "credits" or "license" for more  
>> information.
>>>>> from mapnik import *
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>> ImportError: No module named mapnik
>>>>>
>>
>>  If I look under the site-packages directory for python, mapnik.so
>> seems to be there:
>>
>>  [zeemac:site-packages]$ ls -l /System/Library/Frameworks/
>> Python.framework/Versions/2.5/lib/python2.5/site-packages/mapnik/
>> total 5248
>> -rw-r--r--   1 root  wheel     2911 Sep 25  2007 __init__.py
>> -rwxr-xr-x   1 root  wheel  2675520 Apr 17 10:04 _mapnik.so*
>> drwxr-xr-x  11 root  wheel      374 Apr 17 10:09 ogcserver/
>> -rw-r--r--   1 root  wheel      132 Apr 17 10:09 paths.py
>> [zeemac:site-packages]$
>>
>>  Can someone please point me in the right direction?
>>
>>  Thanks
>>
>> Claire
>>
>>  --
>>  Claire McLister                        [EMAIL PROTECTED]
>>  21060 Homestead Road Suite 150
>>  Cupertino, CA 95014            408-733-2737(fax)
>>
>>                      http://www.zeemaps.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

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

Reply via email to