Modify

Opened 9 years ago

Last modified 9 years ago

#12089 new defect

unicode error after screenshot plugin install in trac 1.0

Reported by: tarun.dixit@… Owned by: Roberto Longobardi
Priority: high Component: ScreenshotPastePlugin
Severity: critical Keywords:
Cc: Trac Release:

Description (last modified by Jun Omae)

Hi

I am getting below error after screenshotpaste plugin installation while trying to add images.

Trac detected an internal error: UnicodeError: source returned bytes, but no encoding specified

Found a bug in Trac?

If you think this should work and you can reproduce the problem, you should consider creating a bug report.

Note that the ScreenshotPaste plugin seems to be involved. Please report this issue to the plugin maintainer.

Before you do that, though, please first try searching for similar issues, as it is quite likely that this problem has been reported before. For questions about installation and configuration of Trac or its plugins, please try the mailing list instead of creating a ticket.

Otherwise, please a new bug report describing the problem and explain how to reproduce it.

Python Traceback

Most recent call last:
File "/usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg/trac/web/main.py", line 497, in _dispatch_request
File "/usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg/trac/web/main.py", line 233, in dispatch
File "/usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg/trac/web/chrome.py", line 968, in render_template
File "/usr/lib/python2.6/site-packages/Genshi-0.7-py2.6-linux-x86_64.egg/genshi/core.py", line 133, in __or__
File "/usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg/trac/web/chrome.py", line 1147, in inner
File "build/bdist.linux-x86_64/egg/screenshotpaste/attachment.py", line 53, in filter_stream
File "build/bdist.linux-x86_64/egg/screenshotpaste/util.py", line 64, in write_common_code
File "/usr/lib/python2.6/site-packages/Genshi-0.7-py2.6-linux-x86_64.egg/genshi/input.py", line 442, in HTML
File "/usr/lib/python2.6/site-packages/Genshi-0.7-py2.6-linux-x86_64.egg/genshi/core.py", line 273, in _ensure
File "/usr/lib/python2.6/site-packages/Genshi-0.7-py2.6-linux-x86_64.egg/genshi/input.py", line 449, in _coalesce
File "/usr/lib/python2.6/site-packages/Genshi-0.7-py2.6-linux-x86_64.egg/genshi/input.py", line 337, in _generate

System Information:

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36
Trac	1.0
Genshi	0.7 (without speedups)
MySQL	server: "5.1.73", client: "5.1.73", thread-safe: 1
MySQLdb	1.2.3c1
Python	2.6.6 (r266:84292, Jan 22 2014, 09:42:36) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]
setuptools	0.6
jQuery	1.7.2

Enabled Plugins:

ScreenshotPaste	0.1.2	/var/trac/cd/plugins/ScreenshotPaste-0.1.2-py2.6.egg
TracAccountManager	0.4.4	/var/trac/cd/plugins/TracAccountManager-0.4.4-py2.6.egg

Attachments (1)

screenshotpaste error.png (151.6 KB) - added by tarun.dixit@… 9 years ago.

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by tarun.dixit@…

Attachment: screenshotpaste error.png added

comment:1 Changed 9 years ago by Jun Omae

Description: modified (diff)

comment:2 Changed 9 years ago by tarun.dixit@…

Hi

Pls give me solution of this error.

Thanks Tarun

comment:3 Changed 9 years ago by Ryan J Ollos

Looks like similar issue was fixed in TestCaseManagerForTrac in #10295.

You can probably work around the issue by downgrading to Genshi 0.6.1.

comment:4 Changed 9 years ago by anonymous

Thanks... It works after downgrading to Genshi 0.6.1.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Roberto Longobardi.

Add Comment


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

 
Note: See TracTickets for help on using tickets.