Skip to content

Failed to build opencv-python ERROR: Could not build wheels for opencv-python (Mac) #910

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

Open
Mattral opened this issue Oct 23, 2023 · 1 comment

Comments

@Mattral
Copy link

Mattral commented Oct 23, 2023

Title: "Issue Generating Wheel for OpenCV on macOS"

Description:
I am switching to mac and,
I am trying to build OpenCV on macOS, and I encountered an issue when generating a wheel for OpenCV. Here's the context and the problem I'm facing:

Problem:
When I attempt to build OpenCV from source, I get to the point where I need to generate a wheel for OpenCV. However, the build process for fails with an error. I've tried the following steps:

  1. Cloned the OpenCV repository and followed the build process as outlined in the official documentation.

  2. At the wheel generation step, I run the following command:

    python setup.py bdist_wheel

Error Message:

 Problem with the CMake installation, aborting build. CMake executable is cmake
  ----------------------------------------
  ERROR: Failed building wheel for opencv-python
Failed to build opencv-python

Expected Behavior:
I expect the wheel to be generated successfully without errors.

Additional Information:

  • I have already installed Xcode and Xcode Command Line Tools.
  • My development environment is set up with the necessary dependencies.
  • I have tried building OpenCV with both Python 3.11 and Python 3.12 with the same result.

Question:
What could be causing this error during the wheel generation for OpenCV on macOS, and how can I resolve it? Are there any specific configuration or dependency requirements I might be missing?

I appreciate any guidance and suggestions to help me successfully build OpenCV on macOS. Thank you in advance for your assistance.

@asmorkalov
Copy link
Collaborator

 Problem with the CMake installation, aborting build. CMake executable is cmake
  ----------------------------------------
  ERROR: Failed building wheel for opencv-python
Failed to build opencv-python

This is incomplete log. The actual issue is above. Please add full console output.

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

No branches or pull requests

2 participants