[mapserver-users] Fwd: Mapserver and Zope

Steve Lime steve.lime@dnr.state.mn.us
Wed, 18 Sep 2002 12:33:54 -0500


Received: from mail.state.mn.us
	(state.mn.us [156.99.125.109])
	by co5.dnr.state.mn.us; Thu, 12 Sep 2002 06:48:33 -0500
Return-Path: <jacobi@dfki.de>
Received: from corp-200.dfki.uni-sb.de by mail.state.mn.us with ESMTP for steve.lime@dnr.state.mn.us; Thu, 12 Sep 2002 06:48:27 -0500
Received: from corp-200.dfki.uni-sb.de (root@localhost [127.0.0.1])
	by corp-200.dfki.uni-sb.de (8.8.8/8.8.8) with ESMTP id NAA09358
	for <steve.lime@dnr.state.mn.us>; Thu, 12 Sep 2002 13:48:24 +0200 (MET DST)
Received: from master.dfki.uni-sb.de (master.dfki.uni-sb.de [134.96.184.22])
	by corp-200.dfki.uni-sb.de (8.8.8/8.8.8) with ESMTP id NAA09354
	for <steve.lime@dnr.state.mn.us>; Thu, 12 Sep 2002 13:48:23 +0200 (MET DST)
Organization: DFKI Saarbruecken GmbH, D 66123 Saarbruecken
Received: from dfki.de (masterbrain [134.96.184.23])
	by master.dfki.uni-sb.de (8.9.3/1999080500) with ESMTP id NAA25679
	for <steve.lime@dnr.state.mn.us>; Thu, 12 Sep 2002 13:48:24 +0200 (MET DST)
Sender: jacobi@dfki.de
Message-Id: <3D808003.10978002@dfki.de>
Date: Thu, 12 Sep 2002 13:52:35 +0200
From: Sven Jacobi <jacobi@dfki.de>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.4-64GB-SMP i686)
X-Accept-Language: en
To: steve.lime@dnr.state.mn.us
Subject: Mapserver and Zope
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello,

I've seen your mails in the lists of mapserver and I have some
problems to which you (I hope so) could give me some hints...

I'm trying to use Mapserver in Zope which is Python based.
I've already "swigged" the libraries to Python and it seemed
to work.
But now I have got several problems:
1.When I try to test Mapserver with Python, I get a Segementation Fault
   when calling the draw()-function...below the code:

import sys
from mapscript import *

def drawmap(width=400, height=300, align="left"):
 mymap = mapObj("/home/...")
 mymap.width=width
 mymap.height=height
 myimage=mymap.draw()

drawmap()

Is it possible that my Python-version isn't correct, because it seems to
be an
error while changing to "C"...?

2. In Zope I always get an error because of failed authorization. This
is independent of
the way I try it ( External Method or Python Script).

Have you any idea where these errors might come from?

I would be very glad to get an answer,

thanks in forward,

Cheers,

Sven