There's a ticket and patch addressing this exact issue at http://trac.sagemath.org/sage_trac/ticket/9711.
On Sat, Aug 28, 2010 at 7:48 PM, Mitesh Patel <qed...@gmail.com> wrote: > On 08/28/2010 12:42 AM, Rolandb wrote: >> On 28 aug, 02:31, Mitesh Patel <qed...@gmail.com> wrote: >>> On 08/27/2010 02:57 PM, Rolandb wrote: >>>> VMware 3.1.1 with 4.5.1: >>> >>>> 2010-08-16 13:01:46-0700 [-] Log opened. >>>> 2010-08-16 13:01:46-0700 [-] twistd 9.0.0 (/home/sage/sage/local/bin/ >>>> python 2.6.4) starting up. >>>> 2010-08-16 13:01:46-0700 [-] reactor class: >>>> twisted.internet.selectreactor.SelectReactor. >>>> 2010-08-16 13:01:46-0700 [-] twisted.web2.channel.http.HTTPFactory >>>> starting on 8000 >>>> 2010-08-16 13:01:46-0700 [-] Starting factory >>>> <twisted.web2.channel.http.HTTPFactory instance at 0xad4e0cc> >>> >>>> (firefox:1942): GLib-WARNING **: g_set_prgname() called multiple times >>>> 2010-08-16 23:00:37-0700 [HTTPChannel,142,127.0.0.1] /home/sage/sage/ >>>> local/lib/python2.6/site-packages/sagenb-0.8.1-py2.6.egg/sagenb/ >>>> notebook/worksheet.py:1936: exceptions.UnicodeWarning: Unicode equal >>>> comparison failed to convert both arguments to Unicode - interpreting >>>> them as being unequal >>>> 2010-08-27 12:49:12-0700 [HTTPChannel,742,127.0.0.1] Starting zipping >>>> a group of worksheets in a separate thread... >>>> 2010-08-27 12:49:14-0700 [-] Exception rendering: >>>> 2010-08-27 12:49:14-0700 [-] Unhandled Error >>>> Traceback (most recent call last): >>>> File "/home/sage/sage/local/lib/python/threading.py", line 497, in >>>> __bootstrap >>>> self.__bootstrap_inner() >>>> File "/home/sage/sage/local/lib/python/threading.py", line 525, in >>>> __bootstrap_inner >>>> self.run() >>>> File "/home/sage/sage/local/lib/python/threading.py", line 477, in >>>> run >>>> self.__target(*self.__args, **self.__kwargs) >>>> --- <exception caught here> --- >>>> File "/home/sage/sage/local/lib/python2.6/site-packages/ >>>> Twisted-9.0.0-py2.6-linux-i686.egg/twisted/python/threadpool.py", line >>>> 210, in _worker >>>> result = context.call(ctx, function, *args, **kwargs) >>>> File "/home/sage/sage/local/lib/python2.6/site-packages/ >>>> Twisted-9.0.0-py2.6-linux-i686.egg/twisted/python/context.py", line >>>> 59, in callWithContext >>>> return self.currentContext().callWithContext(ctx, func, *args, >>>> **kw) >>>> File "/home/sage/sage/local/lib/python2.6/site-packages/ >>>> Twisted-9.0.0-py2.6-linux-i686.egg/twisted/python/context.py", line >>>> 37, in callWithContext >>>> return func(*args,**kw) >>>> File "/home/sage/sage/local/lib/python2.6/site-packages/ >>>> sagenb-0.8.1-py2.6.egg/sagenb/notebook/twist.py", line 1448, in f >>>> notebook.export_worksheet(worksheet.filename(), sws_filename) >>>> File "/home/sage/sage/local/lib/python2.6/site-packages/ >>>> sagenb-0.8.1-py2.6.egg/sagenb/notebook/notebook.py", line 983, in >>>> export_worksheet >>>> S.export_worksheet(username, id_number, output_filename, >>>> title=title) >>>> File "/home/sage/sage/local/lib/python2.6/site-packages/ >>>> sagenb-0.8.1-py2.6.egg/sagenb/storage/filesystem_storage.py", line >>>> 362, in export_worksheet >>>> open(worksheet_txt,'w').write(old_heading + >>>> open(worksheet_html).read()) > > > Might it help to insert an .encode()/.decode() pair here? > > >>>> exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 >>>> in position 8037: ordinal not in range(128) >>> >>>> Any idea? >>> >>> This appears to have happened when you clicked to "Download All Active" >>> worksheets. Could you try to isolate an individual worksheet that >>> raises this exception by downloading your worksheets individually? I'd >>> start with any worksheets that contain non-ASCII characters in the title >>> or body. >> >> I found 2 individual worksheets with a problem. Just copying the text >> and saving the file worked in 1 case, but with the other worksheet I >> ran into the >> "Bad Request Maximum length of 102400 bytes exceeded" problem. >> http://groups.google.com/group/sage-support/browse_thread/thread/c814c8cf7bc7dd87 >> >> However, the first file is very simple and I didn't use non-ASCII >> characters. > > -- > To post to this group, send email to sage-support@googlegroups.com > To unsubscribe from this group, send email to > sage-support+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org > -- Tim Joseph Dumol <tim (at) timdumol (dot) com> http://timdumol.com -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org