On Tue, Jun 3, 2008 at 5:14 AM, Mats <[EMAIL PROTECTED]> wrote:
>
> Unfortunately the example in the docs doesn't work (bug?), so I'm
> checking with the sage-devel group.
> Thank you however!

You've encountered the "one big bug" in sage-3.0.2.
See
http://trac.sagemath.org/sage_trac/ticket/3311
where we fixed it.

I think you can fix the bug "by hand", by simplying copying
SAGE_ROOT/local/bin/dsage* to
SAGE_ROOT/local/lib/python/site-packages/sage/dsage/scripts

I'm terribly sorry for this major bug getting into sage-3.0.2.

(By the way, running with secure=False should also "just work",
but of course is a bad idea since your notebook password could
be sniffed.)

William


>
> Best wishes,
> Mats
>
> (for the record:)
>
> sage: notebook(address='', secure=True)
> The notebook files are stored in: /home/mats/.sage//sage_notebook
> In order to use an SECURE encrypted notebook, you must first run
> notebook.setup().
> Now running notebook.setup()
> Using dsage certificates.
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call
> last)
>
> /home/mats/.sage/<ipython console> in <module>()
>
> /home/mats/install/sage-3.0.2-suse-x86_64-bit-x86_64-Linux/local/lib/
> python2.5/site-packages/sage/server/notebook/notebook_object.py in
> __call__(self, *args, **kwds)
>    141     """
>    142     def __call__(self, *args, **kwds):
> --> 143         return self.notebook(*args, **kwds)
>    144
>    145     notebook = run_notebook.notebook_twisted
>
> /home/mats/install/sage-3.0.2-suse-x86_64-bit-x86_64-Linux/local/lib/
> python2.5/site-packages/sage/server/notebook/run_notebook.py in
> notebook_twisted(self, directory, port, address, port_tries, secure,
> reset, accounts, require_login, server_pool, ulimit, timeout,
> open_viewer, sagetex_path, start_path, fork, quiet)
>    269     if open_viewer:
>    270         "Open viewer automatically isn't fully implemented.
> You have to manually open your web browser to the above URL."
> --> 271     return run(port)
>    272
>    273
>
> /home/mats/install/sage-3.0.2-suse-x86_64-bit-x86_64-Linux/local/lib/
> python2.5/site-packages/sage/server/notebook/run_notebook.py in
> run(port)
>    141                 print "In order to use an SECURE encrypted
> notebook, you must first run notebook.setup()."
>    142                 print "Now running notebook.setup()"
> --> 143                 notebook_setup()
>    144             if not os.path.exists(private_pem) or not
> os.path.exists(public_pem):
>    145                 print "Failed to setup notebook.  Please try
> notebook.setup() again manually."
>
> /home/mats/install/sage-3.0.2-suse-x86_64-bit-x86_64-Linux/local/lib/
> python2.5/site-packages/sage/server/notebook/run_notebook.py in
> notebook_setup(self)
>     37     dsage = os.path.join(DOT_SAGE, 'dsage')
>     38     import sage.dsage.all
> ---> 39     sage.dsage.all.dsage.setup()
>     40     shutil.copyfile(dsage + '/cacert.pem', private_pem)
>     41     shutil.copyfile(dsage + '/pubcert.pem', public_pem)
>
> /home/mats/install/sage-3.0.2-suse-x86_64-bit-x86_64-Linux/local/lib/
> python2.5/site-packages/sage/dsage/dsage.py in setup(self, template)
>    312         """
>    313
> --> 314         from sage.dsage.scripts.dsage_setup import setup
>    315         setup(template=template)
>    316
>
> ImportError: No module named dsage_setup
> sage:
>
> ____________________
>
> Seems to be failing on notebook.setup() when trying to import
> dsage_setup, which doesn't exist.
>
> On Jun 2, 12:50 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
>> On Mon, Jun 2, 2008 at 9:36 AM, Mats <[EMAIL PROTECTED]> wrote:
>>
>> > Hello,
>>
>> > I'd like to run a server on a 4-core computer, so I ssh into it and
>> > run "./sage -notebook", and it starts up, but I cannot access it
>> > remotely (http://name.of.host:8000). Is this a security feature I can
>> > get around somehow?
>>
>> > Thank you,
>>
>> Start sage and type
>>
>>  sage: notebook?
>>
>> and read the directions.  In particular see the address= line.
>>
>>  -- William
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to