close
Skip to content

Weird "Could not open the datasource at …" error #231

@torotil

Description

@torotil

When I try to import he data using this guide I always get an "Could not open the datasource at …" error for the first file of the boundary-line data.

Strangely the problem goes away if I add 2 lines directly to manage.py:

from django.contrib.gis.gdal import DataSource

# …
     DataSource('…/Data/GB/county_electoral_division_region.shp')
# …

It seems that the first call to DataSource has some (in that case helpful) side-effects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions