Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CATboardBETA opened this issue Apr 28, 2022 · 9 comments
Open

Comments

@CATboardBETA
Copy link

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

@rocky
Copy link
Member

rocky commented May 1, 2022

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
Copy link
Member

rocky commented May 8, 2022

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
Copy link
Member

rocky commented Jul 17, 2022

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.

@TiagoCavalcante
Copy link
Collaborator

@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?

@rocky
Copy link
Member

rocky commented Nov 28, 2022

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.

@TiagoCavalcante
Copy link
Collaborator

And you need make sure to recreate tables.

I forgot to do this part, thanks

@rocky
Copy link
Member

rocky commented Nov 28, 2022

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.

@TiagoCavalcante
Copy link
Collaborator

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
Copy link
Collaborator

(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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants