Skip to content
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

wasm instantiation fails for pyodide engine #6

Closed
statik opened this issue Jul 24, 2024 · 5 comments
Closed

wasm instantiation fails for pyodide engine #6

statik opened this issue Jul 24, 2024 · 5 comments

Comments

@statik
Copy link

statik commented Jul 24, 2024

I love this extension!

I'm trying to use drop on a revealjs presentation that is in a subdirectory of a quarto website project. It works fine with the webr engine, but the pyodide engine fails to instantiate due to a javascript exception. I wasn't able to track down exactly what is going wrong, but I was able to put together a minimal reprex at https://github.com/statik/reprex-drop.

If you clone that repo and run quarto preview, you should be able to click into the presentation, try opening the drop console, and look at the browser developer tools to see the exception. I am running this on Chrome Version 126.0.6478.183 (Official Build) (arm64) on macOS. Thanks for your help!

@statik
Copy link
Author

statik commented Jul 24, 2024

Screenshot 2024-07-24 at 10 18 30 AM

@statik
Copy link
Author

statik commented Jul 24, 2024

huh, I'm actually seeing pyodide fail when running quarto preview python-example.qmd from this repo directly.

@statik statik changed the title wasm instantiation fails for pyodide engine when presentation is part of a project wasm instantiation fails for pyodide engine Jul 24, 2024
@statik
Copy link
Author

statik commented Jul 24, 2024

I see 403 forbidden when trying to access https://cdn.jsdelivr.net/pyodide/v0.26.1/full/, which is the URL listed on https://pyodide.org/en/stable/usage/downloading-and-deploying.html and in

indexURL: "https://cdn.jsdelivr.net/pyodide/v0.26.1/full/",

@georgestagg
Copy link
Member

Hmmm, strange!

The forbidden response is expected for that path, but can you access the full URL at https://cdn.jsdelivr.net/pyodide/v0.26.1/full/pyodide.asm.js in Chome? What about Safari?

I can't reproduce at my end. This is looking like it might be some kind of network issue, but I'm unsure.

Could you please look for pyodide.asm.js (or some other file under the above URL) in your Chrome dev tools network log and show me the details of that particular connection? Here is what a good connection should look like:

Screenshot 2024-07-25 at 09 51 44

This problem might also be avoided with #4, but that will require some work to implement.

@statik
Copy link
Author

statik commented Aug 1, 2024

thank you for looking at this! I started working on creating a HAR recording to reproduce, and did that in an incognito window. Things started working! I then went through and disabled some Chrome Extensions, and pyodide works now. I did see that even when the initialization was failing, pyodide.asm.js did successfully fetch over the network.

It turns out that Mokku Chrome extension was breaking things. I have removed that extension.

@statik statik closed this as completed Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants