On Sep 1, 2010, at 4:40 PM, kcrisman wrote:
> On Sep 1, 6:58 am, Ivan Andrus <darthand...@gmail.com> wrote:
>> On Aug 31, 2010, at 8:15 PM, Ivan Andrus wrote:
>>> On Aug 31, 2010, at 7:37 PM, Jason Grout wrote:
>>>> When I click "stop server", and then "start server", I see this error 
>>>> message in the log:
>> 
>>>> Setting environment variables
>>>> Warning: Attempted to overwrite SAGE_ROOT environment variable
>>>> Checking install location
>>>> Traceback (most recent call last):
>>>> File "./local/bin/sage-location", line 5, in <module>
>>>>   SAGE_ROOT     = os.environ['SAGE_ROOT']
>>>> File "/Users/grout/sage-4.5.2//local/lib/python/UserDict.py", line 22, in 
>>>> __getitem__
>>>>   raise KeyError(key)
>>>> KeyError: 'SAGE_ROOT'
>>>> Starting Notebook
>>>> ----------------------------------------------------------------------
>>>> | Sage Version 4.5.2, Release Date: 2010-08-05                       |
>>>> | Type notebook() for the GUI, and license() for information.        |
>>>> ----------------------------------------------------------------------
>> 
>>>> Please wait while the Sage Notebook server starts...
>>>> 2010-08-31 12:36:19-0500 [-] Log opened.
>>>> 2010-08-31 12:36:19-0500 [-] twistd 9.0.0 
>>>> (/Users/grout/sage/local/bin/python 2.6.4) starting up.
>>>> 2010-08-31 12:36:19-0500 [-] reactor class: 
>>>> twisted.internet.selectreactor.SelectReactor.
>>>> 2010-08-31 12:36:19-0500 [-] twisted.web2.channel.http.HTTPFactory 
>>>> starting on 8000
>>>> 2010-08-31 12:36:19-0500 [-] Starting factory 
>>>> <twisted.web2.channel.http.HTTPFactory instance at 0x10a299440>
>> 
>>> Ah, I wasn't exporting SAGE_ROOT, so sage-location didn't have it.  Thanks 
>>> for catching that.  I've fixed it, but won't put a new version up tonight 
>>> (it's time for me to go home).
>> 
>> Okay, new version up with this fixed and an option to use the system browser.
> 
> When I open a terminal, I still get *two* Terminal windows - one with
> just bash, the other with the Sage instance.  There should be a way
> for that not to happen.  Probably the "activate" in the Applescript
> needs to be replaced, though just removing it causes (on my machine)
> the second window still to open, but immediately underneath so you
> can't see it!

I don't think there is much I can do about that.  Anytime you start 
Terminal.app it opens a new default terminal.  I suppose I could check if it's 
running, if not start it up and close the terminal that appears, then start the 
command.

It seems to not open an "extra" terminal if you tell it open a file, so perhaps 
I could write the command to a file, and then tell Terminal to open that.  I'm 
not sure it's worth it since it will obscure the command run.  Then again I 
always have iTerm open, so it's not a problem for me.

> You also should point out in the Pref about system browser that this
> only works after restart - at least, that's what I had to do.

Ah yes.  I think I can probably remove that limitation.

> I like the option to have a different Sage binary; one could customize
> so that one used a special dolled up Sage for research in the
> terminal, but just the default one for classroom use.

> I will try to test it some more, but so far this is good.  If we can
> get
> 
> http://trac.sagemath.org/sage_trac/ticket/8473
> 
> even dealt with it will be even better, but that shouldn't stand in
> the way of it working and being default for sage-bdist.  Assuming
> someone can review the actual code :)

I guess I'll get things plugged into sage-bdist soon.

> Is there a Trac ticket to upgrade the sage-app?  There should be a
> reference to it in this thread.


There isn't a ticket that I know of.

-Ivan

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to