Modify ↓
Opened 14 years ago
Closed 11 years ago
#8839 closed defect (wontfix)
Compiling with python 2.4 fails with "invalid syntax"
| Reported by: | Owned by: | Franz | |
|---|---|---|---|
| Priority: | normal | Component: | BudgetingPlugin |
| Severity: | blocker | Keywords: | |
| Cc: | Trac Release: | 0.12 |
Description
compiling with python 2.4 returns below errors:
running bdist_egg
running egg_info
creating Budgeting_Plugin.egg-info
writing Budgeting_Plugin.egg-info\PKG-INFO
writing top-level names to Budgeting_Plugin.egg-info\top_level.txt
writing dependency_links to Budgeting_Plugin.egg-info\dependency_links.txt
writing entry points to Budgeting_Plugin.egg-info\entry_points.txt
writing manifest file 'Budgeting_Plugin.egg-info\SOURCES.txt'
writing manifest file 'Budgeting_Plugin.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build
creating build\lib
creating build\lib\ticketbudgeting
copying ticketbudgeting\ticketbudgeting.py -> build\lib\ticketbudgeting
copying ticketbudgeting\__init__.py -> build\lib\ticketbudgeting
creating build\lib\ticketbudgeting\htdocs
creating build\lib\ticketbudgeting\htdocs\js
copying ticketbudgeting\htdocs\js\budgeting.js -> build\lib\ticketbudgeting\htdocs\js
creating build\lib\ticketbudgeting\locale
copying ticketbudgeting\locale\messges.pot -> build\lib\ticketbudgeting\locale
creating build\lib\ticketbudgeting\locale\de_DE
creating build\lib\ticketbudgeting\locale\de_DE\LC_MESSGES
copying ticketbudgeting\locale\de_DE\LC_MESSGES\ticketbudgeting.po -> build\lib\ticketbudgeting\locale\de_DE\LC_MESSGES
creating build\bdist.win32
creating build\bdist.win32\egg
creating build\bdist.win32\egg\ticketbudgeting
creating build\bdist.win32\egg\ticketbudgeting\htdocs
creating build\bdist.win32\egg\ticketbudgeting\htdocs\js
copying build\lib\ticketbudgeting\htdocs\js\budgeting.js -> build\bdist.win32\egg\ticketbudgeting\htdocs\js
creating build\bdist.win32\egg\ticketbudgeting\locale
creating build\bdist.win32\egg\ticketbudgeting\locale\de_DE
creating build\bdist.win32\egg\ticketbudgeting\locale\de_DE\LC_MESSGES
copying build\lib\ticketbudgeting\locale\de_DE\LC_MESSGES\ticketbudgeting.po -> build\bdist.win32\egg\ticketbudgeting\locale\de_DE\
LC_MESSGES
copying build\lib\ticketbudgeting\locale\messges.pot -> build\bdist.win32\egg\ticketbudgeting\locale
copying build\lib\ticketbudgeting\ticketbudgeting.py -> build\bdist.win32\egg\ticketbudgeting
copying build\lib\ticketbudgeting\__init__.py -> build\bdist.win32\egg\ticketbudgeting
byte-compiling build\bdist.win32\egg\ticketbudgeting\ticketbudgeting.py to ticketbudgeting.pyc
File "build\bdist.win32\egg\ticketbudgeting\ticketbudgeting.py", line 737
finally:
^
SyntaxError: invalid syntax
byte-compiling build\bdist.win32\egg\ticketbudgeting\__init__.py to __init__.pyc
creating build\bdist.win32\egg\EGG-INFO
copying Budgeting_Plugin.egg-info\PKG-INFO -> build\bdist.win32\egg\EGG-INFO
copying Budgeting_Plugin.egg-info\SOURCES.txt -> build\bdist.win32\egg\EGG-INFO
copying Budgeting_Plugin.egg-info\dependency_links.txt -> build\bdist.win32\egg\EGG-INFO
copying Budgeting_Plugin.egg-info\entry_points.txt -> build\bdist.win32\egg\EGG-INFO
copying Budgeting_Plugin.egg-info\top_level.txt -> build\bdist.win32\egg\EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist\Budgeting_Plugin-0.5.a2-py2.4.egg' and adding 'build\bdist.win32\egg' to it
removing 'build\bdist.win32\egg' (and everything under it)
Attachments (0)
Change History (2)
comment:1 Changed 14 years ago by
comment:2 Changed 11 years ago by
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
As Trac does not support Python 2.4 from version 1.0 (see http://trac.edgewall.org/milestone/1.0) I won't fix this issue.
Note: See
TracTickets for help on using
tickets.



well, I guess I used advanced python features, see http://docs.python.org/reference/compound_stmts.html#the-try-statement (I programed the plugin with python 2.6)
In python 2.4 try-except-finally doesn't work - you need to wrap a try-except-block into a try-finally-block (didn't know this until now)