[x3d-public] X3D example to show x3d.py on the web?

Joseph D Williams joedwil at earthlink.net
Fri Dec 23 19:12:53 PST 2022


Thanks John, 
OK, file seems better now.  
Joe

From: John Carlson
Sent: Friday, December 23, 2022 9:55 AM
To: Don Brutzman; Joe D Williams; x3d-public at web3d.org
Subject: Fwd: [x3d-public] X3D example to show x3d.py on the web?

There are issues thrown against the generated files from X3dToPython.xslt and X3dToJson.xslt, if I'm reading this right.  Actually, I just checked the source file against the X3D validator, and there appear to be multiple issues!

Please fix the .x3d in your original zip, Joe!

John


$ jsonlint data/Web3dLogo-X3d-animated-logo2.json
Error: Parse error on line 373:
... at rotation":[0,0,1,0,#,-1,0,0,-1.571],
-----------------------^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'
    at Object.parseError (C:\Users\john\AppData\Roaming\npm\node_modules\jsonlint\lib\jsonlint.js:55:11)
    at Object.parse (C:\Users\john\AppData\Roaming\npm\node_modules\jsonlint\lib\jsonlint.js:132:22)
    at parse (C:\Users\john\AppData\Roaming\npm\node_modules\jsonlint\lib\cli.js:82:14)
    at main (C:\Users\john\AppData\Roaming\npm\node_modules\jsonlint\lib\cli.js:135:14)
    at Object.<anonymous> (C:\Users\john\AppData\Roaming\npm\node_modules\jsonlint\lib\cli.js:179:1)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)

$ python data/Web3dLogo-X3d-animated-logo2.py
  File "C:\Users\john\X3DJSONLD\src\main\data\Web3dLogo-X3d-animated-logo2.py", line 41
    children=[
             ^
SyntaxError: '[' was never closed

Attaching files.

I'm going to set this aside for now, but the last thing I will do is check the XML

Web3dLogo-X3d-animated-logo2.zip has the bad .x3d file!

Thanks!


---------- Forwarded message ---------
From: Joseph D Williams <joedwil at earthlink.net>
Date: Thu, Dec 22, 2022 at 4:47 PM
Subject: RE: [x3d-public] X3D example to show x3d.py on the web?
To: John Carlson <yottzumm at gmail.com>, X3D Graphics public mailing list <x3d-public at web3d.org>

 
This one?
 
From: John Carlson
Sent: Thursday, December 22, 2022 1:26 PM
To: X3D Graphics public mailing list
Subject: [x3d-public] X3D example to show x3d.py on the web?
 
Does anyone have an x3d example they’d like to convert to Python and display on the web?
 
I’d like a beefier example than “HelloWorld.py”. since that’s been done.
 
It should be compatible with X3DOM and x3d.py.
 
You’ll get a python file and an HTML file back.
 
I trust you will be experienced enough to install brython locally.   I will take a video  and post on YouTube.
 
Thanks!
 
John
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20221223/1ad245d5/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Web3dLogo-X3d-animated-logo3.zip
Type: application/zip
Size: 32381 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20221223/1ad245d5/attachment.zip>


More information about the x3d-public mailing list