Edgewall Software
Modify

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#13189 closed defect (cantfix)

Genshi UnicodeEncodeError error while rendering template

Reported by: daniel.velez@… Owned by:
Priority: normal Milestone:
Component: general Version: 1.0
Severity: normal Keywords: needinfo
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I get a Genshi UnicodeEncodeError while click on timeline in one of our projects, I checked previous ticket about this bug but nobody mentioned the issue clicking timeline.

I enabled use_chunked_encoding = true, but it didn't work.

Attachments (2)

Genshi_UnicodeEncodeError.JPG (63.8 KB ) - added by anonymous 5 years ago.
trac_version.JPG (43.4 KB ) - added by anonymous 5 years ago.

Download all attachments as: .zip

Change History (11)

by anonymous, 5 years ago

comment:1 by Jun Omae, 5 years ago

A possible duplicate of #12490.

Typically, the UnicodeEncodeError is caused by installed plugins. Please post system information from about page of your Trac and stack trace of the error in your $ENV/log/trac.log after use_chunked_encoding = true and reproducing the issue.

comment:2 by Jun Omae, 5 years ago

Keywords: needinfo added
Priority: highnormal

comment:3 by anonymous, 5 years ago

Hi there, after use_chunked_encoding = true.

I attached a file with system information

got:

