mathics-django icon indicating copy to clipboard operation
mathics-django copied to clipboard

MathicsDjango (through Docker, MacOS) doesn't render 3d graphics

Open CATboardBETA opened this issue 3 years ago • 9 comments

Screen Shot 2022-04-28 at 5 35 02 PM

CATboardBETA avatar Apr 28 '22 21:04 CATboardBETA

I have noticed this also without Docker on Ubuntu and Windows.

There is some interaction between mathics-backend-threejs, mathics-core and mathics-django went off somewhere.

I've noticed that if you display axes these sometimes appear and you can scroll them around.

@TiagoCavalcante maybe you can look at when you get a chance?

rocky avatar May 01 '22 01:05 rocky

Also should mention that in browsers when I set a breakpoint on call to graphics3D they don't occur. And I don't see console error messages.

So somehow whatever ajax mechanism that ensured that the HTML graphics3d tags get called is not longer occurring.

rocky avatar May 08 '22 17:05 rocky

There is an updated docker image now that fixes this. See digest 430d13daa04a

The pygraphics modules don't work fo on the 5.0.0 mathics-core API yet. But that is probably small.

rocky avatar Jul 17 '22 13:07 rocky

@rocky Mathics Django isn't working with latest mathics-core and mathics-scanner:

  File "/usr/local/lib/python3.10/dist-packages/Mathics3-5.0.3.dev0-py3.10.egg/mathics/core/convert/op.py", line 19, in <module>
    assert osp.exists(
AssertionError: ASCII operator to Unicode tables are missing from /usr/local/lib/python3.10/dist-packages/Mathics3-5.0.3.dev0-py3.10.egg/mathics/data/op-tables.json
error: failed to create database

Are you having the same issue?

TiagoCavalcante avatar Nov 28 '22 00:11 TiagoCavalcante

I am not having an issue, but you need to have current github master versions not the last packaged versions. And you need make sure to recreate tables.

rocky avatar Nov 28 '22 00:11 rocky

And you need make sure to recreate tables.

I forgot to do this part, thanks

TiagoCavalcante avatar Nov 28 '22 00:11 TiagoCavalcante

The path in:

/usr/local/lib/python3.10/dist-packages/Mathics3-5.0.3.dev0-py3.10.egg/mathics/data/op-tables.json

suggests that you are using an installed version. That could be a problem, if the code isn't the same as what is in git master.

rocky avatar Nov 28 '22 00:11 rocky

suggests that you are using an installed version. That could be a problem, if the code isn't the same as what is in git master.

I create a new container and installed everything with git clone + make install

TiagoCavalcante avatar Nov 28 '22 00:11 TiagoCavalcante

(posting here in case I forget)

No errors are shown in the console, the primitive function is been called normally, but the axes aren't drawn, so I believe this is a problem in the translation layer. I'll look at it again tomorrow.

TiagoCavalcante avatar Nov 28 '22 02:11 TiagoCavalcante