[Mapserver-users] TypeError-Problem with Python Mapscript

Bjoern Platzen bplatzen at sosnetz.de
Thu Nov 20 09:50:12 EST 2003


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