Error building trac hacks plugin - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Error building trac hacks plugin (/thread-9409.html) |
Error building trac hacks plugin - lapjunior - Apr-06-2018 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? RE: Error building trac hacks plugin - nilamo - Apr-06-2018 (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. |