holoviz / panel

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

Wrong packages listed when panel converting the videostream example #6170

Open MarcSkovMadsen opened 11 months ago

MarcSkovMadsen commented 11 months ago

I'm on panel==1.3.6. When trying to panel convert video_stream.py --to pyodide-worker there are some issues identifying the relevant packages.

import base64
import io
import time

import numpy as np
import param
import PIL
import skimage

from PIL import Image, ImageFilter
from skimage import data, filters
from skimage.color.adapt_rgb import adapt_rgb, each_channel
from skimage.draw import rectangle
from skimage.exposure import rescale_intensity
from skimage.feature import Cascade

import panel as pn
import sys

This is what is identified

const env_spec = ['https://cdn.holoviz.org/panel/wheels/bokeh-3.3.2-py3-none-any.whl', 'https://cdn.holoviz.org/panel/1.3.6/dist/wheels/panel-1.3.6-py3-none-any.whl', 'pyodide-http==0.2.1', 'PIL', 'numpy', 'param', 'skimage']

This is what should be identified

const env_spec = ['https://cdn.holoviz.org/panel/wheels/bokeh-3.3.2-py3-none-any.whl', 'https://cdn.holoviz.org/panel/1.3.6/dist/wheels/panel-1.3.6-py3-none-any.whl', 'pyodide-http==0.2.1', 'numpy', 'param', 'scikit-image']

i.e. PIL should not be included. And skimage should be scikit-image.

FrankChen070716 commented 10 months ago

excuse me, so what the hell is 'skimage'

philippjfr commented 10 months ago

skimage is the name of the import for scikit-image.