[x3d-public] X3D python language binding, pyjnius validation
John Carlson
yottzumm at gmail.com
Wed Apr 3 10:28:51 PDT 2019
For example, in python files you send me, I think the following line:
jnius_config.set_classpath('.', '../../../jars/X3DJSAIL.3.3.full.jar')
Is not working.
I believe that CommentsBlock may be taken out of the X3Dautoclass.py file, since I don’t use it. But may later.
John
Sent from Mail for Windows 10
From: John Carlson
Sent: Wednesday, April 3, 2019 12:22 PM
To: Brutzman, Donald (Don) (CIV); X3D Graphics public mailing list
Subject: RE: X3D python language binding, pyjnius validation
My guess would be the classpath set by jnius_config…. Method is not working.
John
Sent from Mail for Windows 10
From: Brutzman, Donald (Don) (CIV)
Sent: Wednesday, April 3, 2019 12:17 PM
To: John Carlson; X3D Graphics public mailing list
Subject: X3D python language binding, pyjnius validation
Hi John. Status report.
a. am able to build on primary Windows 10 box,
b. still grappling with Visual Studio bug related to on Windows XP box,
c. have added build targets for X3D examples archives: clean.python and processScenes.python which work on first box,
d. .py generation works (see attached) but running self-validation of the two .py files still has problems.
Am getting a lot of these errors. Do you have a bidirectional python-to-java mapping for x3djsail CommentsBlock when comments are encountered?
=====================
create python:
node xml2all.js C:\x3d-code\www.web3d.org\x3d\content\examples\X3dForAdvancedModeling/Visualization//TextureBackgroundCube.x3d
TextureBackgroundCube.py produced from TextureBackgroundCube.x3d
test python:
Loading and running TextureBackgroundCube.py program, if successful then saving as round-trip .x3d version:
Traceback (most recent call last):
File "C:\x3d-code\www.web3d.org\x3d\content\examples\X3dForAdvancedModeling/Visualization//TextureBackgroundCube.py", line 5, in <module>
from X3Dautoclass import *
File "C:\x3d-code\www.web3d.org\x3d\stylesheets\java\src\python\pyjnius\X3Dautoclass.py", line 2, in <module>
CommentsBlock = autoclass('org.web3d.x3d.jsail.Core.CommentsBlock')
File "C:\Program Files\Python37\lib\site-packages\jnius\reflect.py", line 159, in autoclass
c = find_javaclass(clsname)
File "jnius\jnius_export_func.pxi", line 26, in jnius.find_javaclass
jnius.JavaException: Class not found b'org/web3d/x3d/jsail/Core/CommentsBlock'
Result: 1
=====================
In addition to example-project build.xml files, am also working with the pyjnius subdirectory build.xml still, but standing clear of your .py and .js files.
TIA for continuing insights and improvements.
all the best, Don
--
Don Brutzman Naval Postgraduate School, Code USW/Br brutzman at nps.edu
Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20190403/7ccb4cad/attachment.html>
More information about the x3d-public
mailing list