Artem:

     I'm not sure if your patch worked or not (though I did notice that
you're missing a closed parenthesis in the final line.) Now I'm getting a
jonpy error, and I'm not sure whether it relates to the specifics of the
patch or something malconfigured on my system. It's a bit above my head.
Perhaps I'll revert to 0.4.
     Thanks much for your help and for the beautiful software. My most
recent error is reproduced below, in case it's of any help to you:

jonpy error: <class 'mapnik.ogcserver.exceptions.ServerConfigurationError'>
at Sat Feb 16 09:21:10 2008
<class 'mapnik.ogcserver.exceptions.ServerConfigurationError'>: The factory
module could not be loaded.
/usr/lib/python2.5/site-packages/mapnik/ogcserver/cgiserver.py in
__init__(self=<__main__.WMSHandler object at 0x82854ac>)
   42         try:
   43             mapfactorymodule = __import__(conf.get('server',
'module'))
   44         except ImportError:
   45             raise ServerConfigurationError('The factory module could
not be loaded.')
   46         if hasattr(mapfactorymodule, 'WMSFactory'):
   47             self.mapfactory = getattr(mapfactorymodule,
'WMSFactory')()
   48         else:
global ServerConfigurationError = <class '
mapnik.ogcserver.exceptions.ServerConfigurationError'>
/usr/lib/python2.5/site-packages/jonpy-0.06-py2.5.egg/jon/cgi.py in
process(self=<jon.cgi.CGIRequest object at 0x826cbac>)
  614     """Read the CGI input and create and run a handler to handle the
request."""
  615     self._init()
  616     try:
  617       handler = self._handler_type()
  618     except:
  619       self.traceback()
  620     else:
handler undefined, self = <jon.cgi.CGIRequest object at 0x826cbac>,
self._handler_type = <class '__main__.WMSHandler'>
Content-Type: text/html; charset=iso-8859-1

<html><head><title>Error</title></head>
<body><h1>Error</h1>
<p>Sorry, an error occurred. Please try again later.</p>


-- 
    Hank Sims
    Editor
    North Coast Journal
    (707) 826-2000

On Feb 16, 2008 8:09 AM, Artem Pavlenko <[EMAIL PROTECTED]> wrote:

>
> On 16 Feb 2008, at 16:05, Artem Pavlenko wrote:
>
> > Hi Hans,
> >
> > On 16 Feb 2008, at 15:45, Hank Sims wrote:
> >
> >>      Hi all:
> >>
> >>      I'm trying to get the Mapnik WMS server (from v. 0.5) up and
> >> running on my Ubuntu Gutsy box, but I keep running into the same
> >> import error:
> >>
> >> Traceback (most recent call last):
> >>   File "./wms", line 9, in <module>
> >>     from mapnik.ogcserver.cgiserver import Handler
> >>   File "/usr/lib/python2.5/site-packages/mapnik/ogcserver/
> >> cgiserver.py", line 29, in <module>
> >>     from wms111 import ExceptionHandler as ExceptionHandler111
> >>   File "/usr/lib/python2.5/site-packages/mapnik/ogcserver/
> >> wms111.py", line 22, in <module>
> >>     from common import ParameterDefinition, Response, Version,
> >> ListFactory, \
> >>   File "/usr/lib/python2.5/site-packages/mapnik/ogcserver/
> >> common.py", line 23, in <module>
> >>     from mapnik import Map, Color, Envelope, render, rawdata,
> >> Image, Projection as MapnikProjection, render_to_file, Coord
> >> ImportError: cannot import name rawdata
> >>
> >>      For what it's worth, mapnik itself seems to work fine. I've
> >> drawn a couple of sample maps with it.
> >>
> >>      I've tested this error from the shell, and "rawdata" seems to
> >> be the only module that won't import.
> >>      My general setup and configuration is based on Matt Perry's
> >> little tutorial.
> >>      Any ideas? I've already installed and reinstalled.
> >>
> >>      Thanks much,
> >
> >
> > It looks like WMS hasn't been updated to reflect last moment change
> > to Python bindings. I'll need to install WMS on my development
> > machine to test it properly (and I will asap) but here is something
> > that might just work  - replace GetMap in common.py with :
> >
> > # Untested !!!!
> > def GetMap(self, params):
> >          m = self._buildMap(params)
> >          im = Image(params['width'], params['height'])
> >          render(m, im)
> >          return Response(params['format'], im.tostring(params
> > ['format'])
>
>
> And remove reference to rawdata in import  .....
>
>
> >
> >
> > Let me know if it works for you.
> >
> > Cheers
> > Artem
> >
> >>
> >>
> >> --
> >>     Hank Sims
> >>     Editor
> >>     North Coast Journal
> >>     (707) 826-2000
> >> _______________________________________________
> >> 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