Opened 7 years ago

Closed 7 years ago

Last modified 4 years ago

#8141 closed (fixed)

Cannot import gis with Python 2.3

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

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 Changed 7 years ago by Boo

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed
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 Changed 7 years ago by Alex

  • Resolution invalid deleted
  • Status changed from closed to reopened

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

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

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

comment:5 Changed 4 years ago by jacob

  • milestone 1.0 deleted

Milestone 1.0 deleted

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