-
Notifications
You must be signed in to change notification settings - Fork 118
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
Unhelpful error message: "Problem with the CMake installation" #513
Comments
The error message is indeed very confusing since it hides the actual error. The root cause is that the The issue has been solved, but new wheels haven't been released yet: |
Thanks for the detailed analysis. Improving the error message makes sense. In the meantime, we will most likely finalize the release of CMake arm wheel next week. |
Is there a way to resolve this error temporarily atm? I'm trying to install opencv on an arm64 device and it's not working |
If you are using You'll have to wait for the new |
Previously, broken cross-built cmake manylinux wheels were deleted from PyPI, so that users would get a working locally-built installation. Could that be repeated for now, until the new properly-built version gets uploaded? This is causing downstream problems with code that depends on
|
I encountered an error when trying to install opencv-python with pip on an ARM machine:
I tried debugging this but the error made no sense to me. I found the skbuild code that raises this error:
But running the code on its own, there was no error. The
cmake
executable was perfectly fine. This message is all the output I was able to get, since I didn't know how to getpip
to run a modified version of the code for me or something. What would really be helpful is the actual error message raised bysubprocess.check_output
, but I couldn't get it.Eventually, days later, I figured out by dumb luck that pip was actually installing the
cmake
PyPI package, and that executable was the one that was broken (I don't know why yet; I'll have to figure it out. That's not what this issue is about.)System info
I was running
pip install opencv-python
, orpip wheel . --verbose
when trying to building opencv-python from source; same error. Was running this on Ubuntu 18.04 on aarch64 so it was building from source since there was no wheel available. Was running thepip
command in a virtualenv (Python version 3.8.5, pip version 20.2.3). The skbuild version that pip installed automatically for the build was 0.11.1.Solution
I think the following would work:
The
from e
would probably print the traceback for the originalCalledProcessError
as well as theSKBuildError
. I'm not entirely sure it will work though, sincepip
seems to be catching theSKBuildError
further upstream and just printing the traceback, and I have no way of testing this. I'll leave it to people who know what they're doing.A better error message here would have saved me lots of time, and would hopefully help people in the future too.
Maybe an even better solution than the above would be if the stderr of
cmake --version
was printed to the console.The text was updated successfully, but these errors were encountered: