Skip to content
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

pip install -r requirements.txt failing #18

Closed
Akicita33 opened this issue Jan 28, 2023 · 15 comments
Closed

pip install -r requirements.txt failing #18

Akicita33 opened this issue Jan 28, 2023 · 15 comments

Comments

@Akicita33
Copy link

I have looked at the closed issues and followed the instructions you left there, but I am still failing to get requirements.txt to install.

2023-01-27 20_28_11-Environment Variables

I have defined the path per the instructions you posted for another user.

2023-01-27 20_29_04-Environment Variables

Here is a screenshot of the path for verification.

2023-01-27 20_29_32-Python311

I would appreciate it very much if you could help me get this figured out. Excited to use you bot.

Thank you!

@AdriaGual
Copy link
Owner

It says that you don't have installed pip, here are a bunch of things to check:
Check that the command python --version works.
If you have recently installed python, make sure to restart the system in order to apply the environment variables changes.
I use python 3.8 instead of 3.11, that can also be a problem.

If you don't find it working, this is a general error so you should find plenty of answers on google.

Hope it helps!

@Akicita33
Copy link
Author

Akicita33 commented Jan 28, 2023

I got it to recognize pip and start installing the requirements.txt and this is what I get. Thank you for the great advice!

C:\Users\Terry\marvel-snap-bot>pip install -r requirements.txt
Collecting numpy==1.21.0 (from -r requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/df/22/b74e5cedeef1e3f108c986bd0b75600997d8b25def334a68f08d372db523/numpy-1.21.0-cp38-cp38-win_amd64.whl
Collecting opencv_python==4.6.0.66 (from -r requirements.txt (line 2))
Using cached https://files.pythonhosted.org/packages/7a/1c/e57fe138615c29b8d1442009057dd420c58d4773cb16112e914c9e7b47d8/opencv-python-4.6.0.66.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Building wheels for collected packages: opencv-python
Building wheel for opencv-python (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\terry\appdata\local\programs\python\python38\python.exe' 'c:\users\terry\appdata\local\programs\python\python38\lib\site-packages\pip_vendor\pep517_in_process.py' build_wheel 'C:\Users\Terry\AppData\Local\Temp\tmpgf895hrn'
cwd: C:\Users\Terry\AppData\Local\Temp\pip-install-f0s9gijs\opencv-python
Complete output (814 lines):


-- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator






--
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Generator

  Ninja

does not support platform specification, but platform

  x64

was specified.

-- Configuring incomplete, errors occurred!
See also "C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".







-- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator - failure


-- Trying 'Visual Studio 17 2022 x64 v143' generator






--
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Generator

  Visual Studio 17 2022

could not find any instance of Visual Studio.

-- Configuring incomplete, errors occurred!
See also "C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".







-- Trying 'Visual Studio 17 2022 x64 v143' generator - failure


-- Trying 'Ninja (Visual Studio 16 2019 x64 v142)' generator






--
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Generator

  Ninja

does not support platform specification, but platform

  x64

was specified.

-- Configuring incomplete, errors occurred!
See also "C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".







-- Trying 'Ninja (Visual Studio 16 2019 x64 v142)' generator - failure


-- Trying 'Visual Studio 16 2019 x64 v142' generator






--
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Generator

  Visual Studio 16 2019

could not find any instance of Visual Studio.

-- Configuring incomplete, errors occurred!
See also "C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".







-- Trying 'Visual Studio 16 2019 x64 v142' generator - failure


-- Trying 'Ninja (Visual Studio 15 2017 x64 v141)' generator






--
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Generator

  Ninja

does not support platform specification, but platform

  x64

was specified.

-- Configuring incomplete, errors occurred!
See also "C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".







-- Trying 'Ninja (Visual Studio 15 2017 x64 v141)' generator - failure


-- Trying 'Visual Studio 15 2017 x64 v141' generator






--
Not searching for unused variables given on the command line.
-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.22621.
-- The C compiler identification is MSVC 19.16.27048.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is MSVC 19.16.27048.0
CMake Warning (dev) at C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CMakeDetermineCXXCompiler.cmake:162 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW.  Since the policy is not set the OLD behavior will be used.

Call Stack (most recent call first):
CMakeLists.txt:4 (ENABLE_LANGUAGE)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CMakeDetermineCXXCompiler.cmake:183 (elseif):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW.  Since the policy is not set the OLD behavior will be used.

Call Stack (most recent call first):
CMakeLists.txt:4 (ENABLE_LANGUAGE)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_cmake_test_compile/build







-- Trying 'Visual Studio 15 2017 x64 v141' generator - success

Configuring Project
Working directory:
C:\Users\Terry\AppData\Local\Temp\pip-install-f0s9gijs\opencv-python_skbuild\win-amd64-3.8\cmake-build
Command:
'C:\Users\Terry\AppData\Local\Temp\pip-build-env-i4r5wyu_\overlay\Lib\site-packages\cmake\data\bin/cmake.exe' 'C:\Users\Terry\AppData\Local\Temp\pip-install-f0s9gijs\opencv-python\opencv' -G 'Visual Studio 15 2017' '-DCMAKE_INSTALL_PREFIX:PATH=C:\Users\Terry\AppData\Local\Temp\pip-install-f0s9gijs\opencv-python_skbuild\win-amd64-3.8\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.8.0 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\Terry\AppData\Local\Temp\pip-build-env-i4r5wyu_\overlay\Lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=c:\users\terry\appdata\local\programs\python\python38\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=c:\users\terry\appdata\local\programs\python\python38\Include' '-DPYTHON_LIBRARY:PATH=c:\users\terry\appdata\local\programs\python\python38\libs\python38.lib' '-DPython_EXECUTABLE:PATH=c:\users\terry\appdata\local\programs\python\python38\python.exe' '-DPython_ROOT_DIR:PATH=c:\users\terry\appdata\local\programs\python\python38' '-DPython_INCLUDE_DIR:PATH=c:\users\terry\appdata\local\programs\python\python38\Include' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_NumPy_INCLUDE_DIRS:PATH=C:\Users\Terry\AppData\Local\Temp\pip-build-env-i4r5wyu_\overlay\Lib\site-packages\numpy\core\include' '-DPython3_EXECUTABLE:PATH=c:\users\terry\appdata\local\programs\python\python38\python.exe' '-DPython3_ROOT_DIR:PATH=c:\users\terry\appdata\local\programs\python\python38' '-DPython3_INCLUDE_DIR:PATH=c:\users\terry\appdata\local\programs\python\python38\Include' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_NumPy_INCLUDE_DIRS:PATH=C:\Users\Terry\AppData\Local\Temp\pip-build-env-i4r5wyu_\overlay\Lib\site-packages\numpy\core\include' -T v141 -A x64 '-DPYTHON3_EXECUTABLE=c:\users\terry\appdata\local\programs\python\python38\python.exe' -DPYTHON3_INCLUDE_DIR=c:/users/terry/appdata/local/programs/python/python38/Include -DPYTHON3_LIBRARY=c:/users/terry/appdata/local/programs/python/python38/libs/python38.lib -DBUILD_opencv_python3=ON -DBUILD_opencv_python2=OFF -DBUILD_opencv_java=OFF -DOPENCV_PYTHON3_INSTALL_PATH=python -DINSTALL_CREATE_DISTRIB=ON -DBUILD_opencv_apps=OFF -DBUILD_opencv_freetype=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_DOCS=OFF -DPYTHON3_LIMITED_API=ON -DBUILD_OPENEXR=ON -DCMAKE_GENERATOR_PLATFORM=x64 -DCMAKE_BUILD_TYPE:STRING=Release

-- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.22621.
-- The CXX compiler identification is MSVC 19.16.27048.0
-- The C compiler identification is MSVC 19.16.27048.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- ocv_init_download: OpenCV source tree is not fetched as git repository. 3rdparty resources will be downloaded from github.com by default.
-- Detected processor: AMD64
-- Found PythonInterp: c:/users/terry/appdata/local/programs/python/python38/python.exe (found suitable version "3.8", minimum required is "2.7")
CMake Warning at cmake/OpenCVDetectPython.cmake:81 (message):
CMake's 'find_host_package(PythonInterp 2.7)' found wrong Python version:

PYTHON_EXECUTABLE=c:/users/terry/appdata/local/programs/python/python38/python.exe


PYTHON_VERSION_STRING=3.8

Consider providing the 'PYTHON2_EXECUTABLE' variable via CMake command line
or environment variables

Call Stack (most recent call first):
cmake/OpenCVDetectPython.cmake:271 (find_python)
CMakeLists.txt:628 (include)

-- Could NOT find Python2 (missing: Python2_EXECUTABLE Interpreter)
Reason given by package:
Interpreter: Wrong major version for the interpreter "C:/Users/Terry/AppData/Local/Programs/Python/Python38/python.exe"

-- Found PythonInterp: c:\users\terry\appdata\local\programs\python\python38\python.exe (found suitable version "3.8", minimum required is "3.2")
-- Found PythonLibs: c:/users/terry/appdata/local/programs/python/python38/libs/python38.lib (found suitable exact version "3.8.0")
-- Performing Test HAVE_CXX_FP:PRECISE
-- Performing Test HAVE_CXX_FP:PRECISE - Success
-- Performing Test HAVE_C_FP:PRECISE
-- Performing Test HAVE_C_FP:PRECISE - Success
-- Performing Test HAVE_CPU_SSE3_SUPPORT (check file: cmake/checks/cpu_sse3.cpp)
-- Performing Test HAVE_CPU_SSE3_SUPPORT - Success
-- Performing Test HAVE_CPU_SSSE3_SUPPORT (check file: cmake/checks/cpu_ssse3.cpp)
-- Performing Test HAVE_CPU_SSSE3_SUPPORT - Success
-- Performing Test HAVE_CPU_SSE4_1_SUPPORT (check file: cmake/checks/cpu_sse41.cpp)
-- Performing Test HAVE_CPU_SSE4_1_SUPPORT - Success
-- Performing Test HAVE_CPU_POPCNT_SUPPORT (check file: cmake/checks/cpu_popcnt.cpp)
-- Performing Test HAVE_CPU_POPCNT_SUPPORT - Success
-- Performing Test HAVE_CPU_SSE4_2_SUPPORT (check file: cmake/checks/cpu_sse42.cpp)
-- Performing Test HAVE_CPU_SSE4_2_SUPPORT - Success
-- Performing Test HAVE_CXX_ARCH:AVX (check file: cmake/checks/cpu_fp16.cpp)
-- Performing Test HAVE_CXX_ARCH:AVX - Success
-- Performing Test HAVE_CXX_ARCH:AVX2 (check file: cmake/checks/cpu_avx2.cpp)
-- Performing Test HAVE_CXX_ARCH:AVX2 - Success
-- Performing Test HAVE_CXX_ARCH:AVX512 (check file: cmake/checks/cpu_avx512.cpp)
-- Performing Test HAVE_CXX_ARCH:AVX512 - Success
-- Performing Test HAVE_CPU_BASELINE_FLAGS
-- Performing Test HAVE_CPU_BASELINE_FLAGS - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX - Success
-- Performing Test HAVE_CXX_W15240
-- Performing Test HAVE_CXX_W15240 - Success
-- Performing Test HAVE_C_W15240
-- Performing Test HAVE_C_W15240 - Success
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for _aligned_malloc
-- Looking for aligned_malloc - found
-- Looking for fseeko
-- Looking for fseeko - not found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of off64_t
-- Check size of off64_t - failed
-- libjpeg-turbo: VERSION = 2.1.2, BUILD = opencv-4.6.0-libjpeg-turbo
-- Check size of size_t
CMake Error at C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu
/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
Cannot copy output executable

  ''

to destination specified by COPY_FILE:

  'C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CheckTypeSize/SIZEOF_SIZE_T.bin'

Recorded try_compile output location doesn't exist:

  C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CMakeScratch/TryCompile-vtgjx6/Debug/cmTC_8a683.exe

Call Stack (most recent call first):
C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
3rdparty/libjpeg-turbo/CMakeLists.txt:25 (check_type_size)

-- Check size of unsigned long
CMake Error at C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
Cannot copy output executable

  ''

to destination specified by COPY_FILE:

  'C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CheckTypeSize/SIZEOF_UNSIGNED_LONG.bin'

Recorded try_compile output location doesn't exist:

  C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CMakeScratch/TryCompile-8adiq2/Debug/cmTC_398a2.exe

Call Stack (most recent call first):
C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
3rdparty/libjpeg-turbo/CMakeLists.txt:26 (check_type_size)

-- Looking for include file intrin.h
-- Looking for include file intrin.h - found
-- Looking for assert.h
-- Looking for assert.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for io.h
-- Looking for io.h - found
-- Looking for limits.h
-- Looking for limits.h - found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for search.h
-- Looking for search.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Performing Test C_HAS_inline
-- Performing Test C_HAS_inline - Success
-- Check size of signed short
CMake Error at C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
Cannot copy output executable

  ''

to destination specified by COPY_FILE:

  'C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CheckTypeSize/SIZEOF_SIGNED_SHORT.bin'

Recorded try_compile output location doesn't exist:

  C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CMakeScratch/TryCompile-0dxby1/Debug/cmTC_86c6e.exe

Call Stack (most recent call first):
C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
3rdparty/libtiff/CMakeLists.txt:64 (check_type_size)

-- Check size of unsigned short
CMake Error at C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
Cannot copy output executable

  ''

to destination specified by COPY_FILE:

  'C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CheckTypeSize/SIZEOF_UNSIGNED_SHORT.bin'

Recorded try_compile output location doesn't exist:

  C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CMakeScratch/TryCompile-2rm3jn/Debug/cmTC_765d8.exe

Call Stack (most recent call first):
C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
3rdparty/libtiff/CMakeLists.txt:65 (check_type_size)

-- Check size of signed int
CMake Error at C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
Cannot copy output executable

  ''

to destination specified by COPY_FILE:

  'C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CheckTypeSize/SIZEOF_SIGNED_INT.bin'

Recorded try_compile output location doesn't exist:

  C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CMakeScratch/TryCompile-3yl4f1/Debug/cmTC_c1e31.exe

Call Stack (most recent call first):
C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
3rdparty/libtiff/CMakeLists.txt:66 (check_type_size)

-- Check size of unsigned int
CMake Error at C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
Cannot copy output executable

  ''

to destination specified by COPY_FILE:

  'C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CheckTypeSize/SIZEOF_UNSIGNED_INT.bin'

Recorded try_compile output location doesn't exist:

  C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CMakeScratch/TryCompile-f61181/Debug/cmTC_1545f.exe

Call Stack (most recent call first):
C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
3rdparty/libtiff/CMakeLists.txt:67 (check_type_size)

-- Check size of signed long
CMake Error at C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
Cannot copy output executable

  ''

to destination specified by COPY_FILE:

  'C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CheckTypeSize/SIZEOF_SIGNED_LONG.bin'

Recorded try_compile output location doesn't exist:

  C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CMakeScratch/TryCompile-n7bgo7/Debug/cmTC_bd204.exe

Call Stack (most recent call first):
C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
3rdparty/libtiff/CMakeLists.txt:68 (check_type_size)

-- Check size of signed long long
CMake Error at C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
Cannot copy output executable

  ''

to destination specified by COPY_FILE:

  'C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CheckTypeSize/SIZEOF_SIGNED_LONG_LONG.bin'

Recorded try_compile output location doesn't exist:

  C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CMakeScratch/TryCompile-itxivz/Debug/cmTC_32db1.exe

Call Stack (most recent call first):
C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
3rdparty/libtiff/CMakeLists.txt:70 (check_type_size)

-- Check size of unsigned long long
CMake Error at C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
Cannot copy output executable

  ''

to destination specified by COPY_FILE:

  'C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CheckTypeSize/SIZEOF_UNSIGNED_LONG_LONG.bin'

Recorded try_compile output location doesn't exist:

  C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CMakeScratch/TryCompile-z5ml2w/Debug/cmTC_36a1b.exe

Call Stack (most recent call first):
C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
3rdparty/libtiff/CMakeLists.txt:71 (check_type_size)

-- Check size of unsigned char *
CMake Error at C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
Cannot copy output executable

  ''

to destination specified by COPY_FILE:

  'C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CheckTypeSize/SIZEOF_UNSIGNED_CHAR_P.bin'

Recorded try_compile output location doesn't exist:

  C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CMakeScratch/TryCompile-97haab/Debug/cmTC_5c1f6.exe

Call Stack (most recent call first):
C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
3rdparty/libtiff/CMakeLists.txt:72 (check_type_size)

-- Check size of ptrdiff_t
CMake Error at C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:147 (try_compile):
Cannot copy output executable

  ''

to destination specified by COPY_FILE:

  'C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CheckTypeSize/SIZEOF_PTRDIFF_T.bin'

Recorded try_compile output location doesn't exist:

  C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CMakeScratch/TryCompile-lai674/Debug/cmTC_ae7e4.exe

Call Stack (most recent call first):
C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/CheckTypeSize.cmake:277 (__check_type_size_impl)
3rdparty/libtiff/CMakeLists.txt:77 (check_type_size)

-- Looking for memmove
-- Looking for memmove - not found
-- Looking for setmode
-- Looking for setmode - found
-- Looking for strcasecmp
-- Looking for strcasecmp - not found
-- Looking for strchr
-- Looking for strchr - found
-- Looking for strrchr
-- Looking for strrchr - found
-- Looking for strstr
-- Looking for strstr - found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for lfind
-- Looking for lfind - found
-- Performing Test HAVE_SNPRINTF
-- Performing Test HAVE_SNPRINTF - Success
-- Performing Test HAVE_C_STD_C99
-- Performing Test HAVE_C_STD_C99 - Failed
-- Could NOT find OpenJPEG (minimal suitable version: 2.0, recommended version >= 2.3.1). OpenJPEG will be built from sources
-- OpenJPEG: VERSION = 2.4.0, BUILD = opencv-4.6.0-openjp2-2.4.0
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for stdio.h
-- Looking for stdio.h - found
-- Looking for math.h
-- Looking for math.h - found
-- Looking for float.h
-- Looking for float.h - found
-- Looking for time.h
-- Looking for time.h - found
-- Looking for stdarg.h
-- Looking for stdarg.h - found
-- Looking for ctype.h
-- Looking for ctype.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for strings.h
-- Looking for strings.h - not found
-- Looking for sys/stat.h
-- Looking for sys/stat.h - found
-- Looking for unistd.h
-- Looking for unistd.h - not found
-- Looking for include file malloc.h
-- Looking for include file malloc.h - found
-- Looking for _aligned_malloc
-- Looking for aligned_malloc - found
-- Looking for posix_memalign
-- Looking for posix_memalign - not found
-- Looking for memalign
-- Looking for memalign - not found
-- OpenJPEG libraries will be built from sources: libopenjp2 (version "2.4.0")
-- IPPICV: Downloading ippicv_2020_win_intel64_20191018_general.zip from https://raw.githubusercontent.com/opencv/opencv_3rdparty/a56b6ac6f030c312b2dce17430eef13aed9af274/ippicv/ippicv_2020_win_intel64_20191018_general.zip
-- found Intel IPP (ICV version): 2020.0.0 [2020.0.0 Gold]
-- at: C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/skbuild/win-amd64-3.8/cmake-build/3rdparty/ippicv/ippicv_win/icv
-- found Intel IPP Integration Wrappers sources: 2020.0.0
-- at: C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/skbuild/win-amd64-3.8/cmake-build/3rdparty/ippicv/ippicv_win/iw
-- Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
-- Looking for sgemm

-- Looking for sgemm
- not found
-- Found Threads: TRUE
CMake Error at C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu
/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/FindOpenMP.cmake:420 (try_compile):
Cannot copy output executable

  ''

to destination specified by COPY_FILE:

  'C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/FindOpenMP/ompver_C.bin'

Recorded try_compile output location doesn't exist:

  C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CMakeScratch/TryCompile-89g1w5/Debug/cmTC_bcade.exe

Call Stack (most recent call first):
C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/FindOpenMP.cmake:560 (OPENMP_GET_SPEC_DATE)
C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu
/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/FindBLAS.cmake:768 (find_package)
C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/FindLAPACK.cmake:247 (find_package)
C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/cmake/data/share/cmake-3.25/Modules/FindLAPACK.cmake:283 (_lapack_find_dependency)
cmake/OpenCVFindLAPACK.cmake:176 (find_package)
CMakeLists.txt:734 (include)

-- Could NOT find BLAS (missing: BLAS_LIBRARIES)
-- Could NOT find LAPACK (missing: LAPACK_LIBRARIES)
Reason given by package: LAPACK could not be found because dependency BLAS could not be found.

-- Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 AWT JVM)
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
-- ADE: Downloading v0.1.1f.zip from https://github.com/opencv/ade/archive/v0.1.1f.zip
-- FFMPEG: Downloading opencv_videoio_ffmpeg.dll from https://raw.githubusercontent.com/opencv/opencv_3rdparty/65ec04d4573dcdfa4531f0b9e67f35d8ffff873e/ffmpeg/opencv_videoio_ffmpeg.dll
-- FFMPEG: Downloading opencv_videoio_ffmpeg_64.dll from https://raw.githubusercontent.com/opencv/opencv_3rdparty/65ec04d4573dcdfa4531f0b9e67f35d8ffff873e/ffmpeg/opencv_videoio_ffmpeg_64.dll
-- FFMPEG: Downloading ffmpeg_version.cmake from https://raw.githubusercontent.com/opencv/opencv_3rdparty/65ec04d4573dcdfa4531f0b9e67f35d8ffff873e/ffmpeg/ffmpeg_version.cmake
-- Looking for mfapi.h
-- Looking for mfapi.h - found
-- Looking for d3d11_4.h
-- Looking for d3d11_4.h - found
-- Allocator metrics storage type: 'long long'
-- Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/opencv/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
-- opencv_dnn: filter out cuda4dnn source code
-- Excluding from source files list: /modules/dnn/layers/layers_common.rvv.cpp
-- imgcodecs: OpenEXR codec is disabled in runtime. Details: opencv/opencv#21326
-- highgui: using builtin backend: WIN32UI
-- Found 'misc' Python modules from C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/opencv/modules/python/package/extra_modules
-- Found 'mat_wrapper;utils' Python modules from C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/opencv/modules/core/misc/python/package
-- Found 'gapi' Python modules from C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/opencv/modules/gapi/misc/python/package
-- Found 'misc' Python modules from C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/opencv/modules/python/package/extra_modules
-- Found 'mat_wrapper;utils' Python modules from C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/opencv/modules/core/misc/python/package
-- Found 'gapi' Python modules from C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/opencv/modules/gapi/misc/python/package

-- General configuration for OpenCV 4.6.0 =====================================
-- Version control: unknown

-- Platform:
-- Timestamp: 2023-01-28T18:01:05Z
-- Host: Windows 10.0.22621 AMD64
-- CMake: 3.25.0
-- CMake generator: Visual Studio 15 2017
-- CMake build tool: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/MSBuild/15.0/Bin/MSBuild.exe
-- MSVC: 1916
-- Configuration: Debug Release

-- CPU/HW features:
-- Baseline: SSE SSE2 SSE3
-- requested: SSE3
-- Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX
-- requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
-- SSE4_1 (16 files): + SSSE3 SSE4_1
-- SSE4_2 (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2
-- FP16 (0 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
-- AVX (4 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
-- AVX2 (31 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
-- AVX512_SKX (5 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_COMMON AVX512_SKX

-- C/C++:
-- Built as dynamic libs?: NO
-- C++ standard: 11
-- C++ Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe (ver 19.16.27048.0)
-- C++ flags (Release): /DWIN32 /D_WINDOWS /W4 /GR /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP /MT /O2 /Ob2 /DNDEBUG
-- C++ flags (Debug): /DWIN32 /D_WINDOWS /W4 /GR /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP /MTd /Zi /Ob0 /Od /RTC1
-- C Compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
-- C flags (Release): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /MP /MT /O2 /Ob2 /DNDEBUG
-- C flags (Debug): /DWIN32 /D_WINDOWS /W3 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi /fp:precise /MP /MTd /Zi /Ob0 /Od /RTC1
-- Linker flags (Release): /machine:x64 /NODEFAULTLIB:atlthunk.lib /INCREMENTAL:NO /NODEFAULTLIB:libcmtd.lib /NODEFAULTLIB:libcpmtd.lib /NODEFAULTLIB:msvcrtd.lib
-- Linker flags (Debug): /machine:x64 /NODEFAULTLIB:atlthunk.lib /debug /INCREMENTAL /NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:libcpmt.lib /NODEFAULTLIB:msvcrt.lib
-- ccache: NO
-- Precompiled headers: YES
-- Extra dependencies: wsock32 comctl32 gdi32 ole32 setupapi ws2_32
-- 3rdparty dependencies: libprotobuf ade ittnotify libjpeg-turbo libwebp libpng libtiff libopenjp2 IlmImf zlib quirc ippiw ippicv

-- OpenCV modules:
-- To be built: calib3d core dnn features2d flann gapi highgui imgcodecs imgproc ml objdetect photo python3 stitching video videoio
-- Disabled: world
-- Disabled by dependency: -
-- Unavailable: java python2 ts
-- Applications: -
-- Documentation: NO
-- Non-free algorithms: NO

-- Windows RT support: NO

-- GUI: WIN32UI
-- Win32 UI: YES
-- VTK support: NO

-- Media I/O:
-- ZLib: build (ver 1.2.12)
-- JPEG: build-libjpeg-turbo (ver 2.1.2-62)
-- WEBP: build (ver encoder: 0x020f)
-- PNG: build (ver 1.6.37)
-- TIFF: build (ver 42 - 4.2.0)
-- JPEG 2000: build (ver 2.4.0)
-- OpenEXR: build (ver 2.3.0)
-- HDR: YES
-- SUNRASTER: YES
-- PXM: YES
-- PFM: YES

-- Video I/O:
-- DC1394: NO
-- FFMPEG: YES (prebuilt binaries)
-- avcodec: YES (58.134.100)
-- avformat: YES (58.76.100)
-- avutil: YES (56.70.100)
-- swscale: YES (5.9.100)
-- avresample: YES (4.0.0)
-- GStreamer: NO
-- DirectShow: YES
-- Media Foundation: YES
-- DXVA: YES

-- Parallel framework: Concurrency

-- Trace: YES (with Intel ITT)

-- Other third-party libraries:
-- Intel IPP: 2020.0.0 Gold [2020.0.0]
-- at: C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/3rdparty/ippicv/ippicv_win/icv
-- Intel IPP IW: sources (2020.0.0)
-- at: C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-build/3rdparty/ippicv/ippicv_win/iw
-- Lapack: NO
-- Eigen: NO
-- Custom HAL: NO
-- Protobuf: build (3.19.1)

-- OpenCL: YES (NVD3D11)
-- Include path: C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/opencv/3rdparty/include/opencl/1.2
-- Link libraries: Dynamic load

-- Python 3:
-- Interpreter: C:/Users/Terry/AppData/Local/Programs/Python/Python38/python.exe (ver 3.8)
-- Libraries: c:/users/terry/appdata/local/programs/python/python38/libs/python38.lib (ver 3.8.0)
-- numpy: C:/Users/Terry/AppData/Local/Temp/pip-build-env-i4r5wyu_/overlay/Lib/site-packages/numpy/core/include (ver 1.17.3)
-- install path: python/cv2/python-3

-- Python (for build): C:/Users/Terry/AppData/Local/Programs/Python/Python38/python.exe

-- Java:
-- ant: NO
-- JNI: NO
-- Java wrappers: NO
-- Java tests: NO

-- Install to: C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/_skbuild/win-amd64-3.8/cmake-install


--
-- Configuring incomplete, errors occurred!
See also "C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Terry/AppData/Local/Temp/pip-install-f0s9gijs/opencv-python/skbuild/win-amd64-3.8/cmake-build/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "C:\Users\Terry\AppData\Local\Temp\pip-build-env-i4r5wyu
\overlay\Lib\site-packages\skbuild\setuptools_wrap.py", line 641, in setup
env = cmkr.configure(
File "C:\Users\Terry\AppData\Local\Temp\pip-build-env-i4r5wyu
\overlay\Lib\site-packages\skbuild\cmaker.py", line 337, in configure
raise SKBuildError(

An error occurred while configuring with CMake.
Command:
'C:\Users\Terry\AppData\Local\Temp\pip-build-env-i4r5wyu_\overlay\Lib\site-packages\cmake\data\bin/cmake.exe' 'C:\Users\Terry\AppData\Local\Temp\pip-install-f0s9gijs\opencv-python\opencv' -G 'Visual Studio 15 2017' '-DCMAKE_INSTALL_PREFIX:PATH=C:\Users\Terry\AppData\Local\Temp\pip-install-f0s9gijs\opencv-python_skbuild\win-amd64-3.8\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.8.0 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\Terry\AppData\Local\Temp\pip-build-env-i4r5wyu_\overlay\Lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=c:\users\terry\appdata\local\programs\python\python38\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=c:\users\terry\appdata\local\programs\python\python38\Include' '-DPYTHON_LIBRARY:PATH=c:\users\terry\appdata\local\programs\python\python38\libs\python38.lib' '-DPython_EXECUTABLE:PATH=c:\users\terry\appdata\local\programs\python\python38\python.exe' '-DPython_ROOT_DIR:PATH=c:\users\terry\appdata\local\programs\python\python38' '-DPython_INCLUDE_DIR:PATH=c:\users\terry\appdata\local\programs\python\python38\Include' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_NumPy_INCLUDE_DIRS:PATH=C:\Users\Terry\AppData\Local\Temp\pip-build-env-i4r5wyu_\overlay\Lib\site-packages\numpy\core\include' '-DPython3_EXECUTABLE:PATH=c:\users\terry\appdata\local\programs\python\python38\python.exe' '-DPython3_ROOT_DIR:PATH=c:\users\terry\appdata\local\programs\python\python38' '-DPython3_INCLUDE_DIR:PATH=c:\users\terry\appdata\local\programs\python\python38\Include' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_NumPy_INCLUDE_DIRS:PATH=C:\Users\Terry\AppData\Local\Temp\pip-build-env-i4r5wyu_\overlay\Lib\site-packages\numpy\core\include' -T v141 -A x64 '-DPYTHON3_EXECUTABLE=c:\users\terry\appdata\local\programs\python\python38\python.exe' -DPYTHON3_INCLUDE_DIR=c:/users/terry/appdata/local/programs/python/python38/Include -DPYTHON3_LIBRARY=c:/users/terry/appdata/local/programs/python/python38/libs/python38.lib -DBUILD_opencv_python3=ON -DBUILD_opencv_python2=OFF -DBUILD_opencv_java=OFF -DOPENCV_PYTHON3_INSTALL_PATH=python -DINSTALL_CREATE_DISTRIB=ON -DBUILD_opencv_apps=OFF -DBUILD_opencv_freetype=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_DOCS=OFF -DPYTHON3_LIMITED_API=ON -DBUILD_OPENEXR=ON -DCMAKE_GENERATOR_PLATFORM=x64 -DCMAKE_BUILD_TYPE:STRING=Release
Source directory:
C:\Users\Terry\AppData\Local\Temp\pip-install-f0s9gijs\opencv-python\opencv
Working directory:
C:\Users\Terry\AppData\Local\Temp\pip-install-f0s9gijs\opencv-python_skbuild\win-amd64-3.8\cmake-build
Please see CMake's output for more information.

ERROR: Failed building wheel for opencv-python
Running setup.py clean for opencv-python
Failed to build opencv-python
ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 19.2.3, however version 22.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.

C:\Users\Terry\marvel-snap-bot>

@AdriaGual
Copy link
Owner

You can install the requirements manually, it has just 2 dependencies.
pip install numpy
pip install opencv_python

@Akicita33
Copy link
Author

numpy is installing just fine fine. The problem seems to be with opencv. I'm not going to text dump on you again so here are screenshots of the the start and end of the install and I am including a doc with the full text if that helps.

Really appreciate your help. Thank you!
2023-01-29 07_48_41-Task Manager

2023-01-29 07_49_26-Task Manager
opencv_intstall_error.txt

@AdriaGual
Copy link
Owner

AdriaGual commented Jan 30, 2023

Hmm try this:
pip install --upgrade pip setuptools wheel

If it keeps giving you the error, you can manually install an older version.
pip install opencv_python==4.6.0.66

Hope it helps!

@Akicita33
Copy link
Author

Oh man! We're getting so close, I can feel it!

Upgrading pip went well, wheel installed just fine. Now when I try to start the bot I'm getting this:

C:\Users\Terry>cd marvel-snap-bot

C:\Users\Terry\marvel-snap-bot>python start.py
Traceback (most recent call last):
File "start.py", line 1, in
from utils import android_connection, global_utils
File "C:\Users\Terry\marvel-snap-bot\utils\android_connection.py", line 4, in
import config
File "C:\Users\Terry\marvel-snap-bot\config.py", line 1
adb_path = 'C:\Program Files\Nox'
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 17-18: malformed \N character escape

C:\Users\Terry\marvel-snap-bot>

@paperc07
Copy link

Come on Buddy you're so close!!! did you do the pip install opencv-contrib-python

@Akicita33
Copy link
Author

LOL, I know man. I did do the pip install opencv-contrib-python.

I did it again, just to be sure, then restarted my rig and got this:
image

@AdriaGual
Copy link
Owner

@Akicita33 Check the config.py, you must use the format that is given, pay attention to the \ since it's double, not just one.

@Akicita33
Copy link
Author

Do you see anything incorrect here? I had set these up according to others posts i found in the Solved problems area. At least I thought I did.

image

@loudonadam
Copy link

all those paths need to use '\' for each instance it is currently using ''.

@Akicita33
Copy link
Author

I don't understand. There is not one instance of " in any of those paths.

@loudonadam
Copy link

loudonadam commented Feb 1, 2023

My apologies, I must have mistyped. It should say \. You need to be using \\ in your file paths.

@Akicita33
Copy link
Author

Akicita33 commented Feb 1, 2023

Are you saying that the lines should look like this?:

adb_path = C:\Program Files\Nox\bin
project_path = C:\Users\Terry\marvel-snap-bot
images_folder = C:\Users\Terry\marvel-snap-bot\images
fields_folder = C:\Users\Terry\marvel-snap-bot\images\fields
mana_folder = C:\Users\Terry\marvel-snap-bot\images\mana
turns_folder = C:\Users\Terry\marvel-snap-bot\images\turns
data_folder = C:\Users\Terry\marvel-snap-bot\images\data
tmp_path = C:\Users\Terry\marvel-snap-bot\images\tmp
example_data_path = C:\Users\Terry\marvel-snap-bot\images\example_data

@AdriaGual
Copy link
Owner

@Akicita33
Instead of:
adb_path = C:\Program Files\Nox\bin

Do:
adb_path = C:\\Program Files\\Nox\\bin

You have to replace all the \ for \\

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

No branches or pull requests

4 participants