question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pyodide intermittently not loading, causing Run button to not load

See original GitHub issue

The pyodide package intermittently doesn’t loading, causing Run Code button to not load.

image

We can either change the logic of the Run Code button to load separately from the language dependencies-- probably not advisable since it’s useless without it, or have some guarantee/retry for the language package.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jsjoeiocommented, Sep 25, 2021

I tested with Brave on my phone just now and it worked!

Screenshot_20210925-075145

1reaction
jsjoeiocommented, Sep 25, 2021

I’m seeing this as well.

Screenshot

image

Stack Trace

Uncaught (in promise) TypeError: window.loadPyodide is not a function
    at index-a5183b743b6e8e8b6343.js:1
    at l (main-c4f2541b93e4ae8b71f8.js:1)
    at Generator._invoke (main-c4f2541b93e4ae8b71f8.js:1)
    at Generator.next (main-c4f2541b93e4ae8b71f8.js:1)
    at r (index-a5183b743b6e8e8b6343.js:1)
    at u (index-a5183b743b6e8e8b6343.js:1)
    at index-a5183b743b6e8e8b6343.js:1
    at new Promise (<anonymous>)
    at HTMLScriptElement.<anonymous> (index-a5183b743b6e8e8b6343.js:1)
    at HTMLScriptElement.<anonymous> (main-c4f2541b93e4ae8b71f8.js:1)

I don’t know if it has to do with AdBlockers or what but when I turn off the shield with Brave, the button appears 🤷🏼‍♂️

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pyodide - Read the Docs
Our goal is to run some Python code in another thread, this other thread will not have access to the main thread objects....
Read more >
Release 0.19.1 unknown - Pyodide
Our goal is to run some Python code in another thread, this other thread will not have access to the main thread objects....
Read more >
JupyterLite not running anything - matplotlib - Stack Overflow
I'm using JupyterLite as it is very comfortable to do so, but sometimes it simply won't work. To be clear, once I set...
Read more >
Intro to PyScript: Run Python in the browser - LogRocket Blog
PyScript builds upon Pyodide, which ports CPython to WebAssembly. ... These tools don't currently work on Python code embedded in an HTML ...
Read more >
Brython: Python in Your Browser - Real Python
In this tutorial, you'll learn how to use Brython to run Python code in the ... You may not want to spend the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found