On 28 aug, 02:31, Mitesh Patel <[email protected]> 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())
> >    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.

Hi Mitesh,

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.

Roland

-- 
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-support
URL: http://www.sagemath.org

Reply via email to