Skip to content

Panel application converted with pyodide do not work #8641

Description

@PierreMarchand20

ALL software version info

(this library, plus any other relevant software, e.g. bokeh, python, notebook, OS, browser, etc should be added within the dropdown below.)

Software Version Info
panel              1.9.3
bokeh              3.9.1
plotly             6.8.0

Description of expected behavior and the observed behavior

All panel app converted to pyodide do not work (even examples) because of

await self.pyodide.runPythonAsync(`
      import micropip
      await micropip.install(['https://cdn.holoviz.org/panel/wheels/bokeh-3.9.1-py3-none-any.whl', 'https://cdn.holoviz.org/panel/1.9.3/dist/wheels/panel-1.9.3-py3-none-any.whl', 'pyodide-http', 'pandas', 'plotly']);
    `);

It does find https://cdn.holoviz.org/panel/wheels/bokeh-3.9.1-py3-none-any.whl. Replacing 3.9.1 by 3.9.0 makes it work again.

Complete, minimal, self-contained example code that reproduces the issue

The example from https://panel.holoviz.org/how_to/wasm/convert.html

Is there a way to select the version when converting the app as a workaround?

Stack traceback and/or browser JavaScript console output

Uncaught (in promise) PythonError: Traceback (most recent call last):
  File "/lib/python313.zip/_pyodide/_base.py", line 597, in eval_code_async
    await CodeRunner(
    ...<9 lines>...
    .run_async(globals, locals)
  File "/lib/python313.zip/_pyodide/_base.py", line 413, in run_async
    await coroutine
  File "<exec>", line 4, in <module>
ModuleNotFoundError: No module named 'panel'

Screenshots or screencasts of the bug in action

  • [x ] I may be interested in making a pull request to address this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions