joyceerhl / vscode-pyolite

Run Python code in Jupyter notebooks on github.dev and vscode.dev/github
https://marketplace.visualstudio.com/items?itemName=joyceerhl.vscode-pyodide
77 stars 16 forks source link

pyodide opencv-python package not available #25

Open randomlogic78 opened 1 year ago

randomlogic78 commented 1 year ago

The opencv-python package available in the pyodide kernel reports not available when running the kernel from vscode.dev

from platform import python_version print(python_version()) import cv2 as cv

3.9.5 ModuleNotFoundError Traceback (most recent call last) Cell In[24], line 7 5 from platform import python_version 6 print(python_version()) ----> 7 import cv2 as cv

ModuleNotFoundError: No module named 'cv2'

############################# The test file from the pyodide repo uses import cv2 as cv for importing the package. https://github.com/pyodide/pyodide/blob/main/packages/opencv-python/test_opencv_python.py