ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 08 Dec 2014 08:28:18 -0600Sage notebook doesn't work [solved]http://ask.sagemath.org/question/25157/sage-notebook-doesnt-work-solved/ Hi!
I installed sage 6.4.1 and launched sage notebook.<br>
I press shift-enter and get new line. <br>
I press enter and get new line too.... <br>
Also I found that sage notebook doesn't save my input. <br>
Then I saw in terminal and found there are many problems. <br>
It seems for me Flask doen't work. <br>
I didn't have any problems during installing sage. <br>
I attached log to my message. (UPD: [Link to log file](https://cloud.mail.ru/public/be30e6360bf8/sage_log.txt) )<br>
Please help me.
Andrei.Sun, 07 Dec 2014 04:17:51 -0600http://ask.sagemath.org/question/25157/sage-notebook-doesnt-work-solved/Comment by AndreWin for <p>Hi!
I installed sage 6.4.1 and launched sage notebook.<br/>
I press shift-enter and get new line. <br/>
I press enter and get new line too.... <br/>
Also I found that sage notebook doesn't save my input. <br/>
Then I saw in terminal and found there are many problems. <br/>
It seems for me Flask doen't work. <br/>
I didn't have any problems during installing sage. <br/>
I attached log to my message. (UPD: <a href="https://cloud.mail.ru/public/be30e6360bf8/sage_log.txt">Link to log file</a> )<br/>
Please help me.
Andrei.</p>
http://ask.sagemath.org/question/25157/sage-notebook-doesnt-work-solved/?comment=25161#post-id-25161You are quite right. I created folder "Apps" before... But today I forgot about it :'(
Now all works fine! ^_^ Thank a lot!)Sun, 07 Dec 2014 08:38:06 -0600http://ask.sagemath.org/question/25157/sage-notebook-doesnt-work-solved/?comment=25161#post-id-25161Comment by vdelecroix for <p>Hi!
I installed sage 6.4.1 and launched sage notebook.<br/>
I press shift-enter and get new line. <br/>
I press enter and get new line too.... <br/>
Also I found that sage notebook doesn't save my input. <br/>
Then I saw in terminal and found there are many problems. <br/>
It seems for me Flask doen't work. <br/>
I didn't have any problems during installing sage. <br/>
I attached log to my message. (UPD: <a href="https://cloud.mail.ru/public/be30e6360bf8/sage_log.txt">Link to log file</a> )<br/>
Please help me.
Andrei.</p>
http://ask.sagemath.org/question/25157/sage-notebook-doesnt-work-solved/?comment=25159#post-id-25159@FrédéricC is right, there might be trouble with paths containing non ascii characters (at least during compilation, but certainly at execution as well).Sun, 07 Dec 2014 05:19:04 -0600http://ask.sagemath.org/question/25157/sage-notebook-doesnt-work-solved/?comment=25159#post-id-25159Answer by FrédéricC for <p>Hi!
I installed sage 6.4.1 and launched sage notebook.<br/>
I press shift-enter and get new line. <br/>
I press enter and get new line too.... <br/>
Also I found that sage notebook doesn't save my input. <br/>
Then I saw in terminal and found there are many problems. <br/>
It seems for me Flask doen't work. <br/>
I didn't have any problems during installing sage. <br/>
I attached log to my message. (UPD: <a href="https://cloud.mail.ru/public/be30e6360bf8/sage_log.txt">Link to log file</a> )<br/>
Please help me.
Andrei.</p>
http://ask.sagemath.org/question/25157/sage-notebook-doesnt-work-solved/?answer=25158#post-id-25158Maybe try without cyrillic characters in your path (no Программы) ?Sun, 07 Dec 2014 04:49:47 -0600http://ask.sagemath.org/question/25157/sage-notebook-doesnt-work-solved/?answer=25158#post-id-25158Answer by slelievre for <p>Hi!
I installed sage 6.4.1 and launched sage notebook.<br/>
I press shift-enter and get new line. <br/>
I press enter and get new line too.... <br/>
Also I found that sage notebook doesn't save my input. <br/>
Then I saw in terminal and found there are many problems. <br/>
It seems for me Flask doen't work. <br/>
I didn't have any problems during installing sage. <br/>
I attached log to my message. (UPD: <a href="https://cloud.mail.ru/public/be30e6360bf8/sage_log.txt">Link to log file</a> )<br/>
Please help me.
Andrei.</p>
http://ask.sagemath.org/question/25157/sage-notebook-doesnt-work-solved/?answer=25162#post-id-25162As @FrédéricC and @vdelecroix suggest, the problem seems to come from the path to your Sage installation containing non-ascii characters.
Indeed, looking at the log file you linked to:
File "/home/andrei/Программы/sage-6.4.1-x86_64-Linux/local/lib/python/posixpath.py", line 80, in join
path += '/' + b
exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 13: ordinal not in range(128)
This should probably become a Sage ticket or a Sage Notebook ticket.
Related resource: [Python 2.x Unicode documentation](https://docs.python.org/2/howto/unicode.html).Sun, 07 Dec 2014 08:44:05 -0600http://ask.sagemath.org/question/25157/sage-notebook-doesnt-work-solved/?answer=25162#post-id-25162Comment by kcrisman for <p>As <a href="/users/1557/fredericc/">@FrédéricC</a> and <a href="/users/87/vdelecroix/">@vdelecroix</a> suggest, the problem seems to come from the path to your Sage installation containing non-ascii characters.</p>
<p>Indeed, looking at the log file you linked to:</p>
<pre><code>File "/home/andrei/Программы/sage-6.4.1-x86_64-Linux/local/lib/python/posixpath.py", line 80, in join
path += '/' + b
exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 13: ordinal not in range(128)
</code></pre>
<p>This should probably become a Sage ticket or a Sage Notebook ticket.</p>
<p>Related resource: <a href="https://docs.python.org/2/howto/unicode.html">Python 2.x Unicode documentation</a>.</p>
http://ask.sagemath.org/question/25157/sage-notebook-doesnt-work-solved/?comment=25167#post-id-25167Thanks for pointing this out (and glad the OP's problem was worked around). It turns out that there are several unicode issues in sagenb, which for now I have all reported at https://github.com/sagemath/sagenb/issues/279 - help is welcome! It's probably just changing a couple lines to allow this in the filesystem.Mon, 08 Dec 2014 08:19:46 -0600http://ask.sagemath.org/question/25157/sage-notebook-doesnt-work-solved/?comment=25167#post-id-25167Comment by kcrisman for <p>As <a href="/users/1557/fredericc/">@FrédéricC</a> and <a href="/users/87/vdelecroix/">@vdelecroix</a> suggest, the problem seems to come from the path to your Sage installation containing non-ascii characters.</p>
<p>Indeed, looking at the log file you linked to:</p>
<pre><code>File "/home/andrei/Программы/sage-6.4.1-x86_64-Linux/local/lib/python/posixpath.py", line 80, in join
path += '/' + b
exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 13: ordinal not in range(128)
</code></pre>
<p>This should probably become a Sage ticket or a Sage Notebook ticket.</p>
<p>Related resource: <a href="https://docs.python.org/2/howto/unicode.html">Python 2.x Unicode documentation</a>.</p>
http://ask.sagemath.org/question/25157/sage-notebook-doesnt-work-solved/?comment=25169#post-id-25169Indeed, this error is because `os.path.join` doesn't work with Unicode, apparently - http://stackoverflow.com/questions/3409381/how-to-handle-undecodable-filenames-in-python However the solution requires Python 3.Mon, 08 Dec 2014 08:28:18 -0600http://ask.sagemath.org/question/25157/sage-notebook-doesnt-work-solved/?comment=25169#post-id-25169