Ask Your Question
2

Sagemath 8.0 and Sagemath 8.1 and Windows 10

asked 2017-11-26 08:38:09 -0500

AiKju gravatar image

updated 2017-12-15 08:55:40 -0500

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/display_manager.py:590: 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

Comments

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

Related:

dan_fulea gravatar imagedan_fulea ( 2017-11-26 11:10:28 -0500 )edit
1
vdelecroix gravatar imagevdelecroix ( 2017-11-27 03:42:46 -0500 )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 06:31:43 -0500 )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 06:34:25 -0500 )edit

Thanks for reporting !

tmonteil gravatar imagetmonteil ( 2017-12-01 07:41:20 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-12-19 04:19:05 -0500

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

Comments

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 06:35:05 -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: 2017-11-26 08:38:09 -0500

Seen: 346 times

Last updated: Dec 19 '17