Hi,

I ran into a fatal error. Sprint backlog for newly created sprint produced 
unicode error. 

2014-05-23 13:15:04,517 Trac[main] ERROR: Internal Server Error: 
Traceback (most recent call last):
  File 
"c:\docume~1\a1010053\locals~1\temp\1\easy_install-7f6_yv\Trac-1.0-py2.5-win32.egg.tmp\trac\web\main.py",
 
line 497, in _dispatch_request
    dispatcher.dispatch(req)
  File 
"c:\docume~1\a1010053\locals~1\temp\1\easy_install-7f6_yv\Trac-1.0-py2.5-win32.egg.tmp\trac\web\main.py",
 
line 214, in dispatch
    resp = chosen_handler.process_request(req)
  File 
"d:\python25\lib\site-packages\binary_agilo-1.3.13_PRO-py2.5.egg\agilo\api\view.py",
 
line 155, in process_request
    return self._call_filters_and_handler(req, handler)
  File 
"d:\python25\lib\site-packages\binary_agilo-1.3.13_PRO-py2.5.egg\agilo\api\view.py",
 
line 143, in _call_filters_and_handler
    data = handler(req) or {}
  File 
"d:\python25\lib\site-packages\binary_agilo-1.3.13_PRO-py2.5.egg\agilo\scrum\backlog\web_ui.py",
 
line 334, in do_get
    sprint_end_date=backlog.sprint().end.strftime("%a %B %d").decode('utf8')
  File "D:\python25\Lib\encodings\utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 6-8: 
invalid data


The culprit was found to be with python localisation. Any sprint that would 
start or end during June reproduces the error with Finnish locale (June == 
Kesäkuu). I quickly patched our agilo installation as follows to allow us 
keep using it:

agilo/scrum/backlog/web_ui.py, Line 333  
                # sprint_start_date=backlog.sprint().start.strftime("%a %B 
%d").decode('utf8'),
                # sprint_end_date=backlog.sprint().end.strftime("%a %B 
%d").decode('utf8')
                
sprint_start_date=backlog.sprint().start.strftime("%d.%m.%y").decode('utf8'),
                
sprint_end_date=backlog.sprint().end.strftime("%d.%m.%y").decode('utf8')

I.e. render the dates in dd.mm.yy format

Our installation is as follows:
System InformationPackageVersionTrac1.0Agilo1.3.13-proGenshi0.7 (without 
speedups)mod_python3.3.1MySQLserver: "5.5.34-MariaDB", client: "6.0.0", 
thread-safe: 1MySQLdb1.2.4Pygments1.0Python2.5 (r25:51908, Sep 19 2006, 
09:52:17) [MSC v.1310 32 bit (Intel)]setuptools1.4.2Subversion1.6.2 (r37639)
jQuery1.7.2


BR,
Tero

-- 
-- 
Follow Agilo on Twitter: http://twitter.com/agilofortrac
Please support us by reviewing and voting on: 
http://userstories.com/products/8-agilo-for-scrum 
http://ohloh.net/p/agilo-trac
http://freshmeat.net/projects/agiloforscrum

You have received this message because you are subscribed to
the "Agilo for Trac" Google Group. This group is focused on
supporting Agilo for Trac users and is moderated by
Agilo Software GmbH <http://www.agilosoftware.com>.

To post to this group, send email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/agilo

--- 
You received this message because you are subscribed to the Google Groups 
"Agilo for Trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to