Python Forum

Full Version: Error building trac hacks plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am trying to build a Trac Subtickets plugin (https://trac-hacks.org/wiki/SubticketsPlugin) to use it in my environment.

I downloaded the source and following the build instructions:
python setup.py bdist_egg

The error below is presented:
build\bdist.win32\egg\tracsubtickets\web_ui.py to web_ui.pyc
SyntaxError: ('invalid syntax', ('build\\bdist.win32\\egg\\tracsubtickets\\web_u
i.py', 282, 44, ' inh = {f: ticket[f] for f in opt_inherit}\n'))


I use trac 0.12.3 and python 2.6.2

I am not a python developer, anyone could help me?
(Apr-06-2018, 07:54 PM)lapjunior Wrote: [ -> ]inh = {f: ticket[f] for f in opt_inherit}
Dictionary comprehensions were added in python version 2.7. The solution is to use a more recent version of python.