On Thursday, February 12, 2015 at 5:49:28 PM UTC-5, Andrey Novoseltsev 
wrote:
>
> On Wednesday, 11 February 2015 13:26:26 UTC-7, Luis Finotti wrote:
>>
>> Dear all,
>>
>> After some problems with an older computer, I'm trying to move its 
>> worksheets to a new one.  (Both running Linux.)
>>
>> The problem is that I cannot download the worksheets via Sage: when I try 
>> I can select the worksheets and click "Download", but nothing happens.  It 
>> could very well be due to the computer itself, which is having some 
>> hardware/memory problems.  I can still access the files, though, and could 
>> manually move them.
>>
>> Note that the new computer already has some worksheets in it, so I cannot 
>> simply move the '.sage" directory.
>>
>> Also, FWIW, the old computer seems to have two places for worksheets: 
>> sage_notebook/ and  sage_notebook.sagenb/.  I can see:
>>
>>
>>
>>
>> boole[~/.sage]$ ls sage_notebook/worksheets/admin/
>> 0/ 10/ 12/ 14/ 16/ 18/ 2/ 21/ 23/ 25/ 27/ 29/ 30/ 4/ 6/ 8/ history.sobj
>> 1/ 11/ 13/ 15/ 17/ 19/ 20/ 22/ 24/ 26/ 28/ 3/ 31/ 5/ 7/ 9/
>>
>> boole[~/.sage]$ ls sage_notebook.sagenb/home/admin/
>> 0/ 10/ 12/ 14/ 16/ 18/ 2/ 21/ 23/ 25/ 27/ 29/ 30/ 32/ 34/ 36/ 38/ 4/ 41/ 
>> 43/ 45/ 47/ 5/ 7/ 9/
>> 1/ 11/ 13/ 15/ 17/ 19/ 20/ 22/ 24/ 26/ 28/ 3/ 31/ 33/ 35/ 37/ 39/ 40/ 42/ 
>> 44/ 46/ 48/ 6/ 8/ history.pickle*
>>
>>
>>
>> Is there a way to move these worksheets?
>>
>> Thanks,
>>
>> Luis
>>
>
> Hi Luis,
>
> I believe you want the folder with ".sagenb" extension -  the other one is 
> from a quite old version which should have been migrated to the new one 
> (but a copy of an old one remains).
>
> If you put it anywhere on the new computer, you can launch notebook with 
> "directory" option specifying the path. Then try to download those that you 
> want and upload into your new installation.
>
> Best,
> Andrey
>

Thanks, Andrey.  (Sorry for the delay in replying)

I could indeed copy the old directory and open in a new computer.  But, I 
can't download the worksheets all together.  I can download some 
individually, but not all.  This was in fact the same problem I had in my 
old computer.  So apparently it was not a hardware problem...

Clicking on "Download All Active" I get the following:

sage: notebook(directory='/home/finotti/utk/.sage/sage_notebook.sagenb')
The notebook files are stored in: sage_notebook.sagenb
┌────────────────────────────────────────────────┐
│                                                │
│ Open your web browser to http://localhost:8080 │
│                                                │
└────────────────────────────────────────────────┘
Executing twistd  --pidfile="sage_notebook.sagenb/sagenb.pid" -ny 
"sage_notebook.sagenb/twistedconf.tac"
/usr/local/sage-6.4.1/local/lib/python2.7/site-packages/Crypto/Util/number.
py:57: PowmInsecureWarning: Not using mpz_powm_sec.  You should rebuild 
using libgmp >= 5 to avoid timing attack vulnerability.
  _warn("Not using mpz_powm_sec.  You should rebuild using libgmp >= 5 to 
avoid timing attack vulnerability.", PowmInsecureWarning)
2015-02-19 11:57:51-0500 [-] Log opened.
2015-02-19 11:57:51-0500 [-] twistd 14.0.2 
(/usr/local/sage-6.4.1/local/bin/python 
2.7.8) starting up.
2015-02-19 11:57:51-0500 [-] reactor class: twisted.internet.epollreactor.
EPollReactor.
2015-02-19 11:57:51-0500 [-] QuietSite starting on 8080
2015-02-19 11:57:51-0500 [-] Starting factory <__builtin__.QuietSite 
instance at 0x7f90b8420dd0>

(process:1194): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size 
== 0' failed
2015-02-19 11:57:53-0500 [HTTPChannel,0,127.0.0.1] Starting zipping a group 
of worksheets in a separate thread...
2015-02-19 11:57:54-0500 [-] WSGI application error
        Traceback (most recent call last):
          File 
"/usr/local/sage-6.4.1/local/lib/python2.7/site-packages/Twisted-14.0.2-py2.7-linux-x86_64.egg/twisted/python/threadpool.py"
, line 217, in _worker
            o = self.q.get()
          File 
"/usr/local/sage-6.4.1/local/lib/python2.7/site-packages/Twisted-14.0.2-py2.7-linux-x86_64.egg/twisted/python/context.py"
, line 118, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, 
**kw)
          File 
