Ask Your Question
0

Sage notebook doesn't work [solved]

asked 2014-12-07 04:17:51 -0500

AndreWin gravatar image

updated 2014-12-07 08:38:32 -0500

Hi! I installed sage 6.4.1 and launched sage notebook.
I press shift-enter and get new line.
I press enter and get new line too....
Also I found that sage notebook doesn't save my input.
Then I saw in terminal and found there are many problems.
It seems for me Flask doen't work.
I didn't have any problems during installing sage.
I attached log to my message. (UPD: Link to log file )
Please help me. Andrei.

edit retag flag offensive close merge delete

Comments

1

@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).

vdelecroix gravatar imagevdelecroix ( 2014-12-07 05:19:04 -0500 )edit
1

You are quite right. I created folder "Apps" before... But today I forgot about it :'( Now all works fine! ^_^ Thank a lot!)

AndreWin gravatar imageAndreWin ( 2014-12-07 08:38:06 -0500 )edit

2 answers

Sort by » oldest newest most voted
1

answered 2014-12-07 04:49:47 -0500

FrédéricC gravatar image

Maybe try without cyrillic characters in your path (no Программы) ?

edit flag offensive delete link more
2

answered 2014-12-07 08:44:05 -0500

As @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.

edit flag offensive delete link more

Comments

Thanks 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/is... - help is welcome! It's probably just changing a couple lines to allow this in the filesystem.

kcrisman gravatar imagekcrisman ( 2014-12-08 08:19:46 -0500 )edit

Indeed, this error is because os.path.joindoesn't work with Unicode, apparently - http://stackoverflow.com/questions/34... However the solution requires Python 3.

kcrisman gravatar imagekcrisman ( 2014-12-08 08:28:18 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-12-07 04:17:51 -0500

Seen: 584 times

Last updated: Dec 07 '14