Hello, I am fairly new and crafting a snap which requires opencv and in the scripts which use it it is imported with the binding “cv2” however I am getting a
ModuleNotFoundError: No module named 'cv2'
error even though I have a part which builds consisting of the following:
# Opencv opencv: plugin: python python-packages: - opencv-python prime: - usr/lib/**/
am I including this incorrectly? FWIW here are the rest of my relevant parts:
# Numpy numpy: plugin: python python-packages: - numpy # Open3D pip library open3d: plugin: python python-packages: - open3d prime: - usr/lib/**/
I am not completely sure if my use of “prime” is correct or if there is a better way for me to install these parts but it does seem to satisfy all the lib library warnings. Is there a simple way to make sure snapcraft is aware of this binding?