"/usr/local/sage-6.4.1/local/lib/python2.7/site-packages/Twisted-14.0.2-py2.7-linux-x86_64.egg/twisted/python/context.py"
, line 83, in callWithContext
            self.contexts.pop()
          File 
"/usr/local/sage-6.4.1/local/lib/python2.7/site-packages/Twisted-14.0.2-py2.7-linux-x86_64.egg/twisted/web/wsgi.py"
, line 340, in run
            self.started = True
        --- <exception caught here> ---
          File 
"/usr/local/sage-6.4.1/local/lib/python2.7/site-packages/Twisted-14.0.2-py2.7-linux-x86_64.egg/twisted/web/wsgi.py"
, line 315, in run
            appIterator = self.application(self.environ, self.startResponse)
          File 
"/usr/local/sage-6.4.1/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py"
, line 1836, in __call__
            return self.wsgi_app(environ, start_response)
          File 
"/usr/local/sage-6.4.1/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py"
, line 1820, in wsgi_app
            response = self.make_response(self.handle_exception(e))
          File 
"/usr/local/sage-6.4.1/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py"
, line 1403, in handle_exception
            reraise(exc_type, exc_value, tb)
          File 
"/usr/local/sage-6.4.1/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py"
, line 1817, in wsgi_app
            response = self.full_dispatch_request()
          File 
"/usr/local/sage-6.4.1/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py"
, line 1477, in full_dispatch_request
            rv = self.handle_user_exception(e)
          File 
"/usr/local/sage-6.4.1/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py"
, line 1381, in handle_user_exception
            reraise(exc_type, exc_value, tb)
          File 
"/usr/local/sage-6.4.1/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py"
, line 1475, in full_dispatch_request
            rv = self.dispatch_request()
          File 
"/usr/local/sage-6.4.1/local/lib/python2.7/site-packages/Flask-0.10.1-py2.7.egg/flask/app.py"
, line 1461, in dispatch_request
            return self.view_functions[rule.endpoint](**req.view_args)
          File 
"/usr/local/sage-6.4.1/local/lib/python2.7/site-packages/sagenb-0.11.1-py2.7.egg/sagenb/flask_version/decorators.py"
, line 22, in wrapper
            return f(*args, **kwds)
          File 
"/usr/local/sage-6.4.1/local/lib/python2.7/site-packages/sagenb-0.11.1-py2.7.egg/sagenb/flask_version/worksheet_listing.py"
, line 214, in download_worksheets
            g.notebook.export_worksheet(worksheet.filename(), sws_filename)
          File 
"/usr/local/sage-6.4.1/local/lib/python2.7/site-packages/sagenb-0.11.1-py2.7.egg/sagenb/notebook/notebook.py"
, line 741, in export_worksheet
            S.export_worksheet(username, id_number, output_filename, title=
title)
          File 
"/usr/local/sage-6.4.1/local/lib/python2.7/site-packages/sagenb-0.11.1-py2.7.egg/sagenb/storage/filesystem_storage.py"
, line 468, in export_worksheet
            f.write(old_heading + g.read())
        exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 
in position 5454: ordinal not in range(128)

Any help would be appreciated.

Best to all,

Luis

 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to