problems with ter2blend

when i try to import terain in blender with ter2blend i get this message in the console

terragen terrain file continue

file “terrain”, line 482 in terrain
UnBoundLocalerror: Local variable ‘xpts’ referenced before assignement

can someone help me
i work with blender 2.25 and python 2.0.1 %|

sorry, i cant work it either… useless at python.
i get:
File “Terrain”, line 286, in bevent
File “Terrain”, line 304, in draw
File “Terrain”, line 378, in sun
AttributeError: ‘module’ object has no attribute ‘get’

hmmmmmm…i suck at all forms of programming…

Here is the tutorial with some Version specific notes. I have had problems using other versions of Blender than the ones indicated. Python API was changing around during those times.

http://users.skynet.be/sky33676/ter2blend1.html#glassball

thanks all of you but i found finaly the solution
i manipulate those terrains in terragen and save them and now when i open them in blender it works correctly