pyscript: pyscript can't run in webbowers by using some plugins scripts,always break the fetch to pyodide,such as Tampermonkey,IDM,Adguard,uBolck or other plugins which Inject js to website.
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?
pyscript can’t run in webbowers by using some plugins scripts,always break the fetch to pyodide,such as Tampermonkey,IDM,Adguard,uBolck or other plugins which Inject js to website. here are console logs:
logger.ts:39 [py-splashscreen] add py-splashscreen
logger.ts:39 [py-terminal] No <py-terminal> found, adding one
logger.ts:39 [pyscript/main] Initializing runtime
logger.ts:39 [pyscript/pyodide] Runtime config: Object
logger.ts:39 [pyscript/main] Downloading pyodide-0.21.3...
logger.ts:39 [pyscript/main] Python startup...
logger.ts:39 [pyscript/pyodide] Loading pyodide cdn.jsdelivr.net/pyodide/v0.21.3/full/pyodide_py.tar:1
**Failed to load resource: net::ERR_BLOCKED_BY_CLIENT**
Uncaught (in promise) TypeError: Failed to fetch
at loadBinaryFile (compat.ts:153:24)
at loadPyodide (module.ts:115:17)
at async PyodideRuntime.loadInterpreter (pyodide.ts:33:28)
at async PyScriptApp.afterRuntimeLoad (main.ts:144:9)
in every websites which use the plugins
What browsers are you seeing the problem on? (if applicable)
Microsoft Edge
Console info
}
logger.ts:39 [py-splashscreen] add py-splashscreen
logger.ts:39 [py-terminal] No <py-terminal> found, adding one
logger.ts:39 [pyscript/main] Initializing runtime
logger.ts:39 [pyscript/pyodide] Runtime config: Object
logger.ts:39 [pyscript/main] Downloading pyodide-0.21.3...
logger.ts:39 [pyscript/main] Python startup...
logger.ts:39 [pyscript/pyodide] Loading pyodide
cdn.jsdelivr.net/pyodide/v0.21.3/full/pyodide_py.tar:1
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
compat.ts:153
Uncaught (in promise) TypeError: Failed to fetch
at loadBinaryFile (compat.ts:153:24)
at loadPyodide (module.ts:115:17)
at async PyodideRuntime.loadInterpreter (pyodide.ts:33:28)
at async PyScriptApp.afterRuntimeLoad (main.ts:144:9)
Additional Context
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 19 (16 by maintainers)
@JeffersGlass @FabioRosado Since this issue is followed by multiple people, we should reopen this issue.
No worries @WebReflection - this can close.
For those finding this in the future, to answer a specific question that was raised here - if you do want to load Pyodide from a server of your choice and not from the default CDN, you can provide the URL to the interpreter tag in
<py-config>.