New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Pyodide 0.21.3 #887
Conversation
odd test-ts error
|
Huh! Interesting… will investigate. |
It's curious to me that the error can't find a file in From the main branch currently, if you do I've been looking for an excuse to set up a Pyodide build environment, so investigating that too, as a way of digging into this. |
this very vaguely rings a bell to me. I think that @madhur-tandon had problems when migrating to 0.21.2 because pyodide changed the way it located certain files. |
Yes, this is possible it's the same issue. Basically, the CC: @JeffersGlass |
I guess you mean |
Yeah, I guess I typed in hurry 😓 |
@JeffersGlass I did something similar in my previous attempt -- using the pyscript/pyscriptjs/tests/integration/test_py_config.py Lines 69 to 105 in ab085c2
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like the test for loading a local pyodide passes, approving 🗡️
Y'all were exactly right, the issue was in differences between running in Jest vs in selenium/browser. It turns out Pyodide's method of determining the base URL/location to load additional files from is a bit of a hack, though a clever one - if you don't provide an I believe this broke in 0.21.3 build (and not 0.21.2) because some files (including Edit: @madhur-tandon Beat me to posting! Thanks again for pointing me in the right direction. |
Yours to merge @JeffersGlass |
What is strange is that it broke in You can refer some of my previous conclusions here: #734 (comment) |
Upgrade to Pyodide 0.21.3 as the default. The changelog from 0.21.2 -> 0.21.3 is mostly bug fixes (including a couple regressions in 0.21.2) - the only breaking changes involves how the
soupsieve
package loads.The rest of the fixes - including loading packages in a more sensible order and being able to access the Pyodide version without having to use loadPyodide() seem minor but potentially useful.