Geodjango exception: access violation writing

Django, Flask, Bottle, WSGI, CGI…
Antworten
grorol2
User
Beiträge: 13
Registriert: Mittwoch 31. August 2011, 07:04

Hallo liebe Pythongemeinde,

ich versuche nun schon seit Tagen eine Geodjango app zu bauen und komme einfach nicht weiter. Jedesmal wenn ich Geometrien speichern will bekomme ich die Meldung access violation writing. Das passiert sowohl beim bei der geodjango eignenen Doku https://docs.djangoproject.com/en/dev/r ... l-database als auch bei einem weiteren Tutorial. Falls jemand ne Idee hat oder der Code benötigt wird einfach melden.

Vielen Dank

Hier der Traceback:
Environment:


Request Method: POST
Request URL: http://127.0.0.1:8000/admin/shapeeditor/feature/3/

Django Version: 1.3.1
Python Version: 2.6.0
Installed Applications:
['django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.gis',
'shapeeditor',
'django.contrib.admin']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')


Traceback:
File "c:\Python26\lib\site-packages\django\core\handlers\base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "c:\Python26\Lib\site-packages\django\contrib\admin\options.py" in wrapper
307. return self.admin_site.admin_view(view)(*args, **kwargs)
File "C:\Python26\lib\site-packages\django\utils\decorators.py" in _wrapped_view
93. response = view_func(request, *args, **kwargs)
File "c:\Python26\Lib\site-packages\django\views\decorators\cache.py" in _wrapped_view_func
79. response = view_func(request, *args, **kwargs)
File "c:\Python26\Lib\site-packages\django\contrib\admin\sites.py" in inner
197. return view(request, *args, **kwargs)
File "C:\Python26\lib\site-packages\django\utils\decorators.py" in _wrapper
28. return bound_func(*args, **kwargs)
File "C:\Python26\lib\site-packages\django\utils\decorators.py" in _wrapped_view
93. response = view_func(request, *args, **kwargs)
File "C:\Python26\lib\site-packages\django\utils\decorators.py" in bound_func
24. return func(self, *args2, **kwargs2)
File "C:\Python26\lib\site-packages\django\db\transaction.py" in inner
217. res = func(*args, **kwargs)
File "c:\Python26\Lib\site-packages\django\contrib\admin\options.py" in change_view
962. if form.is_valid():
File "C:\Python26\lib\site-packages\django\forms\forms.py" in is_valid
121. return self.is_bound and not bool(self.errors)
File "C:\Python26\lib\site-packages\django\forms\forms.py" in _get_errors
112. self.full_clean()
File "C:\Python26\lib\site-packages\django\forms\forms.py" in full_clean
267. self._clean_fields()
File "C:\Python26\lib\site-packages\django\forms\forms.py" in _clean_fields
284. value = field.clean(value)
File "c:\Python26\lib\site-packages\django\contrib\gis\forms\fields.py" in clean
53. if str(geom.geom_type).upper() != self.geom_type and not self.geom_type == 'GEOMETRY':
File "c:\Python26\Lib\site-packages\django\contrib\gis\geos\geometry.py" in geom_type
219. return capi.geos_type(self.ptr)
File "c:\Python26\Lib\site-packages\django\contrib\gis\geos\prototypes\threadsafe.py" in __call__
51. return self.cfunc(*args)
File "c:\Python26\Lib\site-packages\django\contrib\gis\geos\prototypes\errcheck.py" in check_string
87. free(result)

Exception Type: WindowsError at /admin/shapeeditor/feature/3/
Exception Value: exception: access violation writing 0x64000183
grorol2
User
Beiträge: 13
Registriert: Mittwoch 31. August 2011, 07:04

Hab den Fehler selber gefunden.

Umgebungsvariable für GEOS Bibliothek setzen
GEOS_LIBRARY_PATH=c:\gdal\bin\
Antworten