Modify

Opened 6 years ago

Closed 4 years ago

#8742 closed defect (duplicate)

SyntaxError: invalid syntax (core.py, line 205)

Reported by: didley@… Owned by: Tetsuya Morimoto
Priority: normal Component: TracCronPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description

Hello,

I got this error when I'm using TracCron.

SyntaxError: invalid syntax (core.py, line 205)
2011-04-27 16:49:06,371 Trac[loader] ERROR: Skipping "traccron.task = traccron.task": 
Traceback (most recent call last):
  File "C:\Programme\Python25\lib\site-packages\trac-0.12.2-py2.5.egg\trac\loader.py", line 68, in _load_eggs
    entry.load(require=True)
  File "C:\Programme\Python25\Lib\site-packages\setuptools-0.6c11-py2.5.egg\pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "build\bdist.win32\egg\traccron\task.py", line 18, in <module>
  File "d:\project\generalissuetracker\plugins\traccronplugin-0.3dev-py2.5.egg\traccron\core.py", line 205
     except Exception as e:
                       ^
SyntaxError: invalid syntax (core.py, line 205)

I got this error also when I compile your plugin

build\bdist.win32\egg\traccron\core.py:205: Warning: 'as' will become a reserved keyword in Python 2
.6
  File "build\bdist.win32\egg\traccron\core.py", line 205
    except Exception as e:
                      ^
SyntaxError: invalid syntax

Attachments (0)

Change History (5)

comment:1 Changed 6 years ago by anonymous

Trac Release: 0.110.12

comment:2 Changed 6 years ago by Guido U. Draheim

See also #9105 for Python 2.4 compatibility - the fix is as easy as replacing "as" by ",".

comment:3 in reply to:  2 Changed 6 years ago by Thierry Bressure

Replying to guidod:

See also #9105 for Python 2.4 compatibility - the fix is as easy as replacing "as" by ",".

Very good, I unfortunately have no much time to work on this plugin. Do you know how i can promote you to maintainer role ?

comment:4 Changed 4 years ago by Tetsuya Morimoto

Owner: changed from Thierry Bressure to Tetsuya Morimoto

comment:5 Changed 4 years ago by Tetsuya Morimoto

Resolution: duplicate
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Tetsuya Morimoto.
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.