#24724: GeoDjango with Django 1.8 - 'GDALAllRegister' Attribute Error -------------------------------------+------------------------------------- Reporter: dimitri-justeau | Owner: nobody Type: Bug | Status: new Component: GIS | Version: 1.8 Severity: Release blocker | Resolution: Keywords: geodjango gdal | Triage Stage: Accepted windows rasters | Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by timgraham): I managed to fix some of the failures. The remaining failures are below (not sure if they are Django problems that need to be fixed or a problem with my test machine setup). {{{ ====================================================================== ERROR: test03a_layers (gis_tests.gdal_tests.test_ds.DataSourceTest) Testing Data Source Layers. ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\Users\Tim\code\django\tests\gis_tests\gdal_tests\test_ds.py", line 12 5, in test03a_layers self.assertRaises(OGRIndexError, layer.__getitem__, 50000) File "C:\Program Files\Python 3.5\Lib\unittest\case.py", line 704, in assertRa ises return context.handle('assertRaises', callableObj, args, kwargs) File "C:\Program Files\Python 3.5\Lib\unittest\case.py", line 162, in handle callable_obj(*args, **kwargs) File "c:\Users\Tim\code\django\django\contrib\gis\gdal\layer.py", line 51, in __getitem__ return self._make_feature(index) File "c:\Users\Tim\code\django\django\contrib\gis\gdal\layer.py", line 84, in _make_feature return Feature(capi.get_feature(self.ptr, feat_id), self) OSError: [WinError -1073741795] Windows Error 0xc000001d ====================================================================== ERROR: test07b_closepolygons (gis_tests.gdal_tests.test_geom.OGRGeomTest) Testing closing Polygon objects. ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\Users\Tim\code\django\tests\gis_tests\gdal_tests\test_geom.py", line 250, in test07b_closepolygons poly.centroid File "c:\Users\Tim\code\django\django\contrib\gis\gdal\geometries.py", line 62 7, in centroid capi.get_centroid(self.ptr, p.ptr) OSError: [WinError -1073741795] Windows Error 0xc000001d ====================================================================== ERROR: test_file_based_raster_creation (gis_tests.gdal_tests.test_raster.GDALRas terTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\Users\Tim\code\django\tests\gis_tests\gdal_tests\test_raster.py", lin e 142, in test_file_based_raster_creation 'nodata_value': self.rs.bands[0].nodata_value File "c:\Users\Tim\code\django\django\contrib\gis\gdal\raster\source.py", line 105, in __init__ None OSError: [WinError -1073741795] Windows Error 0xc000001d ====================================================================== ERROR: test_custom_srid (gis_tests.geos_tests.test_geos.GEOSTest) Test with a srid unknown from GDAL ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\Users\Tim\code\django\tests\gis_tests\geos_tests\test_geos.py", line 647, in test_custom_srid self.assertIsInstance(pnt.ogr, gdal.OGRGeometry) File "c:\Users\Tim\code\django\django\contrib\gis\geos\geometry.py", line 462, in ogr return gdal.OGRGeometry(self.wkb, self.srid) File "c:\Users\Tim\code\django\django\contrib\gis\gdal\geometries.py", line 11 7, in __init__ self.srs = srs File "c:\Users\Tim\code\django\django\contrib\gis\gdal\geometries.py", line 27 1, in _set_srs sr = SpatialReference(srs) File "c:\Users\Tim\code\django\django\contrib\gis\gdal\srs.py", line 95, in __ init__ self.import_epsg(srs_input) File "c:\Users\Tim\code\django\django\contrib\gis\gdal\srs.py", line 286, in i mport_epsg capi.from_epsg(self.ptr, epsg) OSError: exception: access violation writing 0x0000000F }}} -- Ticket URL: <https://code.djangoproject.com/ticket/24724#comment:4> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/073.b85908e9a3c8c1e489e80c2177482f79%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.