Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update opencv-python to 4.5.5.64 and restrict numpy to 1.x #1905

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dwrobel
Copy link
Contributor

@dwrobel dwrobel commented Oct 4, 2024

- Update due to flatpak's complaints:
  WARNING: The candidate selected for download or install
  is a yanked version: 'opencv-python' candidate
  (version 4.5.5.62 at https://files.pythonhosted.org/packages/9d/98/36bfcbff30da27dd6922ed73ca7802c37d87f77daf4c569da3dcb87b4296/opencv_python-4.5.5.62-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
  (from https://pypi.org/simple/opencv-python/) (requires-python:>=3.6))
  Reason for being yanked: deprecated, use 4.5.5.64

- Restrict numpy to not installing 2.x version
(due to >=1.12 version specified in requirements.txt)
which causes run-time error:
  RuntimeError: module compiled against ABI version 0x1000009
  but this version of numpy is 0x2000000

- Align installed versions between setup.py, requirements.txt, and
io.github.bcnc.json files.

Signed-off-by: Damian Wrobel <dwrobel@ertelnet.rybnik.pl>
@dwrobel dwrobel force-pushed the Update-opencv-python-to-4.5.5.64-and-restrict-numpy-to-1.x branch from 401f400 to fb83d92 Compare October 4, 2024 19:03
@Harvie
Copy link
Collaborator

Harvie commented Oct 4, 2024

is bCNC codebase not compatible with latest numpy and opencv? i am not sure how hard it would be to upgrade completely...

@dwrobel
Copy link
Contributor Author

dwrobel commented Oct 5, 2024

I don't know but I assumed this will be addressed by #1900. What I wanted to address here is to fix the current issue on bCNC which you can observe building either flatpak version or trying to install dependencies on the clean installation. You will get numpy 2.x being installed and observe the RuntimeError (mentioned in the git message above) as a result Camera button is greyed (nothing related to camera works).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants