posit-dev / py-shiny-site

The documentation website for Shiny for Python
https://shiny.posit.co/py/
MIT License
17 stars 16 forks source link

ModuleNotFoundError on all examples on the website #112

Open DavZim opened 8 months ago

DavZim commented 8 months ago

Every example on the website is broken for me with the error

Traceback (most recent call last):
  File "<exec>", line 362, in _start_app
ModuleNotFoundError: The module 'shiny' is included in the Pyodide distribution, but it is not installed.
You can install it by calling:
  await micropip.install("shiny") in Python, or
  await pyodide.loadPackage("shiny") in JavaScript
See https://pyodide.org/en/stable/usage/loading-packages.html for more details.

(Example taken from https://shiny.posit.co/py/docs/ui-customize.html) image

Note I am behind a corporate proxy, which might interfere with things. This happens both in Chrome as well as in Edge.

wch commented 8 months ago

I don't see this issue... I think it probably has something to do with your proxy. If you open the Javascript console in your browser, what does it say?

DavZim commented 8 months ago

Indeed I see lots of errors, The first errors are

Failed to find a valid digest in the 'integrity' attribute for resource 'https://shiny.posit.co/py/site_libs/quarto-contrib/shinylive-0.2.5/shinylive/pyodide/shiny-0.7.0-py3-none-any.whl' with computed SHA-256 integrity 'V8jdBMuWq6JQUtMHVLT2uyYPUc75HbHrXUCYzoYQPxs='. The resource has been blocked.
Unknown error occurred while trying to verify integrity.

I guess this is somehow related to our corporate proxy settings and I am not sure there is anything that you could do on your end. So for now I think we can close this.