[Mapserver-users] TypeError-Problem with Python Mapscript
Bjoern Platzen
bplatzen@sosnetz.de
Thu, 20 Nov 2003 15:50:12 +0100
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@sosnetz.de - http://www.sosnetz.de
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users