Modify ↓
#14057 closed defect (fixed)
Message extraction fails with Trac 1.4
Reported by: | Ryan J Ollos | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Component: | TracDragDropPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: |
Description
I ran into this issue while trying to solve #14056:
$ python setup.py extract_messages running extract_messages extracting messages from tracdragdrop/__init__.py extracting messages from tracdragdrop/web_ui.py extracting messages from tracdragdrop/templates/genshi/tracdragdrop.html extracting messages from tracdragdrop/templates/jinja2/tracdragdrop.html Traceback (most recent call last): File "setup.py", line 47, in <module> main() File "setup.py", line 44, in main **extra) File "/Users/rjollos/.pyenv/versions/trac-2.7/lib/python2.7/site-packages/setuptools/__init__.py", line 162, in setup return distutils.core.setup(**attrs) File "/Users/rjollos/.pyenv/versions/2.7.18/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/Users/rjollos/.pyenv/versions/2.7.18/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/Users/rjollos/.pyenv/versions/2.7.18/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/Users/rjollos/.pyenv/versions/trac-2.7/lib/python2.7/site-packages/babel/messages/frontend.py", line 481, in run for filename, lineno, message, comments, context in extracted: File "/Users/rjollos/.pyenv/versions/trac-2.7/lib/python2.7/site-packages/babel/messages/extract.py", line 157, in extract_from_dir dirpath=absname, File "/Users/rjollos/.pyenv/versions/trac-2.7/lib/python2.7/site-packages/babel/messages/extract.py", line 212, in check_and_call_extract_file strip_comment_tags=strip_comment_tags File "/Users/rjollos/.pyenv/versions/trac-2.7/lib/python2.7/site-packages/babel/messages/extract.py", line 244, in extract_from_file options, strip_comment_tags)) File "/Users/rjollos/.pyenv/versions/trac-2.7/lib/python2.7/site-packages/babel/messages/extract.py", line 325, in extract for lineno, funcname, messages, comments in results: File "/Users/rjollos/.pyenv/versions/trac-2.7/lib/python2.7/site-packages/genshi/filters/i18n.py", line 1252, in extract encoding=encoding) File "/Users/rjollos/.pyenv/versions/trac-2.7/lib/python2.7/site-packages/genshi/template/markup.py", line 67, in __init__ allow_exec=allow_exec) File "/Users/rjollos/.pyenv/versions/trac-2.7/lib/python2.7/site-packages/genshi/template/base.py", line 423, in __init__ raise TemplateSyntaxError(e.msg, self.filepath, e.lineno, e.offset) genshi.template.base.TemplateSyntaxError: not well-formed (invalid token): line 1, column 1 (/Users/rjollos/Documents/Workspace/trac-dev/trac-hacks/tracdragdropplugin/0.12/tracdragdrop/templates/jinja2/tracdragdrop.html, line 1)
Trac 1.4.4.dev0 /Users/rjollos/Documents/Workspace/trac-dev/teo-rjollos.git Babel 2.9.1
Attachments (0)
Note: See
TracTickets for help on using
tickets.
Thanks for the reporting! I had never extracted messages after supporting the Jinja2 template....