Unable to open datasource `' with the following drivers

Viewed 2786

I am trying to ensure I have geodjango properly installed so I can follow this tutorial.

I have used Brew as my installer for Geodjango prequisites: postgresql, postgis, gdal, libgeoip.

My gdal version is most recent: 3.1.2. However when I try to use ogrinfo world/data/TM_WORLD_BORDERS-0.3.shp to examine an .shp file it returns this error in the console:

Unable to open datasource '[this is the name of the file here'] with the following drivers. It then just lists a whole bunch of drivers.

I can't for the life of me figure out what to do, all the other answers to similar questions recommend upgrading GDAL but mine is the most current version...

1 Answers

Too late for you, but probably useful to others: check your path. Just look at world/data/, then look at the structure of your project, then type ls on the console and ensure that you're inside the right folder. UPD: Compare - the answer to a similar question is here. Good luck))

Related