Installation of aidge_backend_opencv failed
the error :
(env_aidge) C:\Users\Mission\aidge\aidge\aidge_backend_opencv>pip install . -v
Using pip 24.0 from C:\Users\Mission\miniconda3\envs\env_aidge\lib\site-packages\pip (python 3.8)
Processing c:\users\mission\aidge\aidge\aidge_backend_opencv
Running command python setup.py egg_info
running egg_info
creating C:\Users\Mission\AppData\Local\Temp\pip-pip-egg-info-jzqs8bjc\aidge_backend_opencv.egg-info
writing C:\Users\Mission\AppData\Local\Temp\pip-pip-egg-info-jzqs8bjc\aidge_backend_opencv.egg-info\PKG-INFO
writing dependency_links to C:\Users\Mission\AppData\Local\Temp\pip-pip-egg-info-jzqs8bjc\aidge_backend_opencv.egg-info\dependency_links.txt
writing requirements to C:\Users\Mission\AppData\Local\Temp\pip-pip-egg-info-jzqs8bjc\aidge_backend_opencv.egg-info\requires.txt
writing top-level names to C:\Users\Mission\AppData\Local\Temp\pip-pip-egg-info-jzqs8bjc\aidge_backend_opencv.egg-info\top_level.txt
writing manifest file 'C:\Users\Mission\AppData\Local\Temp\pip-pip-egg-info-jzqs8bjc\aidge_backend_opencv.egg-info\SOURCES.txt'
reading manifest file 'C:\Users\Mission\AppData\Local\Temp\pip-pip-egg-info-jzqs8bjc\aidge_backend_opencv.egg-info\SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'C:\Users\Mission\AppData\Local\Temp\pip-pip-egg-info-jzqs8bjc\aidge_backend_opencv.egg-info\SOURCES.txt'
Preparing metadata (setup.py) ... done
Requirement already satisfied: aidge_core in c:\users\mission\miniconda3\envs\env_aidge\lib\site-packages (from aidge_backend_opencv==0.0.2) (0.2.1)
Building wheels for collected packages: aidge_backend_opencv
Running command python setup.py bdist_wheel
running bdist_wheel
running build
running build_py
creating build\lib.win-amd64-cpython-38
creating build\lib.win-amd64-cpython-38\aidge_backend_opencv
copying aidge_backend_opencv\__init__.py -> build\lib.win-amd64-cpython-38\aidge_backend_opencv
running egg_info
writing aidge_backend_opencv.egg-info\PKG-INFO
writing dependency_links to aidge_backend_opencv.egg-info\dependency_links.txt
writing requirements to aidge_backend_opencv.egg-info\requires.txt
writing top-level names to aidge_backend_opencv.egg-info\top_level.txt
reading manifest file 'aidge_backend_opencv.egg-info\SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'aidge_backend_opencv.egg-info\SOURCES.txt'
running build_ext
cmake C:\Users\Mission\aidge\aidge\aidge_backend_opencv -DPYTHON_EXECUTABLE=C:\Users\Mission\miniconda3\envs\env_aidge\python.exe -DTEST=OFF -DCMAKE_INSTALL_PREFIX:PATH=C:\aidge_install -DCMAKE_BUILD_TYPE=Debug
-- Project name: aidge_backend_opencv
-- Project version: 0.0.2
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
CMake Error at CMakeLists.txt:34 (find_package):
By not providing "FindOpenCV.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "OpenCV", but
CMake did not find one.
Could not find a package configuration file provided by "OpenCV" with any
of the following names:
OpenCVConfig.cmake
opencv-config.cmake
Add the installation prefix of "OpenCV" to CMAKE_PREFIX_PATH or set
"OpenCV_DIR" to a directory containing one of the above files. If "OpenCV"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
error: command 'C:\\Users\\Mission\\miniconda3\\envs\\env_aidge\\Scripts\\cmake.exe' failed with exit code 1
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: 'C:\Users\Mission\miniconda3\envs\env_aidge\python.exe' -u -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
# import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
# setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
# manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute `setup.py` since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
__file__ = %r
sys.argv[0] = __file__
if os.path.exists(__file__):
filename = __file__
with tokenize.open(__file__) as f:
setup_py_code = f.read()
else:
filename = "<auto-generated setuptools caller>"
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'C:\\Users\\Mission\\aidge\\aidge\\aidge_backend_opencv\\setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' bdist_wheel -d 'C:\Users\Mission\AppData\Local\Temp\pip-wheel-7e55ipbm'
cwd: C:\Users\Mission\aidge\aidge\aidge_backend_opencv\
Building wheel for aidge_backend_opencv (setup.py) ... error
ERROR: Failed building wheel for aidge_backend_opencv
Running setup.py clean for aidge_backend_opencv
Running command python setup.py clean
running clean
removing 'build\lib.win-amd64-cpython-38' (and everything under it)
'build\bdist.win-amd64' does not exist -- can't clean it
'build\scripts-3.8' does not exist -- can't clean it
Failed to build aidge_backend_opencv
ERROR: Could not build wheels for aidge_backend_opencv, which is required to install pyproject.toml-based projects