Modify

#11364 closed defect (fixed)

easy_install failure

Reported by: jvbussel Owned by: rjollos
Priority: normal Component: PlantUmlMacro
Severity: normal Keywords:
Cc: airadier Trac Release: 0.12

Description (last modified by rjollos)

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 14 months ago by rjollos

  • Description modified (diff)

comment:2 Changed 14 months ago by rjollos

In [13395] I didn't take care for Python 2.4 compatibility. I'll make it compatible with Python 2.4 again soon.

comment:3 Changed 14 months ago by anonymous

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 =

Version 0, edited 14 months ago by anonymous (next)

comment:4 Changed 13 months ago by rjollos

  • Resolution set to fixed
  • Status changed from new to closed

In 13476:

2.0dev: Restore Python 2.4 compatibility after [13395]. Fixes #11364, Refs #10998.

Untested patch. Please report any issues to #11364.

Add Comment

Modify Ticket

Action
as closed The owner will remain rjollos.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.