[Mapit] MAKING IT WORK on NT4
Frank Schumacher
Frank.Schumacher at t-online.de
Sun May 27 12:33:24 CEST 2001
Hi,
I am having some weird problems in getting showmap to run under NT. It
simply does not work. Maybe someone is able to help. I want to use the
Personal WebServer instead of mapitserver.py.
What works:
I am using NT's personal webserver, setup a new virtual directory with the
appropriate rights.
Everything works fine. I can call cgi-scripts (a personal *.exe-one) that
are executed, but when I call
http://localhost/cgi-map/src/frontends/showmap.py from the same directory
the server gets busy
starts the interpreter but after a couple of minutes stops with this error
message:
||CGI Timeout
||The specified CGI application exceeded the allowed time for processing.
The server has deleted the process
After which the server kicks the python-interpreter out of the memory as it
said in the error message.
So I tried to figure out if something was wrong with the script itself and
started it from the command
line and redirected its output to a file. All went as expected. Nothing to
worry about.
This is the script that gets called but never executes:
showmap.py (I added the extension to the showmap file in order not to
irritate NT with a missing file extension )
#! d:\mapit\python\python -u -o
__version__ = "$Revision: 1.8 $"
import os, sys
import cgi
sys.path.insert(0, '../base')
import pagetemplate, tileinfo, markerinfo, common, mapconfig
def main():
print 'Content-type: text/html'
print
template = pagetemplate.TemplateProcessor(mapconfig.template_file)
map = tileinfo.MapInfo(mapconfig.tile_dir, mapconfig.tile_ext)
marker = markerinfo.MarkerInfo(mapconfig.marker_locations,
mapconfig.marker_dir,
mapconfig.marker_ext)
parameters = common.Parameters(cgi.FieldStorage(), showmap = "showmap",
map = map, marker = marker)
template.generate_html(parameters, sys.stdout)
main()
Maybe someone, can give me an idea of where and how to find a solution.
Thank you.
Frank
More information about the Mapit
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)