Ask Your Question

ye's profile - activity

2016-12-28 23:52:00 -0600 received badge  Notable Question (source)
2016-12-07 14:46:08 -0600 received badge  Famous Question (source)
2016-12-07 14:46:08 -0600 received badge  Notable Question (source)
2016-08-29 02:52:31 -0600 received badge  Popular Question (source)
2015-10-22 14:42:27 -0600 received badge  Popular Question (source)
2015-05-07 05:23:38 -0600 received badge  Student (source)
2015-05-07 02:24:40 -0600 answered a question 500: Internal server error. Mac, OS 10.9

Deleting ~/.sage/sage_notebook.sagenb has solved the problem.

2015-05-07 02:05:38 -0600 commented question 500: Internal server error. Mac, OS 10.9

I did a clean install on the other Mac, and did not copy anything from the first Mac. But I tried sage some years ago.

Deleting .sage/sage_notebook.sagenb has solved the problem.

The output of the shell is

    ./sage  -sh; echo $DOT_SAGENB
Starting subshell with Sage environment variables set.  Don't forget
to exit when you are done.  Beware:
 * Do not do anything with other copies of Sage on your system.
 * Do not use this for installing Sage packages using "sage -i" or for
   running "make" at Sage's root directory.  These should be done
   outside the Sage shell.

Bypassing shell configuration files...
Note: SAGE_ROOT=/Volumes/DatenYM/Progr/Sage/sage-6.6
2015-05-06 06:52:33 -0600 asked a question 500: Internal server error. Mac, OS 10.9

I tried to install sage on an other Mac with OS10.9.5. I compield it myself, the tests run without error. But when I try to start the notebook, the browser window opens with sage, but reports:

500: Internal server error.

The complete output of the terminal see below. The only particular thing with this Mac is that it has no (and will not have) connection to the internet.

Any Ideas waht could be the problem?

  notebook()
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"
/Volumes/DatenYM/Progr/Sage/sage-6.6/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-05-06 13:39:05+0200 [-] Log opened.
2015-05-06 13:39:05+0200 [-] twistd 14.0.2 (/Volumes/DatenYM/Progr/Sage/sage-6.6/local/bin/python 2.7.8) starting up.
2015-05-06 13:39:05+0200 [-] reactor class: twisted.internet.selectreactor.SelectReactor.
2015-05-06 13:39:05+0200 [-] QuietSite starting on 8080
2015-05-06 13:39:05+0200 [-] Starting factory <__builtin__.QuietSite instance at 0x11522d5f0>
[Errno 66] Directory not empty
Traceback (most recent call last):
  File "/Volumes/DatenYM/Progr/Sage/sage-6.6/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 "/Volumes/DatenYM/Progr/Sage/sage-6.6/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 "/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/flask_version/decorators.py", line 22, in wrapper
    return f(*args, **kwds)
  File "/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/flask_version/worksheet_listing.py", line 67, in home
    return render_worksheet_list(request.args, pub=False, username=username)
  File "/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/flask_version/worksheet_listing.py", line 43, in render_worksheet_list
    search=search, reverse=reverse)
  File "/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/notebook/notebook.py", line 1295, in worksheet_list_for_user
    X = self.get_worksheets_with_viewer(user)
  File "/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/notebook/notebook.py", line 1477, in get_worksheets_with_viewer
    if self._user_manager.user_is_admin(username): return self.get_all_worksheets()
  File "/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/notebook/notebook.py", line 1472, in get_all_worksheets
    for w in self.users_worksheets(username):
  File "/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/notebook/notebook.py", line 380, in users_worksheets
    worksheets = self.__storage.worksheets(username)
  File "/Volumes/DatenYM ...
(more)
2015-04-30 02:01:37 -0600 received badge  Scholar (source)
2015-04-30 02:01:15 -0600 answered a question Unhandled SIGILL by using floats (such as 1.1)

Compiling from the source works. The doctest run without error. However you get not the .app version but have to launch via terminal ... well but that is only a question of convenience.

2015-04-28 14:56:59 -0600 commented question Unhandled SIGILL by using floats (such as 1.1)

There is no 10.9 version, and I read somewhere that for system below 10.10 the 10.7 version should be used. This is also logical, a 10.10 version assumes features available that are not there in older systems. Moreover there is not (yet) an app-version for 10.10. I run the doctest - tons of errors - and about half a million lines in the shel, I see no possibility to attach the output here, is there anything special that could help? I also installed the same sage on a MacPro with 10.9, initially to do the doctest faster. Launching the app results in "500 server error". I can run the doctests in shell but also get errors over errors.

2015-04-25 04:04:40 -0600 received badge  Editor (source)
2015-04-25 04:03:27 -0600 asked a question Unhandled SIGILL by using floats (such as 1.1)

I made a fresh install of SAGE 6.6 and with a first test I run in the following problem:

1.1+1.0

Unhandled SIGILL: An illegal instruction occurred in Sage. This probably occurred because a compiled component of Sage has a bug in it and is not properly wrapped with sig_on(), sig_off(). Sage will now terminate.

Whereas

1.0+1.0

2.00000000000000

works.

I use a Macbook Pro 13" (2009) with OS 10.9.5 and sage-6.6-x86_64-Darwin-OSX_10.7_x86_64-app

Any Ideas what is going wrong?