Modify

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#12761 closed defect (duplicate)

UnicodeError: source returned bytes, but no encoding specified

Reported by: likai@… Owned by: falkb
Priority: highest Component: SimpleMultiProjectPlugin
Severity: blocker Keywords:
Cc: Cinc-th Trac Release: 1.0

Description

How to Reproduce

While doing a GET operation on /roadmap, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{}

User agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36

System Information

Trac 1.0.10
Babel 0.9.6
Genshi 0.7 (without speedups)
MySQL server: "5.7.12", client: "5.1.71", thread-safe: 1
MySQLdb 1.2.3c1
Pygments 2.1.3
Python 2.6.6 (r266:84292, Nov 22 2013, 12:16:22)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]
pytz 2016.4
setuptools 0.6
jQuery 1.7.2
jQuery UI 1.8.21
jQuery Timepicker 1.0.1

Enabled Plugins

ExtendedVersionPlugin 1.0dev
SimpleMultiProject 0.5.0
TracAccountManager 0.4.4

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/Trac-1.0.10-py2.6.egg/trac/web/main.py", line 554, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.10-py2.6.egg/trac/web/main.py", line 267, in dispatch
    iterable=chrome.use_chunked_encoding)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.10-py2.6.egg/trac/web/chrome.py", line 1078, in render_template
    stream |= self._filter_stream(req, method, filename, stream, data)
  File "/usr/lib/python2.6/site-packages/Genshi-0.7-py2.6-linux-x86_64.egg/genshi/core.py", line 133, in __or__
    return Stream(_ensure(function(self)), serializer=self.serializer)
  File "/usr/lib/python2.6/site-packages/Trac-1.0.10-py2.6.egg/trac/web/chrome.py", line 1330, in inner
    data)
  File "build/bdist.linux-x86_64/egg/simplemultiproject/roadmap.py", line 113, in filter_stream
    stream = stream | filter_.replace(HTML('<label for="showcompleted">Show completed milestones and '
  File "/usr/lib/python2.6/site-packages/Genshi-0.7-py2.6-linux-x86_64.egg/genshi/input.py", line 442, in HTML
    return Stream(list(HTMLParser(BytesIO(text), encoding=encoding)))
  File "/usr/lib/python2.6/site-packages/Genshi-0.7-py2.6-linux-x86_64.egg/genshi/core.py", line 273, in _ensure
    event = stream.next()
  File "/usr/lib/python2.6/site-packages/Genshi-0.7-py2.6-linux-x86_64.egg/genshi/input.py", line 449, in _coalesce
    for kind, data, pos in chain(stream, [(None, None, None)]):
  File "/usr/lib/python2.6/site-packages/Genshi-0.7-py2.6-linux-x86_64.egg/genshi/input.py", line 337, in _generate
    raise UnicodeError("source returned bytes, but no encoding specified")
UnicodeError: source returned bytes, but no encoding specified

Attachments (0)

Change History (3)

comment:1 Changed 8 years ago by Ryan J Ollos

Cc: Cinc-th added
Resolution: duplicate
Status: newclosed

Fixed in [15049]. Please install from simplemultiprojectplugin/trunk.

comment:2 Changed 8 years ago by falkb

Hi Cinc-th, perhaps could you tag another stable version including this fix? I don't want to force the people to use the trunk. Currently, I cannot find the time to do this by myself. TIA, falkb

comment:3 Changed 8 years ago by Cinc-th

Hi falkb,

yes, that may be worthwhile. There are also a few new features by now. I put it on my Todo list.

Modify Ticket

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