Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#8141 closed (fixed)

Cannot import gis with Python 2.3

Reported by: Karen Tracey <kmtracey@…> Owned by: nobody
Component: GIS Version: dev
Severity: Keywords: python23
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Attempting to run the test suite on [8223] with Python 2.3 runs into trouble with gis using decorators:

D:\u\kmt\django\trunk\tests>\bin\Python2.3.5\python.exe --settings=testsettings
Error while importing gis:  File "", line 130, in django_tests
    mod = load_app(model_label)
  File "d:\u\kmt\django\trunk\django\db\models\", line 72, in load_app
    mod = __import__(app_name, {}, {}, ['models'])
  File "d:\u\kmt\django\trunk\django\contrib\gis\", line 31
SyntaxError: invalid syntax

Change History (5)

comment:1 Changed 14 years ago by Boo

Resolution: invalid
Status: newclosed
Required: Python 2.4 is required because of heavy use of 2.4 decorator syntax (e.g. @property).

comment:2 Changed 14 years ago by Alex Gaynor

Resolution: invalid
Status: closedreopened

This is breaking the test suite for 2.3 users which is unacceptable, all usage of decorators should be changed until such a point as django decides to drop support for 2.3.

comment:3 Changed 14 years ago by Karen Tracey <kmtracey@…>

Perhaps the summary was badly worded. I don't care if gis requires 2.4, Django overall claims to run on 2.3 and up. If gis as a component needs 2.4 then at a minimum things need to be set up so that its tests are skipped when running on 2.3. The Django-provided test suite should not have failures running on 2.3, until such time as TPTB decide to drop support for 2.3.

comment:4 Changed 14 years ago by jbronn

Resolution: fixed
Status: reopenedclosed

(In [8225]) gis: Fixed #8141; moved Python 2.3 incompatibilities out of the reach of the test suite.

comment:5 Changed 11 years ago by Jacob

milestone: 1.0

Milestone 1.0 deleted

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