hi Dane! I recompiled Mapnik from SVN and now all works fine! thank you very much!
tommaso On Wed, Sep 24, 2008 at 12:11 AM, Dane Springmeyer <[EMAIL PROTECTED]>wrote: > Hi Tommoso, > > Glad you are closer. > > > On Sep 23, 2008, at 2:51 PM, tommaso wrote: > > thanks Dave, >> > > Dane actually. > > I didn't yet succeed but maybe now I'm not far from the >> solution...(hope...) >> What I did: >> >> 1) I tried the examples of Dane >> (http://mapnik-utils.googlecode.com/svn/trunk/tutorials/wms/) >> >> > okay. > > 2) I got a error "could not import rawdata", >> > > So that means you are running mapnik 0.5.0 or lower right? > > You should clear out the files you've made local modifications to and just > re compile mapnik from SVN Head. > > That would be easier than trying to patch the code problems yourself (which > the rawdata one is just one of several). > > >> >> 3) now if I call the wms server from a browser I get a picture, but is a >> picture of a error log which says: >> file "/usr/lib/python2.5/site-packages/jon/common.py, line 286 in GetMap >> im = im = fromstring('RGBA', (params['width'], params['height'])) >> TypeError; fromstring() takes at least 3 arguments (2 given) >> >> > I think this is a problem with your attempt to patch. > > >> - The apache error.log says (there are no errors, right?): >> >> registered datasource : postgis >> [..snip..] >> [Tue Sep 23 23:33:50 2008] [error] [client 127.0.0.1] destroyed >> singleton >> [Tue Sep 23 23:33:50 2008] [error] [client 127.0.0.1] destroyed >> singleton >> >> >> > > Yup, no errors because it successfully rendered an image of an error (to > fit the WMS spec). Kind of odd, but useful. > > > - Finally, if I try to run the script /usr/lib/cgi-bin/wms/mapnikwms.py >> I get: >> >> $ /usr/lib/cgi-bin/wms/mapnikwms.py >> registered datasource : postgis >> registered datasource : raster >> registered datasource : shape >> >> onlineresource = 'http://%s:%s%s?' % (req.environ['SERVER_NAME'], >> req.environ['SERVER_PORT'], req.environ['SCRIPT_NAME']) >> File "/usr/lib/python2.5/UserDict.py", line 22, in __getitem__ >> raise KeyError(key) >> KeyError: 'SERVER_NAME' >> </ServiceException> >> </ServiceExceptionReport> destroyed singleton >> > > That will not work because it must be run in a server instance. > > I'd upgrade your mapnik on svn and then try again (and post back). > > Cheers, > > Dane
_______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

