Open Steve235lab opened 7 months ago
In short, opencv-python >= 4.9.0
is not compatible with old macOS. We should handle this.
Are they working on a fix for this in opencv?
Are they working on a fix for this in opencv?
Someone opened an issue, but there's no response yet.
Are they working on a fix for this in opencv?
And it seems the way they will fix the problem is avoid installing the latest version on old systems.
Describe the bug
I have the main branch of OI installed from source and tested on an old iMac which runs macOS 11.7.10. An error occurred when I tried to launch OI:
Obviously, this error was caused by the line
import cv2
. So I tried to runimport cv2
directly in interactive python environment, and the same error was thrown. Then I tried to uninstallopencv-python
and re-installopencv-python==4.8.1.78
, the error was no longer thrown and seems everything works in OI.So should we limit the version of dependency
opencv-python = ">=4.8.1.78,<4.9.0"
inpyproject.toml
? Or we should just abandon users who are using an old macOS?Reproduce
See the description.
Expected behavior
Limit dependency
opencv-python = ">=4.8.1.78,<4.9.0"
inpyproject.toml
or add an handler for this import error if you want OI support old versions of macOS. Or just throw a clear deny-to-run message when detects OI running on those OSs.Screenshots
No response
Open Interpreter version
Built from source on updated main branch
Python version
3.11.4
Operating System name and version
macOS 11.7.10
Additional context
No response