Skip to content

Missing wheel for libsass in Shiny for Python's Pyodide distribution #1753

@coatless

Description

@coatless

ui.Theme's dependency on libsass is problematic for the Shiny for Python environment, c.f.

ImportError: The 'libsass' package is required to compile custom themes. Please install it with `pip install {pkg}` or `pip install "shiny[theme]"`.

Adding a requirements.txt file with:

pip install libsass

Yields:

ValueError: Can't find a pure Python 3 wheel for 'libsass'.
See: https://pyodide.org/en/stable/usage/faq.html#why-can-t-micropip-find-a-pure-python-wheel-for-a-package
You can use `await micropip.install(..., keep_going=True)` to get a list of all packages with missing wheels.

Shiny app demo: Playground

Image

Note

I do not believe it's possible to use shiny["theme"] inside of requirements.txt within the playground itself due to how the shiny package has to be started.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions