Opened 10 years ago

Closed 10 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 Ryan J Ollos)

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 -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/", line 127
    cmap = self._read_cmapx_from_file(img_id) if \
SyntaxError: invalid syntax

Attachments (0)

Change History (4)

comment:1 Changed 10 years ago by Ryan J Ollos

Description: modified (diff)

comment:2 Changed 10 years ago by Ryan J Ollos

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 10 years 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 ''


    if self._is_cmapx_existing(img_id):
        cmap = self._read_cmapx_from_file(img_id)
        cmap = ''
Last edited 10 years ago by Ryan J Ollos (previous) (diff)

comment:4 Changed 10 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

In 13476:

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

Untested patch. Please report any issues to #11364.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

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

Note: See TracTickets for help on using tickets.