Opened 21 months ago

Closed 21 months ago

Last modified 21 months ago

#34375 closed Cleanup/optimization (invalid)

GDAL and GIS missing LD Library error message.

Reported by: Lars Klassen Owned by: Julia Singh
Component: GIS Version: 4.1
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description (last modified by Lars Klassen)

Currently the error message for GDAL and GIS when not locating the required library is:
Could not find the GDAL library (tried "%s"). Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in your settings.

It's probably better to advise checking the Library Path before setting it to the project settings file, maybe as a last resort. For many MacOS homebrew users, the library might be not installed in the default library PATH (for instance, homebrew installs it to /opt/homebrew/lib/), non visible library paths in default environment is I think relatively common.

My advise is to print "... If it is, check your environment library path or try setting GDAL_LIBRARY_PATH in your settings."

Change History (5)

comment:1 by Lars Klassen, 21 months ago

Description: modified (diff)

comment:2 by Julia Singh, 21 months ago

Owner: set to Julia Singh
Status: newassigned

comment:3 by Mariusz Felisiak, 21 months ago

Resolution: invalid
Status: assignedclosed

non visible Library paths in default environment is I think relative common.

Yes, however I don't think we should advise changing library paths for every custom library. Folks who know how to do it and want to do it will do this anyway.This is not something that Django should advise as it's not directly related with Django. Adding GDAL_LIBRARY_PATH to the settings is Django's way of fixing this.

comment:4 by Mariusz Felisiak, 21 months ago

Component: contrib.postgresGIS

comment:5 by Lars Klassen, 21 months ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top