Hi,
I managed to install dBox demo from www.maptools.org, but I can run only part of the application. When I start the application I can see only the foreground layers. I check the _javascript_ console and I get this error which I attached as html file. It seems that it can write the xml file
How can I solve it?
Cheers,
William
Access over 1 million songs - Yahoo! Music Unlimited Try it today.
|
|
| IOError | Python 2.4.3: C:\Python24\python.exe Sat Nov 04 12:29:59 2006 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| C:\Inetpub\scripts\make_dlegend_xml_cgi.py |
| 34 server = form['server'].value |
| 35 |
| 36 make_dlegend_xml.write_xml(mapfile, server) |
| 37 |
| 38 sys.exit(0) |
| make_dlegend_xml = <module 'make_dlegend_xml' from 'C:\Inetpub\scripts\make_dlegend_xml.pyc'>, make_dlegend_xml.write_xml = <function write_xml>, mapfile = 'c:/Inetpub/wwwroot/demo/example/itasca.map', server = 'localhost' |
| C:\Inetpub\scripts\make_dlegend_xml.py in write_xml(mapfile='c:/Inetpub/wwwroot/demo/example/itasca.map', server='localhost') |
| 292 for i in range(0, len(layer_indexes)): |
| 293 layer = mapp.getLayer(layer_indexes[i]) |
| 294 write_layer(layer, mapp, ' ') |
| 295 |
| 296 print ' </group>' |
| global write_layer = <function write_layer>, layer = <mapscript.layerObjPtr; proxy of C layerObj instance at _884b9500_p_layer_obj>, mapp = <mapscript.mapObj; proxy of C mapObj instance at _88839100_p_map_obj> |
| C:\Inetpub\scripts\make_dlegend_xml.py in write_layer(layer=<mapscript.layerObjPtr; proxy of C layerObj instance at _884b9500_p_layer_obj>, mapp=<mapscript.mapObj; proxy of C mapObj instance at _88839100_p_map_obj>, tab=' ') |
| 57 if number_of_classes <= 1: |
| 58 |
| 59 icon = get_icon(mapp, layer) |
| 60 |
| 61 # Why is this here? |
| icon undefined, global get_icon = <function get_icon>, mapp = <mapscript.mapObj; proxy of C mapObj instance at _88839100_p_map_obj>, layer = <mapscript.layerObjPtr; proxy of C layerObj instance at _884b9500_p_layer_obj> |
| C:\Inetpub\scripts\make_dlegend_xml.py in get_icon(mapp=<mapscript.mapObj; proxy of C mapObj instance at _88839100_p_map_obj>, layer=<mapscript.layerObjPtr; proxy of C layerObj instance at _884b9500_p_layer_obj>, klass=<mapscript.classObjPtr; proxy of C classObj instance at _601e9d00_p_class_obj>, klass_index=None) |
| 156 # reworking logic there and in process_args(). |
| 157 # |
| 158 icon.save(mapp.web.imagepath + filename, mapp) |
| 159 |
| 160 return mapp.web.imageurl + filename |
| icon = <mapscript.imageObjPtr; proxy of C imageObj instance at _003dd901_p_imageObj>, icon.save = <bound method imageObjPtr.save of <mapscript.ima... of C imageObj instance at _003dd901_p_imageObj>>, mapp = <mapscript.mapObj; proxy of C mapObj instance at _88839100_p_map_obj>, mapp.web = <mapscript.webObjPtr; proxy of C webObj instance at _a0009500_p_webObj>, mapp.web.imagepath = 'c:/Inetpub/wwwroot/tmp/', filename = 'dlegend_39761162636199_pls_sectpy3.png' |
| C:\Python24\lib\site-packages\mapscript.py in save(*args=(<mapscript.imageObjPtr; proxy of C imageObj instance at _003dd901_p_imageObj>, 'c:/Inetpub/wwwroot/tmp/dlegend_39761162636199_pls_sectpy3.png', <mapscript.mapObj; proxy of C mapObj instance at _88839100_p_map_obj>)) |
| 1482 except: pass |
| 1483 |
| 1484 def save(*args): return _mapscript.imageObj_save(*args) |
| 1485 def getBytes(*args): return _mapscript.imageObj_getBytes(*args) |
| 1486 def __init__(self, *args): |
| save undefined, args = (<mapscript.imageObjPtr; proxy of C imageObj instance at _003dd901_p_imageObj>, 'c:/Inetpub/wwwroot/tmp/dlegend_39761162636199_pls_sectpy3.png', <mapscript.mapObj; proxy of C mapObj instance at _88839100_p_map_obj>), global _mapscript = <module '_mapscript' from 'C:\Python24\lib\site-packages\_mapscript.pyd'>, _mapscript.imageObj_save = <built-in function imageObj_save> |
IOError: msSaveImageGD(): Unable to access file. Unable to open file c:/Inetpub/wwwroot/tmp/dlegend_39761162636199_pls_sectpy3.png for writing
args =
('msSaveImageGD(): Unable to access file. Unable t...legend_39761162636199_pls_sectpy3.png for writing',)
errno =
None
filename =
None
strerror =
None
