[Geomoose-users] Print service configuration issue
Jim Klassen
Jim.Klassen at ci.stpaul.mn.us
Fri Mar 28 11:07:09 EDT 2008
It looks like the mapscript module was compiled against Python 2.4 .x and you are trying to use it with Python 2.5.1.
>>> On 3/28/2008 at 9:47 AM, "Clinton Olsen" <clinton at co.emery.ut.us> wrote:
Hi,
I have been trying to get the print service to run. I followed all the directions, but when I tried to print the map I got these errors in the Apache error log. I have tried researching the error in Google, and the map server pages but I am unable to find anything. When I ran the test-cgi-mapscript.py script using the http://127.0.0.1/cgi-bin/test-cgi-mapscript.py I received the error below the Apache error log.
Has anyone experienced this before, or know what direction I need to look for a solution? Thanks.
Apache Error Log
[Fri Mar 28 08:24:17 2008] [error] [client 127.0.0.1] Premature end of script headers: print.py, referer: http://localhost/geomoose/cemetery.html
[Fri Mar 28 08:24:17 2008] [error] [client 127.0.0.1] Traceback (most recent call last):\r, referer: http://localhost/geomoose/cemetery.html
[Fri Mar 28 08:24:17 2008] [error] [client 127.0.0.1] File "C:/ms4w/Apache/cgi-bin/print.py", line 40, in <module>\r, referer: http://localhost/geomoose/cemetery.html
[Fri Mar 28 08:24:17 2008] [error] [client 127.0.0.1] import mapscript\r, referer: http://localhost/geomoose/cemetery.html
[Fri Mar 28 08:24:17 2008] [error] [client 127.0.0.1] File "C:\\ms4w\\Apache\\cgi-bin\\mapscript.py", line 5, in <module>\r, referer: http://localhost/geomoose/cemetery.html
[Fri Mar 28 08:24:17 2008] [error] [client 127.0.0.1] import _mapscript\r, referer: http://localhost/geomoose/cemetery.html
[Fri Mar 28 08:24:17 2008] [error] [client 127.0.0.1] ImportError: Module use of python24.dll conflicts with this version of Python.\r, referer: http://localhost/geomoose/cemetery.html
test-cgi-mapscript.pyerror log
<type 'exceptions.ImportError'>Python 2.5.1: C:\python25\python.exe
Fri Mar 28 08:34:35 2008
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
C:\ms4w\Apache\cgi-bin\test-cgi-mapscript.py ( file:///C:/ms4w/Apache/cgi-bin/test-cgi-mapscript.py ) in ()
6 cgi.test()
7
8 import mapscript
9
10 print "<h2>mapscript module attributes</h2>"
mapscript undefined
C:\ms4w\Apache\cgi-bin\mapscript.py ( file:///C:/ms4w/Apache/cgi-bin/mapscript.py ) in ()
3 # This file is compatible with both classic and new-style classes.
4
5 import _mapscript
6 import new
7 new_instancemethod = new.instancemethod
_mapscript undefined
<type 'exceptions.ImportError'>: Module use of python24.dll conflicts with this version of Python. <!-- The above is a description of an error in a Python program, formatted for a Web browser because the 'cgitb' module was enabled. In case you are not reading this in a Web browser, here is the original traceback: Traceback (most recent call last): File "C:/ms4w/Apache/cgi-bin/test-cgi-mapscript.py", line 8, in import mapscript File "C:\ms4w\Apache\cgi-bin\mapscript.py", line 5, in
( http://127.0.0.1/cgi-bin/test-cgi-mapscript.py )
Clinton Olsen
IS/GIS Technician
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20080328/157d43f4/attachment.html
More information about the Geomoose-users
mailing list