[x3d-public] compiling abox.future.py Re: Please instruct me what I should beto catch up withyouRe:X3D/XSeen Python API (PyX3D or X3DPy)

John Carlson yottzumm at gmail.com
Tue May 21 20:58:52 PDT 2019

We have accomplished

“import x3dpsail”

in the pyjnius folder, but perhaps not in the examples/* folders.

but we haven’t packaged it.   The classpath is critical to this. I believe this has been solved for mybinder, but not for pip or conda.

Andreas is close to packaging for conda with his mybinder.

Scyjava is one way of creating a conda package and configuring the java classpath.    Seems like overkill, as does a maven repo.  We should document how to put a jar into a local maven repo.

I’ve been sleeping, sorry!

Andreas has been providing very useful information re mybinder.

I have a x3dpsail GitHub repository.  Give me your email/username if you want to be added to it.  It is out of date.

I don’t think we should put everything from our pyjnius folder into x3dpsail.


Sent from Mail for Windows 10

From: Brutzman, Donald (Don) (CIV)
Sent: Tuesday, May 21, 2019 10:29 PM
To: Masaki Aono; John Carlson
Cc: Vincent Marchetti; X3D Graphics public mailing list
Subject: Re: compiling abox.future.py Re: Please instruct me what I should beto catch up withyouRe:X3D/XSeen Python API (PyX3D or X3DPy)

Sorry to miss much of this, am replying when able.

Summary of status:
a. We are quite close to a usable X3D Python language capability.
b. There are .py programs published online for each scene in X3D Examples archive.
c. John has at least two translators .x3d -> .py source.
d. X3DPSAIL is our name for the pyjnius python implementation that applies X3DJSAIL classes.
e. The first translator uses field-object casting (e.g. SFFloat(1.0)) and works.
f. The second translator is terser and more desirable but provokes pyjnius return-type errors, such as those below.
g. The second translator output is published online and almost exactly matches the .java which uses X3DJSAIL.  So we know that the underlying X3DJSAIL java calls can work if properly invoked by pyjnius.
h. We have fixed the ability of Python to use double-precision values for X3D SFloat fields.
i. We are working on how to move the various import statements out of source programs and into pyjnius mappings.
j. We steadily continue to test and improve. All questions and suggestions are welcome.

We desperately need an X3DPSAIL.html page with this information.  Too busy debugging, hopefully will write it soon.  Thanks for your attention and insights!

v/r Don

On 5/21/2019 5:12 PM, Masaki Aono wrote:
> Dear John and all,
> I have tried the following, ended up with the following errors.
> ---------------------------------------------------------------------------
> C:\Aono\ISO-2019\Python\John\pyjnius>node xml2all.js abox.x3d
> C:\Aono\ISO-2019\Python\John\pyjnius>python abox.future.py
> Traceback (most recent call last):
>    File "abox.future.py", line 20, in <module>
> .addConnect(x3dpsail.connect().setNodeField(x3dpsail.SFString("children")).setProtoField(x3dpsail.SFString("myShape")))))))
>    File "jnius\jnius_export_class.pxi", line 760, in jnius.JavaMethod.__call__
>    File "jnius\jnius_conversion.pxi", line 78, in jnius.populate_args
>    File "jnius\jnius_utils.pxi", line 205, in jnius.check_assignable_from
> jnius.JavaException: Invalid instance of 'org/web3d/x3d/jsail/X3DConcreteNode' passed for a 'org/web3d/x3d/sai/Core/X3DNode'
> BTW, I could not succeed in downloading all of
> https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org
> However, I could download all under .../x3d/stylesheet sub folder.
> For other sub folders, the communication seems to "abend".
> Is there a "tarball" available for all?
> I wonder if there is any reason not to put these to github?
> Thanks.
> On 2019/05/21 12:26, John Carlson wrote:
>> Dr Aono.  Thank you very much for helping us.
>> Please try running
>>   * node xml2all.js abox.x3d
>> in our sourceforge based folder (not the GitHub based folder) then run
>>   * python abox.future.py
> -- 
> ******************************************************
> 青野雅樹
> 豊橋技術科学大学 情報・知能工学系
> 知識データ工学・情報検索研究室
> 〒441-8580 豊橋市天伯町雲雀ヶ丘1-1
> TEL:(0532)  44-6764
> FAX:(0532) 44-6757
> Masaki Aono
> Professor
> Knowledge Data Engineering Laboratory
> Dept. of Computer Science and Engineering
> Toyohashi University of Technology
> 1-1 Hibarigaoka, Tempaku-cho,
> Toyohashi-shi, Aichi 441-8580 JAPAN
> TEL: 81+532-44-6764
> FAX:81+532-44-6757
> email:aono at tut.jp
> ******************************************************

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/20190521/3aee71de/attachment.html>

More information about the x3d-public mailing list