Modify ↓
Opened 11 years ago
Closed 11 years ago
#11364 closed defect (fixed)
easy_install failure
Reported by: | jvbussel | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | PlantUmlMacro |
Severity: | normal | Keywords: | |
Cc: | Álvaro Iradier | Trac Release: | 0.12 |
Description (last modified by )
I receive a syntax error during installation of the plugin as showed below. I (still) use python 2.4 What to do to solve this problem?
Running setup.py -q bdist_egg --dist-dir /data/trac/site/src/plugins/PlantUML-2.0/egg-dist-tmp-JkuMSc File "build/bdist.linux-x86_64/egg/plantuml/macro.py", line 127 cmap = self._read_cmapx_from_file(img_id) if \ ^ SyntaxError: invalid syntax
Attachments (0)
Change History (4)
comment:1 Changed 11 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 11 years ago by
comment:3 Changed 11 years ago by
To be able to use image maps I replaced the lines of code as listed below. Hopefully the only Python 2.4 compatibility issues. I now compiles fine. It worked in Chrome but not a clickable map in Internet Explorer 11.
cmap = self._read_cmapx_from_file(img_id) if \ self._is_cmapx_existing(img_id) else ''
with:
if self._is_cmapx_existing(img_id): cmap = self._read_cmapx_from_file(img_id) else: cmap = ''
Note: See
TracTickets for help on using
tickets.
In [13395] I didn't take care for Python 2.4 compatibility. I'll make it compatible with Python 2.4 again soon.