Ask Your Question

Sagemath 8.0 and Sagemath 8.1 and Windows 10

asked 2017-11-26 15:38:09 +0200

AiKju gravatar image

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

tmonteil gravatar image

It seems that there is no solution to my problem but I am still hoping. I installed the Windows native version of Sagemath and every try to use plot3d (i.e. var('y') plot3d( 4xexp(-x^2-y^2), (x,-2,2), (y,-2,2))) runs into the following error:

/opt/sagemath-8.0/local/lib/python2.7/site-packages/sage/repl/rich_output/ RichReprWarning: Exception in _rich_repr_ while displaying object: Jmol failed to create file '/dot_sage/temp/Sandman/16196/dir_oUJsU7/preview.png', see '/dot_sage/temp/Sandman/16196/tmp_9jJjSY.txt' for details RichReprWarning,

Is anybody out there who can help to fix that Sagemath bug?

Thanks for your help!

edit retag flag offensive close merge delete


If jmol fails to plot it, does the one or the other viewer give the plot? For instance threejs or tachyon...


dan_fulea gravatar imagedan_fulea ( 2017-11-26 18:10:28 +0200 )edit
vdelecroix gravatar imagevdelecroix ( 2017-11-27 10:42:46 +0200 )edit

@dan_fulea: I tried threejs. Sometimes it works but if I try to plot vector fields, like the example:

F1 = (y,z,x) P1 = plot_vector_field3d(F1,(x,-2,2),(y,-2,2),(z,-2,2), colors="blue") show(P1, viewer='threejs')

it just shows an empty cube

@vdelecroix: Thanks ;-)

AiKju gravatar imageAiKju ( 2017-11-28 13:31:43 +0200 )edit

@dan_fulea: "Tachyon" would do it. But it is some kind of fuzzy... But thanks for the hint.

AiKju gravatar imageAiKju ( 2017-11-28 13:34:25 +0200 )edit

Thanks for reporting !

tmonteil gravatar imagetmonteil ( 2017-12-01 14:41:20 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-12-19 11:19:05 +0200

Iguananaut gravatar image

"If I try setting the security attributes manually I get a warning "The permissions on Restricted are incorrectly ordered, which may cause some entries to be ineffective."" First this warning is normal for directories that have emulated UNIX-style permissions. If you try to manipulate it manually without knowing what you're doing you can mess it up worse (though I'm not sure how it would have gotten messed up in the first place).

A fix that's worked for me in the past is to do something like the following. In the Sage shell run:

$ setfacl -b -k /dot_sage

This strips all ACL (access control list--how Windows manages file permissions) entries from the /dot_sage directory. Then reset it so that you own the directory, and so that it has safe permissions:

$ chown -R $(whoami):$(whoami) /dot_sage
$ chmod -R u+rwX /dot_sage
edit flag offensive delete link more


Thanks for the hint but at least for me and my device I still have the same error :-/. I will keep trying...

AiKju gravatar imageAiKju ( 2017-12-19 13:35:05 +0200 )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


Asked: 2017-11-26 15:38:09 +0200

Seen: 925 times

Last updated: Dec 19 '17