Opened 5 years ago

Closed 21 months ago

#9527 closed defect (worksforme)

MailToTracPlugin 0.12 not compatible with Python 2.4.3

Reported by: Floris Lambrechts Owned by: Olivier ANDRE
Priority: normal Component: MailToTracPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12


I am running Trac 12.0 on Python v2.4.3 (CentOS).

When building MailToTracPlugin r10884, this fails with syntax errors. I suspecs this is due to the old Python version.

cd plugin
python bdist_egg
byte-compiling build/bdist.linux-i686/egg/mail2trac/ to utils.pyc
  File "build/bdist.linux-i686/egg/mail2trac/", line 170
    with open('/home/zitune/tmp/mail', 'r') as f :
SyntaxError: invalid syntax
byte-compiling build/bdist.linux-i686/egg/mail2trac/ to email2ticket.pyc
  File "build/bdist.linux-i686/egg/mail2trac/", line 225
    action = actions.keys()[0] if actions else None
SyntaxError: invalid syntax

Attachments (0)

Change History (5)

comment:1 Changed 5 years ago by Floris

Summary: MailToTracPlugin 12.0 not compatible with Python 2.4.3MailToTracPlugin 0.12 not compatible with Python 2.4.3

comment:2 Changed 5 years ago by Olivier ANDRE

Status: newassigned

i'll try to patch this today.

comment:3 Changed 5 years ago by Olivier ANDRE

(In [10898]) should improve python2.4 compatibility, see #9527

comment:4 Changed 5 years ago by Floris Lambrechts

Thanks, it now builds without problems.

However when I install mail2trac (copy the .egg to env/plugins/ plus a restart of apache), the plugin does not show up in the list of plugins (URL /admin/general/plugin).

Any pointers for how I can debug this issue? Am I installing it incorrectly?

comment:5 Changed 21 months ago by Ryan J Ollos

Resolution: worksforme
Status: assignedclosed

Closing this very old installation issue. Please follow-up if you still need help debugging the issue.

Modify Ticket

as closed The owner will remain Olivier ANDRE.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.