ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 31 Jan 2016 03:14:06 +0100Sage Notebook is not workinghttps://ask.sagemath.org/question/32330/sage-notebook-is-not-working/ I just installed Sage for the first time. I downloaded the app version 7.0 for apple os x version 10.11.4.
When I open the application for the first time, it launches the notebook in chrome Version 48.0.2564.82 beta (64-bit).
I just entered 2+2 and this was the error that I got.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_2.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("Misy"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/private/var/folders/kq/pdkzk0sd28vf__cjjm_bqlxh0000gn/T/tmp8hlaTE/___code___.py", line 2, in <module>
_sage_const_2 = Integer(2)
NameError: name 'Integer' is not defined
Mon, 25 Jan 2016 02:39:23 +0100https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/Comment by kcrisman for <p>I just installed Sage for the first time. I downloaded the app version 7.0 for apple os x version 10.11.4. </p>
<p>When I open the application for the first time, it launches the notebook in chrome Version 48.0.2564.82 beta (64-bit).</p>
<p>I just entered 2+2 and this was the error that I got.</p>
<pre><code>Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_2.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("Misy"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/private/var/folders/kq/pdkzk0sd28vf__cjjm_bqlxh0000gn/T/tmp8hlaTE/___code___.py", line 2, in <module>
_sage_const_2 = Integer(2)
NameError: name 'Integer' is not defined
</code></pre>
https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?comment=32339#post-id-32339This is bad; I've asked about what could have caused this at https://groups.google.com/forum/#!topic/sage-release/81bxW-7_qX0 There shouldn't have been any change that caused `sage.all` not to be imported, which is what your error indicates happened (that it's running pure Python). What does the little drop-down menu of languages in the notebook say at start - sage, python, or something else?Tue, 26 Jan 2016 18:25:06 +0100https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?comment=32339#post-id-32339Comment by nick for <p>I just installed Sage for the first time. I downloaded the app version 7.0 for apple os x version 10.11.4. </p>
<p>When I open the application for the first time, it launches the notebook in chrome Version 48.0.2564.82 beta (64-bit).</p>
<p>I just entered 2+2 and this was the error that I got.</p>
<pre><code>Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_2.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("Misy"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/private/var/folders/kq/pdkzk0sd28vf__cjjm_bqlxh0000gn/T/tmp8hlaTE/___code___.py", line 2, in <module>
_sage_const_2 = Integer(2)
NameError: name 'Integer' is not defined
</code></pre>
https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?comment=32341#post-id-32341Yes, sage from sage-7.0-osx-10.11.2-x86_64.app.dmg as well as sage from the sage-7.0-osx-10.11.2-x86_64.dmg do not import "sage.all". They return an import error on cliquer.so even though the library exists. I have built sage from the sage-7.0.tar.gz sources, and this sage 7.0 does work under Mac OS X 10.11.2-10.11.3, but you have to be patient because the build takes several hours. Also, another workaround would be to load the sage app from sage-6.10-osx-10.11.2-x86_64.app.dmg. This sage app works properly under 10.11.2-10.11.4.Wed, 27 Jan 2016 00:09:24 +0100https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?comment=32341#post-id-32341Comment by kcrisman for <p>I just installed Sage for the first time. I downloaded the app version 7.0 for apple os x version 10.11.4. </p>
<p>When I open the application for the first time, it launches the notebook in chrome Version 48.0.2564.82 beta (64-bit).</p>
<p>I just entered 2+2 and this was the error that I got.</p>
<pre><code>Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_2.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("Misy"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/private/var/folders/kq/pdkzk0sd28vf__cjjm_bqlxh0000gn/T/tmp8hlaTE/___code___.py", line 2, in <module>
_sage_const_2 = Integer(2)
NameError: name 'Integer' is not defined
</code></pre>
https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?comment=32342#post-id-32342A way for all here to test this is to try running Sage in the terminal and see what happens. It would be good to find out if this is a notebook problem or instead the problem of using a Sage built on a newer machine on an older processor.Wed, 27 Jan 2016 01:43:56 +0100https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?comment=32342#post-id-32342Comment by nick for <p>I just installed Sage for the first time. I downloaded the app version 7.0 for apple os x version 10.11.4. </p>
<p>When I open the application for the first time, it launches the notebook in chrome Version 48.0.2564.82 beta (64-bit).</p>
<p>I just entered 2+2 and this was the error that I got.</p>
<pre><code>Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_2.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("Misy"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/private/var/folders/kq/pdkzk0sd28vf__cjjm_bqlxh0000gn/T/tmp8hlaTE/___code___.py", line 2, in <module>
_sage_const_2 = Integer(2)
NameError: name 'Integer' is not defined
</code></pre>
https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?comment=32343#post-id-32343The sage I ran from sage-7.0-ox-10.11.2-x86_64.dmg I ran from the terminal. It still failed. But if I build sage from the sources, and then run it from the terminal, it works including the notebook(). I'm running on Haswell core i7 processors, nearly the most recent ones available (unless you have a Skylake processor).Wed, 27 Jan 2016 02:02:39 +0100https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?comment=32343#post-id-32343Comment by nick for <p>I just installed Sage for the first time. I downloaded the app version 7.0 for apple os x version 10.11.4. </p>
<p>When I open the application for the first time, it launches the notebook in chrome Version 48.0.2564.82 beta (64-bit).</p>
<p>I just entered 2+2 and this was the error that I got.</p>
<pre><code>Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_2.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("Misy"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/private/var/folders/kq/pdkzk0sd28vf__cjjm_bqlxh0000gn/T/tmp8hlaTE/___code___.py", line 2, in <module>
_sage_const_2 = Integer(2)
NameError: name 'Integer' is not defined
</code></pre>
https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?comment=32345#post-id-32345There may be other problems with sage 7.0, as I'm having problems running some old Monte Carlo codes that work under sage 6.10 (just checked them again), but that never finish under sage 7.0. They appear to "hang" with no errors returned.
Not only that, but simple arithmetic and conditionals that execute upon first attempt will "hang" when attempting to re-execute them, even after interrupting and restarting the worksheet.Wed, 27 Jan 2016 16:55:37 +0100https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?comment=32345#post-id-32345Comment by kcrisman for <p>I just installed Sage for the first time. I downloaded the app version 7.0 for apple os x version 10.11.4. </p>
<p>When I open the application for the first time, it launches the notebook in chrome Version 48.0.2564.82 beta (64-bit).</p>
<p>I just entered 2+2 and this was the error that I got.</p>
<pre><code>Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_2.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("Misy"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/private/var/folders/kq/pdkzk0sd28vf__cjjm_bqlxh0000gn/T/tmp8hlaTE/___code___.py", line 2, in <module>
_sage_const_2 = Integer(2)
NameError: name 'Integer' is not defined
</code></pre>
https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?comment=32359#post-id-32359This discussion is probably easier to do on sage-devel or sage-release - are you subscribed to one of those? Especially with the really simple stuff hanging, that deserves wider scrutiny and this comment thread isn't the ideal platform for debugging it.Thu, 28 Jan 2016 16:19:06 +0100https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?comment=32359#post-id-32359Comment by esdmd100 for <p>I just installed Sage for the first time. I downloaded the app version 7.0 for apple os x version 10.11.4. </p>
<p>When I open the application for the first time, it launches the notebook in chrome Version 48.0.2564.82 beta (64-bit).</p>
<p>I just entered 2+2 and this was the error that I got.</p>
<pre><code>Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_2.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("Misy"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/private/var/folders/kq/pdkzk0sd28vf__cjjm_bqlxh0000gn/T/tmp8hlaTE/___code___.py", line 2, in <module>
_sage_const_2 = Integer(2)
NameError: name 'Integer' is not defined
</code></pre>
https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?comment=32369#post-id-32369Sorry, I didn't realize there were so many comments already. I was expecting an email notification.
The little drop down language menu says sage.
I tried running a terminal session from my apple bar sage icon but it crashed and I sent a crash report.Fri, 29 Jan 2016 02:57:57 +0100https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?comment=32369#post-id-32369Comment by esdmd100 for <p>I just installed Sage for the first time. I downloaded the app version 7.0 for apple os x version 10.11.4. </p>
<p>When I open the application for the first time, it launches the notebook in chrome Version 48.0.2564.82 beta (64-bit).</p>
<p>I just entered 2+2 and this was the error that I got.</p>
<pre><code>Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_2.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("Misy"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/private/var/folders/kq/pdkzk0sd28vf__cjjm_bqlxh0000gn/T/tmp8hlaTE/___code___.py", line 2, in <module>
_sage_const_2 = Integer(2)
NameError: name 'Integer' is not defined
</code></pre>
https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?comment=32370#post-id-32370IPython post-mortem report
{'commit_hash': u'1961f94',
'commit_source': 'installation',
'default_encoding': 'UTF-8',
'ipython_path': '/Applications/SageMath-7.0.app/Contents/Resources/sage/local/lib/python2.7/site-packages/IPython',
'ipython_version': '4.0.0',
'os_name': 'posix',
'platform': 'Darwin-15.4.0-x86_64-i386-64bit',
'sys_executable': '/Applications/SageMath-7.0.app/Contents/Resources/sage/local/bin/python',
'sys_platform': 'darwin',
'sys_version': '2.7.10 \n[GCC 4.9.3]'}
ImportError: dlopen(/Applications/SageMath-7.0.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/graphs/cliquer.so, 2): Library not loaded: libcliquer.so
Referenced from: /Applications/SageMath-7.0.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/graphs/cliquer.soFri, 29 Jan 2016 03:04:50 +0100https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?comment=32370#post-id-32370Comment by kcrisman for <p>I just installed Sage for the first time. I downloaded the app version 7.0 for apple os x version 10.11.4. </p>
<p>When I open the application for the first time, it launches the notebook in chrome Version 48.0.2564.82 beta (64-bit).</p>
<p>I just entered 2+2 and this was the error that I got.</p>
<pre><code>Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_2.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("Misy"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/private/var/folders/kq/pdkzk0sd28vf__cjjm_bqlxh0000gn/T/tmp8hlaTE/___code___.py", line 2, in <module>
_sage_const_2 = Integer(2)
NameError: name 'Integer' is not defined
</code></pre>
https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?comment=32391#post-id-32391Okay, this confirms that you have a binary that won't work on your system. For now, you will have to either compile from scratch or use a binary of an older Sage version.Sun, 31 Jan 2016 03:14:06 +0100https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?comment=32391#post-id-32391Answer by mnr for <p>I just installed Sage for the first time. I downloaded the app version 7.0 for apple os x version 10.11.4. </p>
<p>When I open the application for the first time, it launches the notebook in chrome Version 48.0.2564.82 beta (64-bit).</p>
<p>I just entered 2+2 and this was the error that I got.</p>
<pre><code>Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_2.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("Misy"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/private/var/folders/kq/pdkzk0sd28vf__cjjm_bqlxh0000gn/T/tmp8hlaTE/___code___.py", line 2, in <module>
_sage_const_2 = Integer(2)
NameError: name 'Integer' is not defined
</code></pre>
https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?answer=32336#post-id-32336I get the same error (I tried 1 + 1). It seems that everything is undefined, also objects like Matrix. If you type somewhere Integer = int. Then sage will get 1+1 and output 2, but then if you try to make an object like a Matrix, it will still say that Matrix is not defined. Tue, 26 Jan 2016 13:44:22 +0100https://ask.sagemath.org/question/32330/sage-notebook-is-not-working/?answer=32336#post-id-32336