[mapserver-users] Mapscript and Python
Rustam Kamberov
rustam.kamberov at gmail.com
Fri Sep 23 01:27:44 PDT 2011
Hi everyone,
i have installed Mapserver, and downloaded Mapscript library for Python,
followed the official procedure.
I tested http://localhost:8080/cgi-bin/test-cgi-mapscript.py example. it
works perfectly. But when I try to import mapscript from Python IDLE, it
gives the error shown below:
>>> import mapscript
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import mapscript
File "C:\Python26\lib\site-packages\mapscript.py", line 25, in <module>
_mapscript = swig_import_helper()
File "C:\Python26\lib\site-packages\mapscript.py", line 24, in
swig_import_helper
return _mod
UnboundLocalError: local variable '_mod' referenced before assignment
It seem the problem in the mapscript.py code. I would appreciate if you give
me an advice what to do.
Thanks in advance,
Rustam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110923/591e33b9/attachment.htm>
More information about the MapServer-users
mailing list