8000 Specified version of interpreter doesn't work when running in a worker. · Issue #2145 · pyscript/pyscript · GitHub
[go: up one dir, main page]

Skip to content

Specified version of interpreter doesn't work when running in a worker. #2145

New issue

Have a question abo 8000 ut 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

Closed
3 tasks done
ntoll opened this issue Aug 14, 2024 · 3 comments · Fixed by pyscript/polyscript#114 or #2148
Closed
3 tasks done
Labels
needs-triage Issue needs triage type: bug Something isn't working

Comments

@ntoll
Copy link
Member
ntoll commented Aug 14, 2024

Checklist

  • I added a descriptive title
  • I searched for other issues and couldn't find a solution or duplication
  • I already searched in Google and didn't find any good information or help

What happened?

Taken from a report on discord:

The specified interpreter version is not used when i add the worker attribute. I am trying to pin an older version of pyodide and when used with the worker attribute it always loads 0.26.2, but as soon as i remove the worker attribute, it loads the pyodide version i want.

https://pyscript.com/@sai1494/pyodide-version/

This example as 2 script tags, one with worker attribute and one without. Both are pinned to 0.23.4. One of them is commented. swap them to test with and without worker attribute. The python code will display the pyodide version loaded.

Searched if there is an existing bug report, but did not find any.

What browsers are you seeing the problem on? (if applicable)

No response

Console info

None.

Additional Context

Example of the issue here: https://pyscript.com/@sai1494/pyodide-version/
Latest version of PyScript (as of time of writing): 2024.8.2

@ntoll ntoll added type: bug Something isn't working needs-triage Issue needs triage labels Aug 14, 2024
@WebReflection
Copy link
Contributor

the example shows literally nothing to me ... but I'll try to reproduce locally

@WebReflection
Copy link
Contributor

temporarily published as https://cdn.jsdelivr.net/npm/@pyscript/core@0.5.7/dist/core.js and https://cdn.jsdelivr.net/npm/@pyscript/core@0.5.7/dist/core.css + there is a test too ... it was indeed ignoring custom workers version but honestly I start not liking the polyscript dance anymore ... way too articulated for the little it theoretically needs to do ... I might rewrite that project at some point as few things changed, few things are not needed for PyScript and I have already mentioned I'd like to get rid of it as PyScript dependency but it would take some time to do so in a clean and non breaking way.

@WebReflection
Copy link
Contributor

@ntoll FYI this is fixed in latest PyScript already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Issue needs triage type: bug Something isn't working
Projects
None yet
2 participants
0