Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#6376 closed defect (fixed)

syntax error installing trac trunk changeset:6182

Reported by: stephen.bannasch@… Owned by: Christian Boos
Priority: normal Milestone: 0.11
Component: ticket system Version: devel
Severity: major Keywords: python23
Cc: stephen.bannasch@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I'm updating an installation of trac trunk checked out with svn on MacOS 10.4.11 with the stock Python 2.3 installed.

After updating to r6182 and running the installer:

$ sudo python ./setup.py install

I get a syntax error at source:/trunk/trac/ticket/web_ui.py@6182#L970.

Reverting back to changeset:6171 allows trac to install and run successfully on my system.

Here's a stack trace showing the errorL

copying Trac.egg-info/requires.txt -> build/bdist.darwin-8.11.1-i386/egg/EGG-INFO
copying Trac.egg-info/top_level.txt -> build/bdist.darwin-8.11.1-i386/egg/EGG-INFO
creating 'dist/Trac-0.11dev_r6182-py2.3.egg' and adding 'build/bdist.darwin-8.11.1-i386/egg' to it
removing 'build/bdist.darwin-8.11.1-i386/egg' (and everything under it)
Processing Trac-0.11dev_r6182-py2.3.egg
removing '/Library/Python/2.3/site-packages/Trac-0.11dev_r6182-py2.3.egg' (and everything under it)
creating /Library/Python/2.3/site-packages/Trac-0.11dev_r6182-py2.3.egg
Extracting Trac-0.11dev_r6182-py2.3.egg to /Library/Python/2.3/site-packages
  File "/Library/Python/2.3/site-packages/Trac-0.11dev_r6182-py2.3.egg/trac/ticket/web_ui.py", line 970
    for opt in field['options']),
      ^
SyntaxError: invalid syntax
Trac 0.11dev-r6182 is already the active version in easy-install.pth
Installing trac-admin script to /System/Library/Frameworks/Python.framework/Versions/2.3/bin
Installing tracd script to /System/Library/Frameworks/Python.framework/Versions/2.3/bin

Installed /Library/Python/2.3/site-packages/Trac-0.11dev_r6182-py2.3.egg
Processing dependencies for Trac==0.11dev-r6182
Finished processing dependencies for Trac==0.11dev-r6182

Attachments (0)

Change History (2)

comment:1 by Christian Boos, 17 years ago

Component: generalticket system
Keywords: python23 added
Owner: changed from Jonas Borgström to Christian Boos
Severity: blockermajor
Status: newassigned

Woops, that's a Python 2.4ism (generator syntax) that went in in r6171.

comment:2 by Christian Boos, 17 years ago

Resolution: fixed
Status: assignedclosed

Fixed in [6183].

Please reopen that ticket, if you find another issue with 2.3, even unrelated to the above one (i.e. it's not a ticket for all 2.3 issues ever, just the ones one could eventually find with the current state of the trunk, pre-0.11beta1).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos 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.