Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

#1527 closed defect (fixed)

Python 2.2 compatibility issues

Reported by: xris Owned by: Christopher Lenz
Priority: high Milestone: 0.9
Component: general Version: devel
Severity: blocker Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Just upgraded to [1645] and I now get this: (I assume it's a python 2.2 type error)

invalid syntax (auth.py, line 106)

Traceback (most recent call last):
  File "/var/www/trac/cgi-bin/trac.cgi", line 25, in ?
    from trac.web import cgi_frontend
  File "/usr/lib/python2.2/site-packages/trac/web/cgi_frontend.py", line 23, in ?
    from trac.web.main import Request, dispatch_request, send_pretty_error
  File "/usr/lib/python2.2/site-packages/trac/web/main.py", line 25, in ?
    from trac.web.auth import Authenticator
  File "/usr/lib/python2.2/site-packages/trac/web/auth.py", line 106
     yield 'metanav', 'login', 'logged in as %s' \
                   ^
 SyntaxError: invalid syntax

Attachments (0)

Change History (5)

comment:1 by Christopher Lenz, 20 years ago

Component: generalchangeset view
Milestone: 0.9
Owner: changed from Jonas Borgström to Christopher Lenz
Status: newassigned

comment:2 by Christopher Lenz, 20 years ago

Component: changeset viewgeneral

Oops, wrong ticket

comment:3 by Christopher Lenz, 20 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [1646].

comment:4 by Christopher Lenz, 20 years ago

Resolution: fixed
Status: closedreopened
Summary: fatal error in Python 2.2 compatibility issues

Apparently, more files are missing the from __future__ import generators magic:

  • trac/web/auth.py
  • trac/About.py
  • trac/attachment.py
  • trac/wiki/api.py
  • trac/wiki/model.py
  • trac/Changeset.py
  • trac/Timeline.py
  • trac/Query.py
  • trac/Ticket.py
  • trac/Report.py
  • trac/Roadmap.py
  • trac/Milestone.py
  • trac/Search.py
  • trac/Settings.py
  • trac/wiki/web_ui.py
  • trac/wiki/macros.py

comment:5 by Christopher Lenz, 20 years ago

Resolution: fixed
Status: reopenedclosed

Fixed in [1651].

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christopher Lenz.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christopher Lenz to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.