[x3d-public] jupyter notebook
Andreas Plesch
andreasplesch at gmail.com
Tue May 21 07:21:22 PDT 2019
Hi John,
I was curious and gave Pyjnius+X3DJSAIL.3.3 from your repo a try with
your sphere.ipynb, using online jupyter with mybinder.org:
https://github.com/andreasplesch/conda
Use this link
https://mybinder.org/v2/gh/andreasplesch/conda/master?filepath=sphere.ipynb
and wait until the server starts with the mybinder built docker image
(takes a bit).
Executing then the first cell with all the autoclass generation does
something until there is an error:
JavaException Traceback (most recent call last)
<ipython-input-1-149e86182885> in <module>
87 HAnimHumanoid =
autoclass('org.web3d.x3d.jsail.HAnim.HAnimHumanoidObject')
88 HAnimJoint = autoclass('org.web3d.x3d.jsail.HAnim.HAnimJointObject')
---> 89 HAnimMotion = autoclass('org.web3d.x3d.jsail.HAnim.HAnimMotionObject')
90 HAnimSegment = autoclass('org.web3d.x3d.jsail.HAnim.HAnimSegmentObject')
91 HAnimSite = autoclass('org.web3d.x3d.jsail.HAnim.HAnimSiteObject')
/srv/conda/envs/notebook/lib/python3.7/site-packages/jnius/reflect.py
in autoclass(clsname)
157
158 # c = Class.forName(clsname)
--> 159 c = find_javaclass(clsname)
160 if c is None:
161 raise Exception('Java class {0} not found'.format(c))
jnius/jnius_export_func.pxi in jnius.find_javaclass()
JavaException: Class not found b'org/web3d/x3d/jsail/HAnim/HAnimMotionObject'
The good news is that the online jupyter notebook seems to work in
principle, eg. Pyjnius and java is installed, and the X3DJSAIL.3.3.jar
seems to be found as well.
Have you seen problems with the HAnimMotion before ?
Commenting out HAnimMotion, uncovers similar errors for PointProperties and X3D.
JavaException Traceback (most recent call last)
<ipython-input-1-f7be65079716> in <module>
255 Scene = autoclass('org.web3d.x3d.jsail.Core.SceneObject')
256 unit = autoclass('org.web3d.x3d.jsail.Core.unitObject')
--> 257 X3D = autoclass('org.web3d.x3d.jsail.Core.X3DObject')
258 SFBool = autoclass('org.web3d.x3d.jsail.fields.SFBoolObject')
259 MFBool = autoclass('org.web3d.x3d.jsail.fields.MFBoolObject')
/srv/conda/envs/notebook/lib/python3.7/site-packages/jnius/reflect.py
in autoclass(clsname)
157
158 # c = Class.forName(clsname)
--> 159 c = find_javaclass(clsname)
160 if c is None:
161 raise Exception('Java class {0} not found'.format(c))
jnius/jnius_export_func.pxi in jnius.find_javaclass()
JavaException: Class not found b'org/web3d/x3d/jsail/Core/X3DObject'
Is there another Pyjnius or X3DJSAIL.jar to try ?
Pyjnius is installed with conda and a pyjnius line in environment.yml.
-Andreas
--
Andreas Plesch
Waltham, MA 02453
More information about the x3d-public
mailing list