2019-08-08 14:13:16,639 Trac[env] INFO: Reloading environment due to configuration change
2019-08-08 14:13:16,647 Trac[env] INFO: -------------------------------- environment startup [Trac 1.0] --------------------------------
2019-08-08 14:13:16,662 Trac[loader] DEBUG: Skipping "TracBacklog 0.3.0.dev0": ("DistributionNotFound: The 'simplejson>=2.0' distribution was not found and is required by TracBacklog" not found)
2019-08-08 14:13:16,663 Trac[loader] DEBUG: Loading TracXMLRPC from /usr/lib/python2.6/site-packages/TracXMLRPC-1.1.7.dev0-py2.6.egg
2019-08-08 14:13:16,663 Trac[loader] DEBUG: Loading childtickets from /var/www/trac/projects/clincapture/plugins/Tracchildtickets-2.5.2-py2.6.egg
2019-08-08 14:13:16,666 Trac[loader] DEBUG: Loading progressmeter.macro from /var/www/trac/projects/clincapture/plugins/TracProgressMeterMacro-0.4-py2.6.egg
2019-08-08 14:13:16,666 Trac[loader] DEBUG: Loading trac.about from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,667 Trac[loader] DEBUG: Loading trac.admin.console from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,667 Trac[loader] DEBUG: Loading trac.admin.web_ui from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,668 Trac[loader] DEBUG: Loading trac.attachment from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,668 Trac[loader] DEBUG: Loading trac.db.mysql from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,668 Trac[loader] DEBUG: Loading trac.db.postgres from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,669 Trac[loader] DEBUG: Loading trac.db.sqlite from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,669 Trac[loader] DEBUG: Loading trac.mimeview.patch from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,669 Trac[loader] DEBUG: Loading trac.mimeview.pygments from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,679 Trac[loader] DEBUG: Skipping "trac.mimeview.pygments = trac.mimeview.pygments [pygments]": ("DistributionNotFound: The 'Pygments>=0.6' distribution was not found and is required by the application" not found)
2019-08-08 14:13:16,679 Trac[loader] DEBUG: Loading trac.mimeview.rst from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,689 Trac[loader] DEBUG: Skipping "trac.mimeview.rst = trac.mimeview.rst [rest]": ("DistributionNotFound: The 'docutils>=0.3' distribution was not found and is required by the application" not found)
2019-08-08 14:13:16,689 Trac[loader] DEBUG: Loading trac.mimeview.txtl from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,699 Trac[loader] DEBUG: Skipping "trac.mimeview.txtl = trac.mimeview.txtl [textile]": ("DistributionNotFound: The 'textile>=2.0' distribution was not found and is required by the application" not found)
2019-08-08 14:13:16,699 Trac[loader] DEBUG: Loading trac.prefs from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,699 Trac[loader] DEBUG: Loading trac.search from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,700 Trac[loader] DEBUG: Loading trac.ticket.admin from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,700 Trac[loader] DEBUG: Loading trac.ticket.batch from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,701 Trac[loader] DEBUG: Loading trac.ticket.query from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,701 Trac[loader] DEBUG: Loading trac.ticket.report from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,701 Trac[loader] DEBUG: Loading trac.ticket.roadmap from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,702 Trac[loader] DEBUG: Loading trac.ticket.web_ui from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,702 Trac[loader] DEBUG: Loading trac.timeline from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,702 Trac[loader] DEBUG: Loading trac.versioncontrol.admin from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,703 Trac[loader] DEBUG: Loading trac.versioncontrol.svn_authz from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,703 Trac[loader] DEBUG: Loading trac.versioncontrol.web_ui from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,703 Trac[loader] DEBUG: Loading trac.web.auth from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,704 Trac[loader] DEBUG: Loading trac.web.session from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,704 Trac[loader] DEBUG: Loading trac.wiki.admin from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,704 Trac[loader] DEBUG: Loading trac.wiki.interwiki from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,705 Trac[loader] DEBUG: Loading trac.wiki.macros from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,705 Trac[loader] DEBUG: Loading trac.wiki.web_api from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,706 Trac[loader] DEBUG: Loading trac.wiki.web_ui from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,706 Trac[loader] DEBUG: Loading tracmigrate.admin from /usr/lib/python2.6/site-packages/TracMigratePlugin-0.12.0.5-py2.6.egg
2019-08-08 14:13:16,706 Trac[loader] DEBUG: Loading tracopt.mimeview.enscript from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,707 Trac[loader] DEBUG: Loading tracopt.mimeview.php from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,707 Trac[loader] DEBUG: Loading tracopt.mimeview.silvercity from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,717 Trac[loader] DEBUG: Skipping "tracopt.mimeview.silvercity = tracopt.mimeview.silvercity [silvercity]": ("DistributionNotFound: The 'SilverCity>=0.9.4' distribution was not found and is required by the application" not found)
2019-08-08 14:13:16,717 Trac[loader] DEBUG: Loading tracopt.perm.authz_policy from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,717 Trac[loader] DEBUG: Loading tracopt.perm.config_perm_provider from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,718 Trac[loader] DEBUG: Loading tracopt.ticket.clone from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,718 Trac[loader] DEBUG: Loading tracopt.ticket.commit_updater from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,719 Trac[loader] DEBUG: Loading tracopt.ticket.deleter from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,719 Trac[loader] DEBUG: Loading tracopt.versioncontrol.git.git_fs from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,719 Trac[loader] DEBUG: Loading tracopt.versioncontrol.svn.svn_fs from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,720 Trac[loader] DEBUG: Loading tracopt.versioncontrol.svn.svn_prop from /usr/lib/python2.6/site-packages/Trac-1.0-py2.6.egg
2019-08-08 14:13:16,734 Trac[default_workflow] DEBUG: Workflow actions at initialization: {u'stop_review': {'operations': [], u'name': u'exit review', 'default': 0, 'newstate': u'new', 'oldstates': [u'needs_review', u'under_review', u'needs_work'], u'permissions': [u'TICKET_MODIFY']}, u'reject_new': {u'operations': [u'set_owner_to_self', u'set_resolution'], u'name': u'reject', 'default': 0, 'newstate': u'closed', u'set_resolution': u'invalid,duplicate,wontfix,worksforme', 'oldstates': [u'new'], u'permissions': [u'TICKET_MODIFY']}, u'accept': {u'operations': [u'set_owner_to_self'], 'name': u'accept', 'default': 0, 'newstate': u'assigned', 'oldstates': [u'new'], u'permissions': [u'TICKET_MODIFY']}, u'reassign_closed': {u'operations': [u'set_owner'], u'name': u'reassign', 'default': 0, 'newstate': u'closed', 'oldstates': [u'closed'], u'permissions': [u'TICKET_MODIFY']}, u'reopen': {u'operations': [u'del_resolution'], 'name': u'reopen', 'default': 0, 'newstate': u'reopened', 'oldstates': [u'closed'], u'permissions': [u'TICKET_CREATE']}, u'unassign': {u'operations': [u'del_owner'], 'name': u'unassign', 'default': 0, 'newstate': u'new', 'oldstates': [u'assigned', u'in_work'], u'permissions': [u'TICKET_MODIFY']}, u'fail': {'operations': [], 'name': u'fail', 'default': 0, 'newstate': u'assigned', 'oldstates': [u'in_Test', u'in_QA'], u'permissions': [u'TICKET_MODIFY']}, u'review_needs_work': {'operations': [], u'name': u'needs work', 'default': 0, 'newstate': u'needs_work', 'oldstates': [u'under_review'], u'permissions': [u'TICKET_MODIFY']}, u'pass_qa': {u'operations': [u'set_resolution'], u'name': u'pass QA', 'default': 0, 'newstate': u'closed', u'set_resolution': u'fixed', 'oldstates': [u'in_QA'], u'permissions': [u'TICKET_MODIFY']}, u'start': {u'operations': [u'set_owner_to_self'], 'name': u'start', 'default': 0, 'newstate': u'in_work', 'oldstates': [u'assigned'], u'permissions': [u'TICKET_MODIFY']}, u'test_qa': {'operations': [], u'name': u'start QA', 'default': 0, 'newstate': u'in_QA', 'oldstates': [u'new', u'assigned', u'in_Test'], u'permissions': [u'TICKET_MODIFY']}, u'test': {'operations': [], 'name': u'test', 'default': 0, 'newstate': u'in_Test', 'oldstates': [u'new', u'assigned', u'in_work'], u'permissions': [u'TICKET_MODIFY']}, u'resolve_new': {u'operations': [u'set_owner_to_self', u'set_resolution'], u'name': u'quickly resolve', 'default': 0, 'newstate': u'closed', u'set_resolution': u'fixed', 'oldstates': [u'new', u'assigned', u'in_work'], u'permissions': [u'TICKET_MODIFY']}, u'provideinfo': {'operations': [], u'name': u'provide info', u'default': 2, 'newstate': u'assigned', 'oldstates': [u'infoneeded'], u'permissions': [u'TICKET_MODIFY']}, u'requestinfo': {'operations': [], u'name': u'request info', 'default': 0, 'newstate': u'infoneeded', 'oldstates': [u'assigned', u'in_work', u'in_Test', u'in_QA'], u'permissions': [u'TICKET_MODIFY']}, u'stop': {'operations': [], 'name': u'stop', 'default': 0, 'newstate': u'assigned', 'oldstates': [u'in_work'], u'permissions': [u'TICKET_MODIFY']}, u'submit_for_review': {'operations': [], u'name': u'submit for review', 'default': 0, 'newstate': u'needs_review', 'oldstates': [u'new', u'assigned', u'needs_work', u'in_Test'], u'permissions': [u'TICKET_MODIFY']}, u'startwork_new': {u'operations': [u'set_owner_to_self'], u'name': u'start work', 'default': 0, 'newstate': u'in_work', 'oldstates': [u'new'], u'permissions': [u'TICKET_MODIFY']}, u'requestinfo_new': {'operations': [], u'name': u'request info', 'default': 0, 'newstate': u'infoneeded_new', 'oldstates': [u'new'], u'permissions': [u'TICKET_MODIFY']}, u'under_review': {'operations': [], u'name': u'start review', 'default': 0, 'newstate': u'under_review', 'oldstates': [u'needs_review'], u'permissions': [u'TICKET_MODIFY']}, u'provideinfo_new': {'operations': [], u'name': u'provide info', u'default': 2, 'newstate': u'new', 'oldstates': [u'infoneeded_new'], u'permissions': [u'TICKET_MODIFY']}, u'resolve': {u'operations': [u'set_resolution'], 'name': u'resolve', 'default': 0, 'newstate': u'closed', 'oldstates': [u'new', u'assigned', u'reopened'], u'permissions': [u'TICKET_MODIFY']}, u'leave': {u'operations': [u'leave_status'], 'name': u'leave', u'default': 1, 'newstate': u'*', 'oldstates': [u'*'], 'permissions': []}, u'reassign': {u'operations': [u'set_owner'], 'name': u'reassign', 'default': 0, 'newstate': u'new', 'oldstates': [u'new', u'assigned', u'reopened'], u'permissions': [u'TICKET_MODIFY']}, u'review_accepted': {'operations': [], u'name': u'review passed', 'default': 0, 'newstate': u'assigned', 'oldstates': [u'under_review'], u'permissions': [u'TICKET_MODIFY']}, u'assign': {u'operations': [u'set_owner'], 'name': u'assign', 'default': 0, 'newstate': u'assigned', 'oldstates': [u'new'], u'permissions': [u'TICKET_MODIFY']}, '_reset': {'operations': ['reset_workflow'], 'name': 'reset', 'default': 0, 'newstate': 'new', 'oldstates': [], 'permissions': []}}

