Opened 16 years ago

Closed 16 years ago

Last modified 13 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

Description

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 runtests.py --settings=testsettings
Error while importing gis:  File "runtests.py", line 130, in django_tests
    mod = load_app(model_label)
  File "d:\u\kmt\django\trunk\django\db\models\loading.py", line 72, in load_app
    mod = __import__(app_name, {}, {}, ['models'])
  File "d:\u\kmt\django\trunk\django\contrib\gis\models.py", line 31
    @property
    ^
SyntaxError: invalid syntax

Change History (5)

comment:1 by Boo, 16 years ago

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

http://code.djangoproject.com/wiki/GeoDjangoInstall#PythonPostgreSQL

comment:2 by Alex Gaynor, 16 years ago

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 by Karen Tracey <kmtracey@…>, 16 years ago

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 by jbronn, 16 years ago

Resolution: fixed
Status: reopenedclosed

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

comment:5 by Jacob, 13 years ago

milestone: 1.0

Milestone 1.0 deleted

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