Modify

Opened 3 years ago

Closed 20 months ago

#8742 closed defect (duplicate)

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

Reported by: didley@… Owned by: t2y
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 3 years ago by anonymous

  • Trac Release changed from 0.11 to 0.12

comment:2 follow-up: Changed 3 years ago by guidod

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

comment:3 in reply to: ↑ 2 Changed 3 years ago by tbressure

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 20 months ago by t2y

  • Owner changed from tbressure to t2y

comment:5 Changed 20 months ago by t2y

  • Resolution set to duplicate
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.