daisysparla

python errors

Discussion created by daisysparla on Apr 29, 2013
Latest reply on May 1, 2013 by daisysparla
Hello,

I'm working on mine final internship en thesis. And working for the first time with pythonwin.

I'm trying to make the python script work but i'm getting a lot of errors. I'm using pythonwin (2.6)

Traceback (most recent call last):

  File "C:\Python26\ArcGIS10.0\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 309, in RunScript
    debugger.run(codeObject, __main__.__dict__, start_stepping=0)

  File "C:\Python26\ArcGIS10.0\Lib\site-packages\pythonwin\pywin\debugger\__init__.py", line 60, in run
    _GetCurrentDebugger().run(cmd, globals,locals, start_stepping)

  File "C:\Python26\ArcGIS10.0\Lib\site-packages\pythonwin\pywin\debugger\debugger.py", line 624, in run
    exec cmd in globals, locals

  File "T:\U12002_Afstuderen_Daisy_en_Tiemco\Praktijk_water]\Test_1_DS\no_value_DS.py", line 69, in <module>
    arcpy.ASCIIToRaster_conversion(Blok_asc, ASCIITo_asc9, "INTEGER")

  File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\conversion.py", line 1615, in ASCIIToRaster
    raise e

ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000885: Input ASCII raster file: t:\U12002_Afstuderen_Daisy_en_Tiemco\Praktijk_water]\Test_1_DS\No_value_areas\Py_input/'s does not have a file extension.

ERROR 000876: Output raster: t:\U12002_Afstuderen_Daisy_en_Tiemco\Praktijk_water]\Test_1_DS\No_value_areas\workspace\Blok_asc.asc's extension is invalid for the output raster format.
Failed to execute (ASCIIToRaster).


Is there anyone who can help me with this? If you need more information, let me know:)

Thanks:)

Daisy

Outcomes