Opened 6 years ago

Closed 6 years ago

#11488 closed (fixed)

ValueError: too many values to unpack when POSTGIS_VERSION in settings

Reported by: anonymous Owned by: nobody
Component: GIS Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


On syncdb with contrib.gis installed and POSTGIS_VERSION in settings, i get a ValueError: too many values to unpack

File "C:\Python25\lib\site-packages\django\contrib\gis\db\backend\postgis\", line 28, in <module>

in settings:


When i remove that setting, syncdb works.

It appears in that when POSTGIS_VERSION is not in the settings, postgis_version_tuple() returns a tuple in this format: ('1.3.6',1,3,6) whereas the GIS docs ( say to set POSTGIS_VERSION in the format i used. When POSTGIS_VERSION is returned, the tuple only has one element, not the four required.

i noted that the code says "This setting is intentionally undocumented" so i don't know what course of action is appropriate.

Change History (2)

comment:1 Changed 6 years ago by jacob

  • milestone 1.1 deleted
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Not a blocker for 1.1.

comment:2 Changed 6 years ago by jbronn

  • Resolution set to fixed
  • Status changed from new to closed

Docs have been updated to reflect the proper usage.

Note: See TracTickets for help on using tickets.
Back to Top