Hello it is me again :) (this joke won't even work in a few weeks but I could not resist ;) )
While doing tests on Question #200255 I added another branch to the repo browser that is called "schéma" with an accentuated letter, old mistake, constant pains (I plan to remove it but it implies changing lots of path, postponing IS the mother of many troubles).
Browsing the repo through this link bring a :
"Trac detected an internal error:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 75: ordinal not in range(128)"
I had previously upgraded the plug-in to the latest trunk branch with "bzr branch lp:trac-bzr".
Her is the complete stack
Python Traceback
Most recent call last:
File "/home/tracuser/tracstbenv/lib/python2.7/site-packages/Trac-0.12.4dev_r0-py2.7.egg/trac/web/main.py", line 522, in _dispatch_request
dispatcher.dispatch(req)
File "/home/tracuser/tracstbenv/lib/python2.7/site-packages/Trac-0.12.4dev_r0-py2.7.egg/trac/web/main.py", line 243, in dispatch
resp = chosen_handler.process_request(req)
File "/home/tracuser/tracstbenv/lib/python2.7/site-packages/Trac-0.12.4dev_r0-py2.7.egg/trac/versioncontrol/web_ui/browser.py", line 371, in process_request
node = get_existing_node(req, repos, path, rev_or_latest)
File "/home/tracuser/tracstbenv/lib/python2.7/site-packages/Trac-0.12.4dev_r0-py2.7.egg/trac/versioncontrol/web_ui/util.py", line 64, in get_existing_node
return repos.get_node(path, rev)
File "/home/tracuser/tracstbenv/lib/python2.7/site-packages/TracBzr-0.4.2_20120613-py2.7.egg/tracbzr/backend.py", line 625, in get_node
branch, relpath = self.get_containing_branch(path)
File "/home/tracuser/tracstbenv/lib/python2.7/site-packages/TracBzr-0.4.2_20120613-py2.7.egg/tracbzr/backend.py", line 501, in get_containing_branch
url, possible_transports=[self.root_transport])
File "/usr/local/lib/python2.7/site-packages/bzrlib/controldir.py", line 732, in open_containing
return klass.open_containing_from_transport(transport)
File "/usr/local/lib/python2.7/site-packages/bzrlib/controldir.py", line 753, in open_containing_from_transport
result = klass.open_from_transport(a_transport)
File "/usr/local/lib/python2.7/site-packages/bzrlib/controldir.py", line 716, in open_from_transport
find_format, transport, redirected)
File "/usr/local/lib/python2.7/site-packages/bzrlib/transport/__init__.py", line 1718, in do_catching_redirections
return action(transport)
File "/usr/local/lib/python2.7/site-packages/bzrlib/controldir.py", line 704, in find_format
probers=probers)
File "/usr/local/lib/python2.7/site-packages/bzrlib/controldir.py", line 1149, in find_format
return prober.probe_transport(transport)
File "/usr/local/lib/python2.7/site-packages/bzrlib/bzrdir.py", line 1250, in probe_transport
format_string = transport.get_bytes(".bzr/branch-format")
File "/usr/local/lib/python2.7/site-packages/bzrlib/transport/__init__.py", line 623, in get_bytes
f = self.get(relpath)
File "/usr/local/lib/python2.7/site-packages/bzrlib/transport/local.py", line 166, in get
return osutils.open_file(path, 'rb')
And in my apache conf file, there is in the virtual host
WSGIPassAuthorization off
SetEnv LC_TIME "xx_YY"
SetEnv trac.locale "fr_FR.UTF-8"
SetEnv "LANG fr_FR"
Hello it is me again :) (this joke won't even work in a few weeks but I could not resist ;) )
While doing tests on Question #200255 I added another branch to the repo browser that is called "schéma" with an accentuated letter, old mistake, constant pains (I plan to remove it but it implies changing lots of path, postponing IS the mother of many troubles).
Browsing the repo through this link bring a :
"Trac detected an internal error:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 75: ordinal not in range(128)"
I had previously upgraded the plug-in to the latest trunk branch with "bzr branch lp:trac-bzr".
Her is the complete stack
Python Traceback
Most recent call last:
File "/home/ tracuser/ tracstbenv/ lib/python2. 7/site- packages/ Trac-0. 12.4dev_ r0-py2. 7.egg/trac/ web/main. py", line 522, in _dispatch_request dispatch( req) tracuser/ tracstbenv/ lib/python2. 7/site- packages/ Trac-0. 12.4dev_ r0-py2. 7.egg/trac/ web/main. py", line 243, in dispatch handler. process_ request( req) tracuser/ tracstbenv/ lib/python2. 7/site- packages/ Trac-0. 12.4dev_ r0-py2. 7.egg/trac/ versioncontrol/ web_ui/ browser. py", line 371, in process_request node(req, repos, path, rev_or_latest) tracuser/ tracstbenv/ lib/python2. 7/site- packages/ Trac-0. 12.4dev_ r0-py2. 7.egg/trac/ versioncontrol/ web_ui/ util.py" , line 64, in get_existing_node node(path, rev) tracuser/ tracstbenv/ lib/python2. 7/site- packages/ TracBzr- 0.4.2_20120613- py2.7.egg/ tracbzr/ backend. py", line 625, in get_node containing_ branch( path) tracuser/ tracstbenv/ lib/python2. 7/site- packages/ TracBzr- 0.4.2_20120613- py2.7.egg/ tracbzr/ backend. py", line 501, in get_containing_ branch transports= [self.root_ transport] ) lib/python2. 7/site- packages/ bzrlib/ controldir. py", line 732, in open_containing containing_ from_transport( transport) lib/python2. 7/site- packages/ bzrlib/ controldir. py", line 753, in open_containing _from_transport from_transport( a_transport) lib/python2. 7/site- packages/ bzrlib/ controldir. py", line 716, in open_from_transport lib/python2. 7/site- packages/ bzrlib/ transport/ __init_ _.py", line 1718, in do_catching_ redirections lib/python2. 7/site- packages/ bzrlib/ controldir. py", line 704, in find_format lib/python2. 7/site- packages/ bzrlib/ controldir. py", line 1149, in find_format probe_transport (transport) lib/python2. 7/site- packages/ bzrlib/ bzrdir. py", line 1250, in probe_transport get_bytes( ".bzr/branch- format" ) lib/python2. 7/site- packages/ bzrlib/ transport/ __init_ _.py", line 623, in get_bytes lib/python2. 7/site- packages/ bzrlib/ transport/ local.py" , line 166, in get open_file( path, 'rb')
dispatcher.
File "/home/
resp = chosen_
File "/home/
node = get_existing_
File "/home/
return repos.get_
File "/home/
branch, relpath = self.get_
File "/home/
url, possible_
File "/usr/local/
return klass.open_
File "/usr/local/
result = klass.open_
File "/usr/local/
find_format, transport, redirected)
File "/usr/local/
return action(transport)
File "/usr/local/
probers=probers)
File "/usr/local/
return prober.
File "/usr/local/
format_string = transport.
File "/usr/local/
f = self.get(relpath)
File "/usr/local/
return osutils.
And the additional infos : TracPlugin tionplugin Admin 0.2.8-r0 lugin 0.1.0
AutocompleteUsers 0.4.2dev-r0
EstimationTools 0.4.5-r0
ExtendedVersion
timingandestima
Trac-jsGantt 0.10-r0
TracAccountManager 0.4dev-r0
TracAnnouncer 0.11.1-r0
TracBzr 0.4.2-20120613
TracCustomField
TracDateField 2.0.0dev-r0
TracDragDrop 0.12.0.7-r0
TracFullBlogPlugin 0.1.1-r0
TracMasterTickets 3.0.2
TracSphinx 0.2.1
TracSubTicketsP
TracTags 0.6
And in my apache conf file, there is in the virtual host zation off
WSGIPassAuthori
SetEnv LC_TIME "xx_YY"
SetEnv trac.locale "fr_FR.UTF-8"
SetEnv "LANG fr_FR"
[...]
I hope it helps.