Opened 4 years ago

Closed 4 years ago

#13737 closed defect (fixed)

Python3: ModuleNotFoundError: No module named 'StringIO'

Reported by: Peter Suter Owned by: lucid
Priority: normal Component: TextareaKeyBindingsPlugin
Severity: normal Keywords: python3
Cc: Trac Release:


Plugin fails to load with Python3:

	ModuleNotFoundError: No module named 'StringIO'

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by Peter Suter

  • textareakeybindings/

    diff -r e260b127af68 -r 8f7b74ad86ac textareakeybindings/
    a b  
    33import pkg_resources
    44import re
    5 from StringIO import StringIO
     6    from StringIO import StringIO # Python 2
     7except ImportError:
     8    from io import StringIO # Python 3
    710from trac.core import *
    811from trac.web import IRequestFilter

comment:2 Changed 4 years ago by lucid

Resolution: fixed
Status: newclosed

In 17665:

TextareaKeyBindingsPlugin: Python3 compatibility.
(fix #13737)

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain lucid.
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.