[Community] Map won't show on demo

Sean Gillies sgillies at frii.com
Fri Feb 24 17:20:05 EET 2006


On Feb 24, 2006, at 12:07 AM, Tero Alén wrote:

>
> Sean Gillies kirjoitti 23.2.2006 kello 22.26:
>
>> On Feb 23, 2006, at 9:58 AM, Tero Alén wrote:
>>
>>>
>>> 2006/2/23, Kai Hänninen <kai.hanninen at mbconcert.fi>: Tero Alén  
>>> wrote:
>>> > Hi all
>>> >
>>> > I have installed PrimaGIS and generated PrimaGIS Demo Map, but  
>>> when I
>>> > view the page it show navigation and other but map self won't  
>>> show. On
>>> > event log I found following:
>>>
>>> Hi Tero
>>>
>>> In your (private) email you mentioned that you're running Ubuntu  
>>> Linux.
>>> IIRC, the recent Ubuntu distributions package python2.4 as the  
>>> default
>>> python interpreter (so running just 'python' will execute python  
>>> version
>>> 2.4).
>>>
>>>
>>> You are right.
>>>
>>> Zope versions < 2.9  require python 2.3 though, and it might be  
>>> the case
>>> that you've installed mapscript (and PCL) in python2.4's site- 
>>> packages
>>> and Zope is running on python2.3 and thus doesn't find these.  
>>> Could you
>>> please check if this might be the case?
>>>
>>> To install the modules for python 2.3, simply run the installation
>>> scripts for mapscript/PCL as
>>>
>>>   $ python2.3 setup.py install
>>>
>>> (Assuming that the python 2.3 interpreter is called 'python2.3'  
>>> as it is
>>> on Debian)
>>>
>>> Sorry, but that's not the case. First I made that mistake, but  
>>> found that by myself. I have checked on python2.3 console (or  
>>> what that is) with commands
>>>
>>>   import mapscript
>>>   help(mapscript)
>>>
>>> and got no errors.
>>>
>>> Any other ideas?
>>>
>>> --
>>> Tero Alén
>>>
>>>
>>
>> Hi Tero,
>>
>> There is a script at
>>
>>   http://trac.gispython.org/projects/PCL/browser/PCL/trunk/utils/ 
>> checkinstall.py
>>
>> that can be used to test that all the PCL dependencies are  
>> installed. Will you try this out? You need to execute the script  
>> with the same environment used by Plone for the best results.
>
> Hi Sean,
>
> I tried and got following output:
>
> $ python2.3 checkinstall.py
> 1) Checking import of referencing modules ... success
> cartography.referencing @ /usr/lib/python2.3/site-packages/ 
> cartography/referencing/__init__.pyc
>
> 2) Checking transformation ... success
> [(-105, 39), (-106, 40)], EPSG:4326 -> [(499999.99999999889,  
> 4316776.5830979366), (414639.53815663763, 4428236.0645195534)],  
> EPSG:26913
>
> 2) Checking import of gdal/ogr/osr ... success
> gdal @ /usr/lib/python2.3/gdal.py
> ogr @ /usr/lib/python2.3/ogr.py
> osr @ /usr/lib/python2.3/osr.py
>
> It says everything is ok?
>
> --
> Tero Alén
>

Yes, it says that the spatial referencing module and gdal/ogr/osr are  
installed. I forgot to test for mapscript, but you have already done  
that.

Seems ok to me.

Sean

---
Sean Gillies
sgillies at frii dot com
http://zcologia.com/news






More information about the Community mailing list