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

John Carlson yottzumm at gmail.com
Fri Dec 23 09:55:16 PST 2022


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
<https://mail.google.com/mail/u/0?ui=2&ik=2e448ad1e1&attid=0.1&permmsgid=msg-f:1752956126933292702&th=1853c04f54b4169e&view=att&disp=safe>
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 <yottzumm at gmail.com>
*Sent: *Thursday, December 22, 2022 1:26 PM
*To: *X3D Graphics public mailing list <x3d-public at web3d.org>
*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/88053f1f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Web3dLogo-X3d-animated-logo2.zip
Type: application/zip
Size: 32385 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20221223/88053f1f/attachment-0001.zip>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: web3dLogo.zip
Type: application/x-zip-compressed
Size: 162124 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20221223/88053f1f/attachment-0001.bin>


More information about the x3d-public mailing list