2019-08-08 14:13:16,737 Trac[env] WARNING: base_url option not set in configuration, generated links may be incorrect
2019-08-08 14:13:16,737 Trac[main] DEBUG: Dispatching <RequestWithSession "GET '/ticket/5374'">
2019-08-08 14:13:16,739 Trac[session] DEBUG: Retrieving session for ID u'daniel2'
2019-08-08 14:13:16,741 Trac[main] DEBUG: Negotiated locale: None -> None
2019-08-08 14:13:16,743 Trac[svn_fs] DEBUG: Subversion bindings imported
2019-08-08 14:13:16,746 Trac[api] INFO: Synchronized '(default)' repository in 0.01 seconds
2019-08-08 14:13:16,747 Trac[api] DEBUG: action controllers for ticket workflow: ['ConfigurableTicketWorkflow']
2019-08-08 14:13:16,869 Trac[default_workflow] DEBUG: render_ticket_action_control: action "leave"
2019-08-08 14:13:16,869 Trac[default_workflow] DEBUG: render_ticket_action_control: action "test_qa"
2019-08-08 14:13:16,870 Trac[default_workflow] DEBUG: render_ticket_action_control: action "test"
2019-08-08 14:13:16,870 Trac[default_workflow] DEBUG: render_ticket_action_control: action "submit_for_review"
2019-08-08 14:13:16,870 Trac[default_workflow] DEBUG: render_ticket_action_control: action "startwork_new"
2019-08-08 14:13:16,870 Trac[default_workflow] DEBUG: render_ticket_action_control: action "resolve_new"
2019-08-08 14:13:16,871 Trac[default_workflow] DEBUG: render_ticket_action_control: action "resolve"
2019-08-08 14:13:16,872 Trac[default_workflow] DEBUG: render_ticket_action_control: action "requestinfo_new"
2019-08-08 14:13:16,872 Trac[default_workflow] DEBUG: render_ticket_action_control: action "reject_new"
2019-08-08 14:13:16,872 Trac[default_workflow] DEBUG: render_ticket_action_control: action "reassign"
2019-08-08 14:13:16,873 Trac[default_workflow] DEBUG: render_ticket_action_control: action "assign"
2019-08-08 14:13:16,873 Trac[default_workflow] DEBUG: render_ticket_action_control: action "accept"
2019-08-08 14:13:16,880 Trac[chrome] DEBUG: Prepare chrome data for request
2019-08-08 14:13:17,141 Trac[main] WARNING: [10.10.2.4] HTTPInternalError: 500 Trac Error (Genshi UnicodeEncodeError error while rendering template (unknown template location))
Last edited 5 years ago by Ryan J Ollos (previous) (diff)

