Modify ↓
Opened 2 years ago
Closed 4 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 2 years ago by anonymous
- Trac Release changed from 0.11 to 0.12
comment:2 follow-up: ↓ 3 Changed 22 months ago by guidod
comment:3 in reply to: ↑ 2 Changed 22 months ago by tbressure
comment:4 Changed 5 months ago by t2y
- Owner changed from tbressure to t2y
comment:5 Changed 4 months ago by t2y
- Resolution set to duplicate
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.


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