panel icon indicating copy to clipboard operation
panel copied to clipboard

Wrong packages listed when panel converting the videostream example

Open MarcSkovMadsen opened this issue 1 year ago • 2 comments

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.

MarcSkovMadsen avatar Jan 07 '24 12:01 MarcSkovMadsen

excuse me, so what the hell is 'skimage'

FrankChen070716 avatar Jan 22 '24 06:01 FrankChen070716

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

philippjfr avatar Jan 22 '24 11:01 philippjfr