Ask Your Question
0

Sage notebook doesn't work [solved]

asked 10 years ago

AndreWin gravatar image

updated 10 years ago

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.

Preview: (hide)

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 ( 10 years ago )
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 ( 10 years ago )

2 Answers

Sort by » oldest newest most voted
1

answered 10 years ago

FrédéricC gravatar image

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

Preview: (hide)
link
2

answered 10 years ago

slelievre gravatar image

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.

Preview: (hide)
link

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 ( 10 years ago )

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 ( 10 years ago )

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: 10 years ago

Seen: 1,611 times

Last updated: Dec 07 '14