Opened 10 years ago
Closed 10 years ago
#23873 closed Cleanup/optimization (fixed)
Trying to import GIS without GEOS installed leads to obscure error message
Reported by: | Carl Meyer | Owned by: | nobody |
---|---|---|---|
Component: | GIS | Version: | 1.7 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The error message is "cannot import name GEOSException."
Given that we already calculate a HAS_GEOS
variable, it would not be hard to issue a clearer message.
Here is an example of a new user being led quite a ways down a rabbit-hole by the confusing message: https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/django-users/W3IBOBTQMyU/3F8xBVMAwsYJ
Change History (4)
comment:1 by , 10 years ago
Triage Stage: | Unreviewed → Accepted |
---|---|
Type: | Bug → Cleanup/optimization |
comment:3 by , 10 years ago
Created a pull request (https://github.com/django/django/pull/3581) just to get CI verification that this doesn't break anything.
comment:4 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Maybe something like that:
django/contrib/gis/db/models/__init__.py