-
Notifications
You must be signed in to change notification settings - Fork 191
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
How to debug traits/session/zmqstream/socket communication ? (why string gets lowercased ?) #413
Comments
I agree, maybe https://github.com/itepifanio/ipywatch helps (or would have helped)? |
EDIT:
But in the log console, I get :
just before
For now I've added pydevd debug plumbing in |
I think the issue probably sneaks in here: pythreejs/js/src/_base/Three.js Lines 570 to 573 in 584fe39
which calls this: pythreejs/js/src/_base/Three.js Lines 489 to 501 in 584fe39
Which calls the As the three.js docs say "These must be in upper case.", I think we need to ensure we retain the current logic, but that the string element is not passed through here. |
Proposed fix here (edited on GH without tests, we probably also want to add regression tests). #415 |
Great ! |
Hi,
First of all, thank you all for your great work !!
I'm upgrading from an old Python 3.8 venv but unfortunately I get a traitlets related message when I try to open a pythreejs based 3D model viewer in a notebooks.
For now, I'm completely stuck but as I understand, an "XYZ" string value (expected for a pythreejs Euler traits ) gets lowercased somewhere during the Jupyter traits/session/zmqstream/socket communication. It could be during any of the cast, from_json, to_json, send_multipart or recv_multipart steps but I have not managed to find which one :( and I get the same TraitError for any other version of python/occt/ifcopenshell...
Jupyter back/front communication is quite tricky to debug, so if you have any information about how to do that, somewhere else to ask or any idea why this gets lowercased...
Here is the venv :
Here is an example to get the error:
Here is the output
FYI I've already tried to open an issue here.
Thank you for your help.
The text was updated successfully, but these errors were encountered: