Skip to content

Publish separate package for headless version, make opencv and pillow mandatory #204

@frafra

Description

@frafra

Bug/Issue Description:
opencv is marked as optional, but dvr-scan does not work without it.
It happens on main c00ff6f.

Required Information:

$ dvr-scan --help
[...]
    from dvr_scan.__main__ import main
  File "/home/frafra/Code/DVR-Scan/dvr_scan/__init__.py", line 39, in <module>
    import dvr_scan.opencv_loader as _  # noqa: F401
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/frafra/Code/DVR-Scan/dvr_scan/opencv_loader.py", line 34, in <module>
    raise ModuleNotFoundError(
ModuleNotFoundError: OpenCV could not be found, try installing opencv-python:

pip install opencv-python

Expected Behavior:
opencv should be optional, right? :)

Computing Environment:

  • OS: Linux
  • Python Version: 3.12
  • OpenCV Version: N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions