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

John Carlson yottzumm at gmail.com
Wed May 22 20:14:07 PDT 2019


Okay, I took the step of bringing in HelloWorld.py and the notebook failed.

Attached is the notebook with the issue, for your own editing.

I’m very glad I thought to test this.

I will pip freeze next.

John

Sent from Mail for Windows 10

From: John Carlson
Sent: Wednesday, May 22, 2019 10:07 PM
To: Masaki Aono; Andreas Plesch
Cc: Brutzman, Donald (Don) (CIV); Vincent Marchetti; X3D Graphics public mailing list; lepeitso at nps.edu
Subject: RE: compiling abox.future.py Re: Please instruct me what Ishouldbetocatch up withyouRe:X3D/XSeen Python API (PyX3D or X3DPy)

Dr. Aono,

Thank you for your testing and installation efforts.  I think the next step is to copy/paste the HelloWorld.py into the Jupyter notebook and see if it builds and exports XML correctly, similar to Andreas Plesch’s binder, https://mybinder.org/v2/gh/andreasplesch/conda/master/?urlpath=lab/tree/sphere.ipynb but with the package import as you have, and package prefixes found in HelloWorld.py.   The only thing we’re testing in this step is the “x3dpsail” namespace inside jupyter.  Whereas Andreas’ solution had no package.  Ideally, I’d like to get Loren’s signoff on what we’re doing re: packaging and imports after the notebook is published again.

You’ll have to change the toFileX3D to toStringX3D in HelloWorld.py to get the xml into the page (instead of doing the file open).   There are a couple of more XML strings you’ll have to add per Andreas’ notebook.  There may also be an issue with trusting the X3DOM javascript url.

See X3DObject (X3D in python) Javadoc here for toStringX3D method:

http://www.web3d.org/specifications/java/javadoc/org/web3d/x3d/jsail/Core/X3DObject.html

We should probably collect a series of Jupyter notebooks into a test suite.  Something else to research.

I am sorry if this seems very basic. It takes small steps to get a long distance.  We really need to gather this information into a wiki or web page (or jupyter notebook!)

John

Sent from Mail for Windows 10

From: Masaki Aono
Sent: Wednesday, May 22, 2019 1:09 PM
To: John Carlson; Andreas Plesch
Cc: Brutzman, Donald (Don) (CIV); Vincent Marchetti; X3D Graphics public mailing list; lepeitso at nps.edu
Subject: Re: compiling abox.future.py Re: Please instruct me what I shouldbetocatch up withyouRe:X3D/XSeen Python API (PyX3D or X3DPy)

Dear all,
I think I could install x3dpsail.
C:\Aono\ISO-2019\Python\John\pyjnius>pip freeze | grep x3dpsail
x3dpsail==0.1
Then, I did as follows:
> python HelloWorld.py
which produced HelloWorld_RoundTrip.x3d.
The attached are the log + Jupyter log (PDF) that might be interesting, with no texture map though.
Sincerely,
On 2019/05/22 14:42, John Carlson wrote:
Dr Aono, Don, Andreas, Loren,
 
I have attempted to collect items necessary for building a x3dpsail package in the GitHub repository:
 
https://github.com/carlsonsolutiondesign/x3dpsail
 
If I was able to find you as an email address or user in the GitHub database, I added you as collaborators
 
We need, I believe:
 
1. A pip package
2. A conda package
3. A mybinder package
4. A conda-forge package
 
Please check your various attempts and successes to create packages into this repository.   Also modify README.md to include instructions.
 
I have added a HelloWorld.py which should run under all packaging techniques I hope.
 
I would hope we could find a way to add our package to any activated conda environment.
 
What I would like to have is the ability to release this folder as an “X3DPSAIL release” and maybe have Travis CI (or similar) deploy the release to various package repositories.
 
If you know someone with CI experience (I have some, but it’s nearly a decade old, with Java) who is willing to help, that would be terrific (Do they teach CI in schools?)  Let me know and I will add them.  I think we have a fairly simple release.   The only complication is the jar.
 
I will go back to reading recipes, etc from Andreas’ posts.
 
Thanks,
 
John
 
Sent from Mail for Windows 10
 
From: Masaki Aono
Sent: Tuesday, May 21, 2019 11:00 PM
To: John Carlson
Cc: Brutzman, Donald (Don) (CIV); Vincent Marchetti; X3D Graphics public mailing list
Subject: Re: compiling abox.future.py Re: Please instruct me what I should betocatch up withyouRe:X3D/XSeen Python API (PyX3D or X3DPy)
 
Dear John and all,
Thank you.
Actually I did svn cleanup and update, which did not solve my problems.
But, yes, I think I could download the necessary sub-folders.
I haven't yet downloaded x3d/content/examples/X3dForWebAuthors folder.
Sincerely,
On 2019/05/22 12:35, John Carlson wrote:
If svn checkout abends, you can cd to the folder, then run
 
svn cleanup
svn up
 
to continue the checkout.   Cleanup removes the abend.
 
You need the specifications folder, the stylesheets folder, the tooltips folder, and the x3d/content/examples/X3dForWebAuthors folder,  I believe for a clean build.
-- 
******************************************************
青野雅樹
豊橋技術科学大学 情報・知能工学系
知識データ工学・情報検索研究室
〒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
****************************************************** 
 
-- 
******************************************************
青野雅樹
豊橋技術科学大学 情報・知能工学系
知識データ工学・情報検索研究室
〒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
****************************************************** 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20190522/fcf1081a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sphere.ipynb
Type: application/octet-stream
Size: 10344 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20190522/fcf1081a/attachment-0001.obj>


More information about the x3d-public mailing list