[Mapserver-users] TypeError-Problem with Python Mapscript
Bjoern Platzen
bplatzen at sosnetz.de
Thu Nov 20 08:48:18 PST 2003
OK, I've got it...
On the webserver a symbol image that was part of a symbol defined in my
symbols.sym has gone lost...
I found out by calling my mapfile with the mapserver-cgi wich generated
an error message.
Maybe it would be a good idea to throw an Exception in Mapscript as well
if something like this happens.
Thanks to you, Sean and Michael!
Bye,
Bjoern
Am Donnerstag, 20. November 2003 15:50 schrieb Bjoern Platzen:
> Hi List,
>
> I just loaded my PyMapScript application onto the webserver.
>
> But now I get Errors, that I didn't get on my machine (They're both
> SuSE Linux 8.0, Mapserver 3.6.5 & Mapscript compiled with the same
> options).
>
> This is what I get on the shell:
> >>> import mapscript
> >>> mymap =
>
> mapscript.mapObj('/usr/local/httpd/htdocs/bauinfo/bauinfo.map')
>
> >>> mymap
>
> <C mapObj instance at None>
>
> >>> ip=mymap.web.imagepath
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> TypeError: Type error. Expected _p_mapObj
>
> >>> mymap.__dict__
>
> {'this': None, 'thisown': 1}
>
> >>> mymap.extent.minx
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> TypeError: Type error. Expected _p_mapObj
>
> It seems as if the mapObj() isn't built properly
> -> <C mapObj instance at None>
> ^^^^^^
> I think there should be something like
> -> <C mapObj instance at _08d0a240_p_mapObj>
> ^^^^^^^^^^^^^^^^^^
>
> Has anyone an idea, of what could cause that the mapObj() isn't build
> right?
>
> Any help would be great!
>
> Thanks,
>
> Bjoern.
--
small office solutions
info at sosnetz.de - http://www.sosnetz.de
More information about the MapServer-users
mailing list