Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panel Leafmap: 404 GET /static/extensions/ipywidgets_bokeh/3dfd3127e3794acab459.woff2 #107

Open
MarcSkovMadsen opened this issue Jun 12, 2024 · 1 comment

Comments

@MarcSkovMadsen
Copy link

I'm trying to get leafmap working with Panel similarly to Solara-Leafmap.

A lot of features work. But when in the logs of the server I see

2024-06-12 15:02:46,472 404 GET /static/extensions/ipywidgets_bokeh/3dfd3127e3794acab459.woff2 (127.0.0.1) 0.70ms
2024-06-12 15:02:46,532 404 GET /static/extensions/ipywidgets_bokeh/a32e68d9472b3557a6a2.woff (127.0.0.1) 0.55ms
2024-06-12 15:02:46,723 404 GET /static/extensions/ipywidgets_bokeh/483f64f5a997c40908d9.ttf (127.0.0.1) 0.88ms
import leafmap

import panel as pn

pn.extension("ipywidgets")

widget = leafmap.Map()

layout = pn.Column(
    widget,
).servable()
panel serve app.py
Name: bokeh
Version: 3.4.1
Location: /home/jovyan/repos/private/panel/.venv/lib/python3.11/site-packages
Requires: contourpy, jinja2, numpy, packaging, pandas, pillow, pyyaml, tornado, xyzservices
Required-by: ipywidgets-bokeh, panel
---
Name: ipywidgets-bokeh
Version: 1.6.0
Location: /home/jovyan/repos/private/panel/.venv/lib/python3.11/site-packages
Requires: bokeh, ipykernel, ipywidgets
Required-by:
---
Name: leafmap
Version: 0.33.0
Location: /home/jovyan/repos/private/panel/.venv/lib/python3.11/site-packages
Requires: bqplot, colour, duckdb, folium, gdown, geojson, ipyevents, ipyfilechooser, ipyleaflet, ipywidgets, matplotlib, numpy, pandas, plotly, pyshp, pystac-client, python-box, scooby, whiteboxgui, xyzservices
Required-by:
---
Name: panel
Version: 1.5.0a3.post1.dev124+g5b59d248.d20240606
Location: /home/jovyan/repos/private/panel/.venv/lib/python3.11/site-packages
Editable project location: /home/jovyan/repos/private/panel
Requires: bleach, bokeh, linkify-it-py, markdown, markdown-it-py, mdit-py-plugins, packaging, pandas, param, pyviz-comms, requests, tqdm, typing-extensions
Required-by:
@aulemahal
Copy link

aulemahal commented Aug 2, 2024

I have the same issue. My installation of ipywidgets_bokeh 1.6.0 was done through pip in a docker container. The folder ENV/lib/python3.11/site-packages/ipywidgets_bokeh/dist/ does not contain any font files. Neither do the wheels on pypi. I think the issue is simply that MANIFEST.in does not include the font files!

In fact, I'm not sure I see why any files generated in the dist folder should be excluded, maybe the easy fix is simply to recursive-include all files?

aulemahal added a commit to aulemahal/ipywidgets_bokeh that referenced this issue Aug 2, 2024
Include all files generated by npm in the built package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants