To run the WSGI as a standalone Mapnik OGC Server:
I run the below line from the command prompt:
C:\Python25\python.exe "C:\Documents and
Settings\jmitchell\Desktop\wmsWSGI.py"
I get the following error:
--------------------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Documents and Settings\jmitchell\Desktop\wmsWSGI.py", line 7, in
<mod
ule>
application = WSGIApp('C:/mapnik_0_6_1/example_code/wms/ogcserver.conf')
File "c:\mapnik_0_6_1\site-packages\mapnik\ogcserver\wsgi.py", line 42, in
__i
nit__
raise ServerConfigurationError('The factory module could not be
loaded.')
mapnik.ogcserver.exceptions.ServerConfigurationError: The factory module
could n
ot be loaded.
--------------------------------------------------------------------------------
How can I fix the error "The factory module could not be loaded."
The map_factory.py file exists and the contents are listed below:
----------------------------------------------------
from mapnik.ogcserver.WMS import BaseWMSFactory
class WMSFactory(BaseWMSFactory):
def __init__(self):
BaseWMSFactory.__init__(self)
#self.loadXML('/full/path/to/mapfile.xml')
self.loadXML('C:/mapnik_0_6_1/osm.xml')
self.finalize()
----------------------------------------------------
Why can't it be loaded?
John
_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users