Skip to content

Build fails "late" if no internet connection #636

Closed
@GuillaumeDesforges

Description

@GuillaumeDesforges
System information (version)
  • OpenCV => 4.5.5.64
  • Operating System / Platform => x86_64-linux
  • Compiler =>
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

  Traceback (most recent call last):
    File "/nix/store/yfwbxnn1j32nyfhi2yzx859dij4xgl3s-python3.9-pip-21.3.1/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
      main()
    File "/nix/store/yfwbxnn1j32nyfhi2yzx859dij4xgl3s-python3.9-pip-21.3.1/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/nix/store/yfwbxnn1j32nyfhi2yzx859dij4xgl3s-python3.9-pip-21.3.1/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 261, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "/nix/store/0xxs98jm9dpvybfgh7kghdq8ayvkp87m-python3.9-setuptools-57.2.0/lib/python3.9/site-packages/setuptools/build_meta.py", line 221, in build_wheel
      return self._build_with_temp_dir(['bdist_wheel'], '.whl',
    File "/nix/store/0xxs98jm9dpvybfgh7kghdq8ayvkp87m-python3.9-setuptools-57.2.0/lib/python3.9/site-packages/setuptools/build_meta.py", line 207, in _build_with_temp_dir
      self.run_setup()
    File "/nix/store/0xxs98jm9dpvybfgh7kghdq8ayvkp87m-python3.9-setuptools-57.2.0/lib/python3.9/site-packages/setuptools/build_meta.py", line 258, in run_setup
      super(_BuildMetaLegacyBackend,
    File "/nix/store/0xxs98jm9dpvybfgh7kghdq8ayvkp87m-python3.9-setuptools-57.2.0/lib/python3.9/site-packages/setuptools/build_meta.py", line 150, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 503, in <module>
      main()
    File "setup.py", line 240, in main
      skbuild.setup(
    File "/nix/store/aa1q4aw1baz4pcvcfqb992knp13azkas-python3.9-scikit-build-0.12.0/lib/python3.9/site-packages/skbuild/setuptools_wrap.py", line 625, in setup
      _classify_installed_files(cmake_manifest, package_data, package_prefixes,
    File "setup.py", line 416, in _classify_installed_files_override
      raise Exception("Not found: '%s'" % relpath_re)
  Exception: Not found: 'python/cv2/gapi/.*\.py'
Steps to reproduce

Cone then build without Internet

or build in an isolated environment using Nix

Issue submission checklist
  • I report the issue, it's not a question
  • I checked the problem with documentation, FAQ, open issues,
    forum.opencv.org, Stack Overflow, etc and have not found any solution
  • I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files: videos, images, onnx, etc

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions