Modify

Opened 3 years ago

Last modified 3 years ago

#9527 assigned defect

MailToTracPlugin 0.12 not compatible with Python 2.4.3

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

Description

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 setup.py bdist_egg
  (...)
byte-compiling build/bdist.linux-i686/egg/mail2trac/utils.py to utils.pyc
  File "build/bdist.linux-i686/egg/mail2trac/utils.py", line 170
    with open('/home/zitune/tmp/mail', 'r') as f :
            ^
SyntaxError: invalid syntax
  (...)
byte-compiling build/bdist.linux-i686/egg/mail2trac/email2ticket.py to email2ticket.pyc
  File "build/bdist.linux-i686/egg/mail2trac/email2ticket.py", line 225
    action = actions.keys()[0] if actions else None
                                ^
SyntaxError: invalid syntax

Attachments (0)

Change History (4)

comment:1 Changed 3 years ago by Floris

  • Summary changed from MailToTracPlugin 12.0 not compatible with Python 2.4.3 to MailToTracPlugin 0.12 not compatible with Python 2.4.3

comment:2 Changed 3 years ago by zitune

  • Status changed from new to assigned

i'll try to patch this today.

comment:3 Changed 3 years ago by zitune

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

comment:4 Changed 3 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?

Add Comment

Modify Ticket

Action
as assigned .
Author


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

 
Note: See TracTickets for help on using tickets.