Error encountered checking Geometry returned from GEOS C function "GEOSWKBReader_read_r".

767 views
Skip to first unread message

Valentin Golev

unread,
Nov 23, 2010, 6:03:40 AM11/23/10
to geodjango
Hello,

I'm trying to use Django and GeoDjango with SQLite, and Django-
Olwidget for an admin.

I have a model with PointField and I'm using Oldwidget's
GeoModelAdmin for it. I added a new object with a point and it was
created, but then I tried to edit it in admin I got:



GEOSException at /admin/events/uevent/2/
Error encountered checking Geometry returned from GEOS C function
"GEOSWKBReader_read_r".



Please help me, I don't know what to do with it. Maybe I installed
something wrong. Copy-pasted from Exception page:

Environment:

Request Method: GET
Request URL: http://events.ride.ru/admin/events/uevent/2/
Django Version: 1.3 alpha 1 SVN-14686
Python Version: 2.6.6
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.flatpages',
'django.contrib.gis',
'django.contrib.admin',
'django.contrib.admindocs',
'django_extensions',
'south',
'pytils',
'test_utils',
'mailer',
'chronograph',
'sorl.thumbnail',
'treemenus',
'rosetta',
'haystack',
'olwidget',
'sentry',
'sentry.client',
'indexer',
'paging',
'fest.localization',
'fest.accreditation',
'fest.news',
'fest.events',
'fest.partners',
'fest.stats',
'fest.banners',
'fest.team',
'fest.press',
'fest.menu_localization',
'debug_toolbar']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
'debug_toolbar.middleware.DebugToolbarMiddleware')


Traceback:
File "/home/deploy/envs/fest/src/django/django/core/handlers/base.py"
in get_response
109. response = callback(request,
*callback_args, **callback_kwargs)
File "/home/deploy/envs/fest/src/django/django/contrib/admin/
options.py" in wrapper
245. return self.admin_site.admin_view(view)(*args,
**kwargs)
File "/home/deploy/envs/fest/src/django/django/utils/decorators.py" in
_wrapped_view
93. response = view_func(request, *args,
**kwargs)
File "/home/deploy/envs/fest/src/django/django/views/decorators/
cache.py" in _wrapped_view_func
78. response = view_func(request, *args, **kwargs)
File "/home/deploy/envs/fest/src/django/django/contrib/admin/sites.py"
in inner
191. return view(request, *args, **kwargs)
File "/home/deploy/envs/fest/src/django/django/utils/decorators.py" in
_wrapper
28. return bound_func(*args, **kwargs)
File "/home/deploy/envs/fest/src/django/django/utils/decorators.py" in
_wrapped_view
93. response = view_func(request, *args,
**kwargs)
File "/home/deploy/envs/fest/src/django/django/utils/decorators.py" in
bound_func
24. return func(self, *args2, **kwargs2)
File "/home/deploy/envs/fest/src/django/django/db/transaction.py" in
inner
291. res = func(*args, **kwargs)
File "/home/deploy/envs/fest/src/django/django/contrib/admin/
options.py" in change_view
916. form = ModelForm(instance=obj)
File "/home/deploy/envs/fest/lib/python2.6/site-packages/olwidget/
admin.py" in new_init
70. orig_init(self, *args, **kwargs)
File "/home/deploy/envs/fest/src/django/django/forms/models.py" in
__init__
259. object_data = model_to_dict(instance, opts.fields,
opts.exclude)
File "/home/deploy/envs/fest/src/django/django/forms/models.py" in
model_to_dict
151. data[f.name] = f.value_from_object(instance)
File "/home/deploy/envs/fest/src/django/django/db/models/fields/
__init__.py" in value_from_object
448. return getattr(obj, self.attname)
File "/home/deploy/envs/fest/src/django/django/contrib/gis/db/models/
proxy.py" in __get__
38. geom = self._klass(geom_value)
File "/home/deploy/envs/fest/src/django/django/contrib/gis/geos/
geometry.py" in __init__
79. g = wkb_r().read(geo_input)
File "/home/deploy/envs/fest/src/django/django/contrib/gis/geos/
prototypes/io.py" in read
133. return wkb_reader_read(self.ptr, wkb_s, len(wkb_s))
File "/home/deploy/envs/fest/src/django/django/contrib/gis/geos/
prototypes/threadsafe.py" in __call__
53. return call_geos_threaded(self.cfunc, args)
File "/home/deploy/envs/fest/src/django/django/contrib/gis/geos/
prototypes/threadsafe.py" in call_geos_threaded
33. return cfunc(thread_context.handle.ptr, *args)
File "/home/deploy/envs/fest/src/django/django/contrib/gis/geos/
prototypes/errcheck.py" in check_geom
43. raise GEOSException('Error encountered checking Geometry
returned from GEOS C function "%s".' % func.__name__)

Exception Type: GEOSException at /admin/events/uevent/2/
Exception Value: Error encountered checking Geometry returned from
GEOS C function "GEOSWKBReader_read_r".
Reply all
Reply to author
Forward
0 new messages