ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 21 Jul 2015 10:03:17 -0500Sage 6.7 is very slow on OSX 10.9http://ask.sagemath.org/question/28680/sage-67-is-very-slow-on-osx-109/I recently installed Sage 6.7 from source on my home computer, running OSX 10.9 (Mavericks). It is sloooooow. Just starting Sage from a terminal window takes a good two minutes; something simple like using the ? feature can take up to a minute; and serious power computation is hopeless. My computer has plenty of RAM and disk space, so I don't think that's the problem. I had the same problems with the previous version (5.something), but on other computers the performance is much better. I would be very grateful for suggestions about how to speed things up, particularly from others who have encountered this issue. Thanks!
Jeremy MartinTue, 21 Jul 2015 10:03:17 -0500http://ask.sagemath.org/question/28680/500: Internal server error. Mac, OS 10.9http://ask.sagemath.org/question/26736/500-internal-server-error-mac-os-109/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/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/storage/filesystem_storage.py", line 623, in worksheets
path = self._abspath(self._user_path(username))
File "/Volumes/DatenYM/Progr/Sage/sage-6.6/local/lib/python2.7/site-packages/sagenb-0.11.4-py2.7.egg/sagenb/storage/filesystem_storage.py", line 121, in _user_path
os.rename(path, new_path)
OSError: [Errno 66] Directory not emptyyeWed, 06 May 2015 06:52:33 -0500http://ask.sagemath.org/question/26736/Sage and disk usage on MacOS Maverickshttp://ask.sagemath.org/question/11005/sage-and-disk-usage-on-macos-mavericks/This is not really a sage question, but maybe somebody knows the answer anyway. I have installed sage.app on MacOS Mavericks. The unpacked application is roughly 6GB in size. Say after installation I have X GB free disk space. I now run sage in a terminal with
/Applications/Sage-6.0.app/Contents/Resources/sage/sage
Sage starts and does its usual little startup mambo, checking that all the paths are in order and such. After that, I have X-6 GB free disk space (as shown in Finder). When I quit sage, the disk space does not return, it seems gone. When I start sage the next day, I have X-12GB free disk space, but that seems to be it, on day three I don't lose any additional space. Even better, after a week or so not using sage, the 6GB packages come back one per day. What's the reason for this, and can I prevent it?
I suspect that it has to do with MobileBackups and TimeMachine. If there was a huge change on my disk, I would see this in TimeMachine backup sizes, but they are small, like 500MB a day or so. Could it be that the MobileBackups mechanism which is independent of time machine makes a snapshot of the entire Application when something changes? What could this change be? Does the sage.app folder change on every startup? Is TimeMachine smart enough to backup only the presumably small changed file, but MobileBackups keeps a copy of the entire sage.app Folder?ThomasThu, 06 Feb 2014 09:02:05 -0600http://ask.sagemath.org/question/11005/Can't run 6.1 on Maverickshttp://ask.sagemath.org/question/10985/cant-run-61-on-mavericks/Downloaded 6.1 (very slow) and installed it in my applications folder. Followed README just fine through #3. Opened Terminal fine but then could not find any of the other instructions. And putting all of my applications into the existing utilities folder seemed pretty risky. Also tried to use the site server but after about 10 minutes gave up on that too. xxxxMon, 03 Feb 2014 07:03:55 -0600http://ask.sagemath.org/question/10985/Did anyone else face a problem with cython after upgrading to Mavrick?http://ask.sagemath.org/question/10672/did-anyone-else-face-a-problem-with-cython-after-upgrading-to-mavrick/I updated the OS on my Macbook air from 10.8 to 10.9 and now I cannot run cython in sage notebook. Has anyone else faced this problem? I get an error
/Users/shashank/sage/local/bin/../lib/gcc/x86_64-apple-darwin12.4.0/4.7.3/include-fixed/limits.h:169:61: fatal error: limits.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
I checked that the file limits.h exists and the specified path. I am not sure whether is a problem due to the OS upgrade but I don't remember changing anything else on my system.ShashankMon, 28 Oct 2013 13:48:20 -0500http://ask.sagemath.org/question/10672/