SageMath 8.0 using Windows installer

asked 2017-12-13 06:39:05 +0200

Seonhwa Kim gravatar image

updated 2023-01-09 23:59:44 +0200

tmonteil gravatar image

I have installed SageMath 8.0 on Windows 10 as the following instruction.

Everything ᅟ seemed to work well first, but I got an error message as follows.

sage: 1+1
sage: plot(sin(x))

/opt/sagemath-8.0/local/lib/python2.7/site-packages/sage/repl/rich_output/ RichReprWarning: Exception in _rich_repr_ while displaying object: 'ascii' codec can't decode byte 0xea in position 6: ordinal not in range(128)
  RichReprWarning,  Graphics object consisting of 1 graphics primitive

Does anybody know a solution for this problem?

edit retag flag offensive close merge delete


vdelecroix gravatar imagevdelecroix ( 2017-12-13 07:34:54 +0200 )edit

Welcome to Ask Sage and thanks for reporting this!

slelievre gravatar imageslelievre ( 2017-12-13 12:57:52 +0200 )edit

Is it possible the user's username contains non-ASCII characters? If so, I don't think this a problem specific to Windows.

Iguananaut gravatar imageIguananaut ( 2017-12-14 10:44:39 +0200 )edit

Or perhaps, more precisely, on your machine, in the Sage prompt what does from sage.env import SAGE_TMP; SAGE_TMP output?

Iguananaut gravatar imageIguananaut ( 2017-12-14 10:57:15 +0200 )edit

To Iguananaut, thanks for comments. You are right. The username of windows account contains non-ascii character, which is very common situation in Windows Korean distribution. I wil try to use new account of ascii acaracter.

And, here is the output from your command;

sage: from sage.env import SAGE_TMP; SAGE_TMP
ImportError                               Traceback (most recent call last)
<ipython-input-1-d90b7831f93a> in <module>()
----> 1 from sage.env import SAGE_TMP; SAGE_TMP

ImportError: cannot import name SAGE_TMP
Seonhwa Kim gravatar imageSeonhwa Kim ( 2017-12-14 12:35:53 +0200 )edit