-
Notifications
You must be signed in to change notification settings - Fork 893
Build fails "late" if no internet connection #636
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
Comments
You need to report to opencv-python downstream repo. OpenCV disables related modules (gapi) if dependencies can't be fetched. Check CMake logs. No issue with opencv itself. If you drop Internet connection, then you should pre-download / provide somehow required dependencies. Avoid building through pip/setup.py, use source code from GitHub (AFAIK there is already such NIX package). Transferring issue... |
Fix: #639 |
I've fixed this skipping gapi if there is no files in #642. However, there is another solution, you can:
*If you need opencv_contrib modules, also define
You can also do it using a source package on PyPi:
|
In addition, we wanted to add these pre-downloaded files in a source package, but there are different files what depend on OS / 64/32-bit builds. If to keep all of them in the source package, it can be about of 300-400Gb for an archive, what is prohibited to upload on PyPi in case of limits. |
Hi, #642 would be very helpful. Most likely I can tinker around to download the GAPI dependency and provide it to the build if there is a way to substitute the download to a local file. Looking at your comment, it seems doable. Thanks for your reply and work! |
No action items on our side. |
System information (version)
Detailed description
If I clone the repository and run the build in an isolated environment without internet, the build first fails to download the GAPI component
https://github.com/opencv/opencv/blob/e0ffd3e8a5c25b634a853ce695c4d23d3057b361/modules/gapi/cmake/DownloadADE.cmake#L5-L14
and that failure does not stop the build.
However, at the end of the build, it fails to build the wheel
Steps to reproduce
Cone then build without Internet
or build in an isolated environment using Nix
nix build github:GuillaumeDesforges/bug-poetry2nix-opencv
Issue submission checklist
forum.opencv.org, Stack Overflow, etc and have not found any solution
The text was updated successfully, but these errors were encountered: