You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
icosahedron example - newer versions will not run. #15
ImportError: cannot import name 'THREE' from 'js' (unknown location)
I am not sure if this is happening because of order of imports (and three is not loaded but the older 147 is loaded), or of a change made between builds 147 and 162 in three.js itself.
Also unsure if doing it like this is preferred now or should it be in toml file ?
Activity
Neon22 commentedon Mar 23, 2024
more info:
Apparently this is the official response:
googlemaps/js-three#261
However I don't know enough to fix in pyscript.
Neon22 commentedon Mar 23, 2024
We probably also want to be able to import the addons/ e.g. for orbit controls.
I am hoping the example could also include one of these ?
Neon22 commentedon Mar 24, 2024
Looks like it was announced in 2024.1.1
Alas adding this to the toml file does work:
as does this:
"https://cdn.jsdelivr.net/npm/three@0.162.0/+esm"
Neon22 commentedon May 7, 2024
As of new examples release. Still using "three.js/0.147.0"
Latest as of today is 164.
17 releases behind and cannot use.
This example needs to be updated:
OK. looks like this entire repo is no longer being used anymore (still linked to src="https://pyscript.net/releases/2024.1.1/core.js" in html file).
SO - going to try to find where you're pulling the examples from and repost this issue there.
Will also suggest you delete this repo.
Neon22 commentedon Jun 26, 2024
Three.js now at version 165.
The icosahedron example is "27" releases behind :(
Neon22 commentedon Feb 5, 2025
Andrea has made adjustments to the example for next release