Сабж.
Аналогичный вопрос на Stack Overflow:
http://stackoverflow.com/questions/13346357/
Вот что выдает дебаггер более подробно:
Код: Выделить всё
pydev debugger: starting
Traceback (most recent call last):
File "C:\Eclipse_SDK\plugins\org.python.pydev_2.7.4.2013051601\pysrc\pydevd.py", line 920, in trace_dispatch
is_file_to_ignore = DictContains(DONT_TRACE, base) #we don't want to debug threading or anything related to pydevd
RuntimeError: maximum recursion depth exceeded while calling a Python object
Fatal Python error: Cannot recover from stack overflow.
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
Код: Выделить всё
#class Feature Found at: osgeo.ogr
class Feature(object):
"""Proxy of C++ OGRFeatureShadow class"""
thisown = _swig_property(lambda x:x.this.own(), lambda x, v:x.this.own(v), doc='The membership flag')
__repr__ = _swig_repr
__swig_destroy__ = _ogr.delete_Feature
__del__ = lambda self:None
def __init__(self, *args, **kwargs):
"""__init__(self, FeatureDefn feature_def) -> Feature"""
this = _ogr.new_Feature(*args, **kwargs)
try:
self.this.append(this)
except:
self.this = this
В вопросе на SO в принципе всё описано. Повторю здесь - сам сценарий выполняется (run), но его невозможно отдебажить step by step. Данное исключение выдаётся, когда доходит до создания объекта ogr.Feature().
Спасибо за помощь!