#9711: sagenb notebook -- error when downloading worksheets in some cases
involving non-ASCII characters
------------------------+---------------------------------------------------
Reporter: was | Owner: jason, was
Type: defect | Status: new
Priority: major | Milestone: sage-4.5.3
Component: notebook | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------+---------------------------------------------------
I hope this traceback from the serverlog on prep.sagenb.org will help me
to debug and fix this:
{{{
2010-08-09 14:11:02-0700 [-] Exception rendering:
2010-08-09 14:11:02-0700 [-] Unhandled Error
Traceback (most recent call last): File "/usr/local/sage-
prep/local/lib/python/threading.py", line 497, in __bootstrap
self.__bootstrap_inner()
File "/usr/local/sage-prep/local/lib/python/threading.py", line
525, in __bootstrap_inner self.run()
File "/usr/local/sage-prep/local/lib/python/threading.py", line
477, in run
self.__target(*self.__args, **self.__kwargs)
--- <exception caught here> ---
File "/usr/local/sage-prep/local/lib/python2.6/site-
packages/twisted/python/threadpool.py", line 210, in _worker
result = context.call(ctx, function, *args, **kwargs)
File "/usr/local/sage-prep/local/lib/python2.6/site-
packages/twisted/python/context.py", line 59, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args,
**kw)
File "/usr/local/sage-prep/local/lib/python2.6/site-
packages/twisted/python/context.py", line 37, in callWithContext
return func(*args,**kw)
File "/usr/local/sage-
prep/sagenb-0.8.p2/src/sagenb/sagenb/notebook/twist.py", line 1448, in f
notebook.export_worksheet(worksheet.filename(), sws_filename)
File "/usr/local/sage-
prep/sagenb-0.8.p2/src/sagenb/sagenb/notebook/notebook.py", line 983, in
export_work
sheet
S.export_worksheet(username, id_number, output_filename,
title=title)
File "/usr/local/sage-
prep/sagenb-0.8.p2/src/sagenb/sagenb/storage/filesystem_storage.py", line
362, in ex
port_worksheet
open(worksheet_txt,'w').write(old_heading +
open(worksheet_html).read())
exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte
0xc2 in position 180: ordinal not in range(12
8)
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9711>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.