On Aug 21, 2010, at 5:18 PM, simon blackmore wrote:

> Hi,
> 
> I have Mapnik running nicely here, from this fantastic binary
> http://dbsgeo.com/downloads/
> 

That Mapnik binary includes pycairo.

> /usr/local/Cellar/mapnik/
> 

With that path I would assume you are not running Mapnik via the above binary, 
which installs in /Libary/Frameworks/Mapnik/...

Also, it appears the above path is from homebrew. DONT mix homebrew with 
macports.

Do:

$ python
>>> import mapnik
>>> mapnik.__file__

to see where your mapnik is coming from. I recommend only installing mapnik and 
cairo from one source, and the binary installer above should work on a vanilla 
osx system without homebrew or macports. I recommend uninstalling all things 
that you installed with those package managers relating to Mapnik and Cairo. If 
the binary installer did not work alone, post why.

> I wanted to give Cairo a try so I followed the Mapnik instructions through 
> Macports and now
> that lives here
> 
> /opt etc.
> 
> When I run the Mapnik svg example script I get this error.
> 
>  File "./cairo.py", line 8, in <module>
>    import cairo
>  File "/usr/local/Cellar/mapnik/cairo.py", line 19, in <module>
>    surface = cairo.SVGSurface(file.name, mapnik_map.width, mapnik_map.height)
> AttributeError: 'module' object has no attribute 'SVGSurface'
> 
> So I guess Mapnik is not finding the Cairo files.
> 
> Any ideas what I can do to get my Mapnik files to find them?
> 
> Would some sort of symbolic link do it or do I need to try and reinstall 
> Mapnik ?
> 
> Thanks for your help
> 
> Simon
> 
> 
> 
> _______________________________________________
> 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