holoviz / panel

Panel: The powerful data exploration & web app framework for Python
https://panel.holoviz.org
BSD 3-Clause "New" or "Revised" License
4.42k stars 484 forks source link

Pyodide ImportError on Windturbines docs page #5559

Open cdeil opened 9 months ago

cdeil commented 9 months ago

At https://panel.holoviz.org/gallery/windturbines.html I see the following error if I execute the example via the green play button.

ImportError: Geographic projection support requires: cartopy, geoviews, pyproj.

Traceback:

Traceback (most recent call last):
  File "/lib/python3.11/site-packages/panel/io/mime_render.py", line 176, in exec_with_return
    exec(compile(init_ast, "<ast>", "exec"), global_context)
  File "<ast>", line 33, in <module>
  File "/lib/python3.11/site-packages/hvplot/plotting/core.py", line 1626, in points
    return self(x, y, kind="points", **kwds)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/hvplot/plotting/core.py", line 92, in __call__
    return self._get_converter(x, y, kind, **kwds)(kind, x, y)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/hvplot/plotting/core.py", line 99, in _get_converter
    return HoloViewsConverter(self._data, x, y, kind=kind, **params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/hvplot/converter.py", line 401, in __init__
    self.crs = self._process_crs(data, crs) if self.geo else None
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/hvplot/converter.py", line 662, in _process_crs
    return process_crs(_crs)
           ^^^^^^^^^^^^^^^^^
  File "/lib/python3.11/site-packages/hvplot/util.py", line 248, in process_crs
    raise ImportError(f'Geographic projection support requires: {", ".join(missing)}.')
ImportError: Geographic projection support requires: cartopy, geoviews, pyproj.

Screenshot:

Screenshot 2023-09-29 at 22 18 29
philippjfr commented 9 months ago

Thanks, this is a regression in hvplot which will be resolved in the hvplot 0.9 release.

cdeil commented 8 months ago

@philippjfr - it looks like hvplot 0.9 was released two weeks ago.

I now get this different error for https://panel.holoviz.org/gallery/windturbines.html

Screenshot 2023-11-01 at 13 35 13
cdeil commented 8 months ago

And for https://panel.holoviz.org/reference/templates/Material.html I see this error:

Screenshot 2023-11-01 at 13 35 50
cdeil commented 3 months ago

This is fixed by now: https://panel.holoviz.org/reference/templates/Material.html

This still shows an error: https://panel.holoviz.org/gallery/windturbines.html

ImportError: In order to use datashading features the Datashader library must be available. It can be installed with: conda install datashader

hoxbro commented 3 months ago

Datashader is not available to be installed with Pyodide.