by anonymous, 5 years ago

Attachment: trac_version.JPG added

comment:4 by anonymous, 5 years ago

we are having the same issue in the ticket /ticket/5374 too

comment:5 by anonymous, 5 years ago

Version: 1.0.101.0

Your Trac is too old (Trac 1.0). Please try Trac 1.0.19.

Version 0, edited 5 years ago by anonymous (next)

comment:6 by anonymous, 5 years ago

Can you give the instructions for that upgrade?

I found only instructions to upgrade from 1.0 to 1.2

https://trac.edgewall.org/wiki/1.3/TracUpgrade#to1.2

thanks!

comment:7 by Ryan J Ollos, 5 years ago

Steps are listed here: 1.0/TracUpgrade.

Suggest replacing easy_install --upgrade Trac==1.0 with:

$ pip uninstall trac
$ pip install trac==1.0.18

You may not have pip installed since you are on Python 2.6.x. Here are instructions for installing pip.

If you still have the error after your upgrade, disable all plugins. Presumably the issue will be fixed, then enable them one at a time until the issue is seen.

comment:8 by Ryan J Ollos, 5 years ago

Milestone: next-stable-1.0.x
Resolution: cantfix
Status: newclosed

We will reopen if it's not an InstallationIssue, but that's unlikely. Feel free to follow-up here or on the MailingList if you have more information to share.

comment:9 by daniel.velez@…, 5 years ago

Hi Ryan J Ollos

The upgrade worked well, thanks for your recommendations, we appreciated it.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.