Python Forum
Error building trac hacks plugin
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error building trac hacks plugin
#1
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?
Reply
#2
(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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Manage user names in TRAC susja 3 5,661 Dec-06-2020, 09:34 PM
Last Post: susja
  ERROR: Cannot load plugin dbwest1 0 1,650 Sep-15-2020, 04:28 PM
Last Post: dbwest1
  pip install -e ., ERROR: Failed building wheel for pyfarmhash mostafaPython 1 6,232 Jun-09-2020, 08:24 PM
Last Post: mcmxl22
  Error building wheel for grpcio on win10 Topiii 1 5,155 Nov-13-2019, 03:08 PM
Last Post: snippsat
  plugin:xxx.py hasfailed to load 1204eray 1 2,064 Jun-26-2019, 09:23 PM
Last Post: micseydel
  inkscape plugin write in python error costycnc 5 3,365 Jan-25-2019, 08:02 PM
Last Post: costycnc
  UML plugin for Python in Eclipse user2103 1 5,796 Mar-16-2018, 11:14 PM
Last Post: DeaD_EyE
  Is this a normal/benign make test error when building python3.6 sofuego 2 3,475 Feb-12-2018, 12:32 AM
Last Post: sofuego
  trac programming ichabod801 4 25,266 Jan-18-2017, 07:10 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020