Ask Your Question

Revision history [back]

I think it does not like the fact that your computer is called MacBook-Pro-(6) including where some characters are parenthesis. The name of the computer gets used the path of the directory containing the temporary html file it is trying to use.

If you can change the name of the computer by removing the parenthesis, it should fix the issue.

Also, I don't know, maybe this is a bug that could be fixed in the SageMath library.

I think it does not like the fact that your computer is called MacBook-Pro-(6) including where some characters are parenthesis. The name of the computer gets used the path of the directory containing the temporary html file it is trying to use.

If you can change the name of the computer by removing the parenthesis, it should fix the issue.

Also, I don't know, maybe this is a bug that could be fixed in the SageMath library.

I think it does not like the fact that your computer is called MacBook-Pro-(6) where some characters are parenthesis. The name of the computer gets used to construct the path of the directory containing the temporary html file it is trying to use.open.

If you can change the name of the computer by removing the parenthesis, it should fix the issue.

Also, I don't know, maybe this is a bug that could be fixed in the SageMath library.

I think it does not like the fact that your computer is called MacBook-Pro-(6) where some characters are parenthesis. The In SageMath, the name of the computer gets is used to construct the path of the directory containing the a temporary html file it is trying to open.file:

sage: tmp_filename(ext='.html')
'/home/USERNAME/.sage/temp/NAME-OF-THE-COMPUTER/28099/tmp_9_rl571y.html'

The error occurs when it tries to open that filename which contains parenthesis. If you can change the name of the computer by removing the parenthesis, it should fix the issue.

issue. Also, I don't know, maybe this is a bug that could be fixed in the SageMath library.

Trying to find a workaround does not seem easy as I am not able to save the graphics to the local folder which would not contain parenthesis in your case:

sage: y=var('y'); G = plot3d(x^2 + y^2, (x,-2,2), (y,-2,2))
sage: G.save('a.html')
Traceback (most recent call last):
...
ValueError: filetype .html not supported by save()

I think it does not like the fact that your computer is called MacBook-Pro-(6) where some characters are parenthesis. In SageMath, the name of the computer (hostname) is used to construct the path of a temporary file:

sage: tmp_filename(ext='.html')
'/home/USERNAME/.sage/temp/NAME-OF-THE-COMPUTER/28099/tmp_9_rl571y.html'
'/home/USERNAME/.sage/temp/HOSTNAME/28099/tmp_9_rl571y.html'

The error occurs when it tries to open that filename which contains parenthesis. If you can change the name of the computer HOSTNAME by removing the parenthesis, it should fix the issue. Also, I don't know, maybe this is a bug that could be fixed in the SageMath library.

Trying to find a workaround does not seem easy as I am not able to save the graphics to the local folder which would not contain parenthesis in your case:

sage: y=var('y'); G = plot3d(x^2 + y^2, (x,-2,2), (y,-2,2))
sage: G.save('a.html')
Traceback (most recent call last):
...
ValueError: filetype .html not supported by save()