Hi Nop. Thanks for the report.

I've been busy with prep for the 0.7 release so tracking down this  
issue after Philip originally reported fell off my radar( as I had  
planned to look closer).

Will do as soon as possible unless one of the other devs gets to it  
before me.

Could you also send an email to Mapnik-dev?

Dane

--- \o/ ---
Sent from my phone

On Dec 12, 2009, at 10:00 AM, Nop <[email protected]> wrote:

>
> Hi!
>
>
> It seems that I have run into the same problem that was reported  
> earlier
> by Philip.
>
> I have a freshly installed python mapnik and the first attempt at
> running generate_image.py causes a Segmentation fault in
> mapnik.render(). When I change the script to use render_to_file(),  
> there
> is no error and a valid image is created that looks just like it  
> should.
>
> I would need to solve this problem as I'm trying to build up a major
> rendering chain on the server.
>
> Operating system is Ubuntu Karmic
>
>> $ apt-cache show python-mapnik
>
> Package: python-mapnik
> Priority: optional
> Section: universe/python
> Installed-Size: 5740
> Maintainer: Ubuntu MOTU Developers <[email protected]>
> Original-Maintainer: Dominic Hargreaves <[email protected]>
> Architecture: amd64
> Source: mapnik
> Version: 0.6.1-0ubuntu4
> Provides: python2.5-mapnik, python2.6-mapnik
> Depends: libboost-python1.38.0 (>= 1.38.0-1), libc6 (>= 2.4), libgcc1
> (>= 1:4.1.1), libjpeg62, libmapnik0.6, libpng12-0
> (>= 1.2.13-4), libstdc++6 (>= 4.4.0), python (<< 2.7), python (>=  
> 2.5),
> python-central (>= 0.6.11)
> Filename: pool/universe/m/mapnik/python- 
> mapnik_0.6.1-0ubuntu4_amd64.deb
> Size: 1250930
> MD5sum: 44622c39f5d514270f9ef67e4d909f3a
> SHA1: e9ac4c3aab1ef3ecb9abba6f8b49a89b19a774bb
> SHA256:  
> 12f99c3dca6c4556350e3e577a5c346a4c83d9796bf7a2ff1183f0f1c2b76567
> Description: C++/Python toolkit for developing GIS applications  
> (Python)
>  Mapnik is an OpenSource C++/Python toolkit for developing GIS
>  (Geographic Information Systems) applications. At the core is a C++
>  shared library providing algorithms/patterns for spatial data  
> access and
>  visualization.
>  .
>  Essentially a collection of geographic objects (map, layer,  
> datasource,
>  feature, geometry), the library doesn't rely on "windowing systems"  
> and
>  is intended to work in multi-threaded environments
>  .
>  High-level Python bindings (boost.python) facilitate rapid  
> application
>  development, targeting zope3, django, etc.
>  .
>  This package contains the Python bindings.
> Homepage: http://www.mapnik.org/
> Python-Version: 2.5, 2.6
> Bugs: https://bugs.launchpad.net/ubuntu/+filebug
> Origin: Ubuntu
>
>
>
>> On Nov 1, 2009, at 1:13 PM, Philip Stubbs wrote:
>>
>>> 2009/11/1 Philip Stubbs<[email protected]>:
>>>> Hi all,
>>>>
>>>> I am new hear but I don't know where else to look. I have installed
>>>> mapnik and am trying to get the generate_tiles script to work. It  
>>>> is
>>>> causing a segmentation fault when mapnik.render is called. I have
>>>> tried the 'hello world' example and that works, but I notice that
>>>> uses
>>>> mapnik.render_to_file. Therefore I tried to adjust that script to  
>>>> use
>>>> the mapnik.render method, and it also then seg faulted.
>>>>
>>>> I am not a programmer, and what little I do know is not in  
>>>> Python :-(
>>>> My Google foo is also weak today. Any help would be appreciated.
>>>
>>> Ops! Should have said that I am running Ubuntu 9.10, I installed
>>> python-mapnik and Postgres from the Ubuntu repositories, and  
>>> followed
>>> the set-up guide from the openstreetmap wiki.
>>>
>>> Now I have made a copy of the generate_image.py script and changed  
>>> it
>>> to use mapnik.render_to_file, and it has just successfully  
>>> rendered an
>>> image of the UK. This is going to be of more use to me than the  
>>> tiles,
>>> so I think I am sorted. Still, it would be good to know why the one
>>> method works when the other does not. I may in the future want a  
>>> local
>>> tile server.
>>>
>>>
>>> --
>>> Philip Stubbs
>>> _______________________________________________
>>> 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
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to