luxonis / depthai-python

DepthAI Python Library
MIT License
362 stars 192 forks source link

Checksum mismatch #541

Open nlbutts opened 2 years ago

nlbutts commented 2 years ago

I pulled the latest code and tried to run the build_module.sh file. It runs the cmake build system and then tries to download some file which fails with a checksum mismatch.

I'm running Ubuntu 20.04.4 LTS:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.4 LTS"
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.4 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Steps to reproduce: 1) git clone --recursive https://github.com/luxonis/depthai-python.git 2) cd depthai-python 3) ./build_modules.sh

The output of build_modules.sh is as follows:

-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Setting build type to 'Debug' as none was specified.
-- Using toolchain file: /home/nlbutts/projects/depthai-python/build/depthai-core/generated/toolchain.cmake
-- Found Git: /usr/bin/git (found version "2.25.1") 
-- [hunter] Calculating Toolchain-SHA1
-- [hunter] Calculating Config-SHA1
-- [hunter] HUNTER_ROOT: /home/nlbutts/.hunter
-- [hunter] [ Hunter-ID: 9b4e732 | Toolchain-ID: a3a48bb | Config-ID: 4460244 ]
-- [hunter] NLOHMANN_JSON_ROOT: /home/nlbutts/.hunter/_Base/9b4e732/a3a48bb/4460244/Install (ver.: 3.9.1)
-- [hunter] XLINK_ROOT: /home/nlbutts/.hunter/_Base/9b4e732/a3a48bb/4460244/Install (ver.: luxonis-2021.4.2-develop)
-- [hunter] BZIP2_ROOT: /home/nlbutts/.hunter/_Base/9b4e732/a3a48bb/4460244/Install (ver.: 1.0.8-p0)
-- [hunter] FP16_ROOT: /home/nlbutts/.hunter/_Base/9b4e732/a3a48bb/4460244/Install (ver.: luxonis-0.0.0)
-- [hunter] LIBARCHIVE-LUXONIS_ROOT: /home/nlbutts/.hunter/_Base/9b4e732/a3a48bb/4460244/Install (ver.: 3.4.2-p2)
-- [hunter] SPDLOG_ROOT: /home/nlbutts/.hunter/_Base/9b4e732/a3a48bb/4460244/Install (ver.: 1.8.2)
-- [hunter] ZLIB_ROOT: /home/nlbutts/.hunter/_Base/9b4e732/a3a48bb/4460244/Install (ver.: 1.2.11-p2)
-- [hunter] BACKWARD_ROOT: /home/nlbutts/.hunter/_Base/9b4e732/a3a48bb/4460244/Install (ver.: 1.6)
-- [hunter] LIBNOP_ROOT: /home/nlbutts/.hunter/_Base/9b4e732/a3a48bb/4460244/Install (ver.: 1.0-ec8f75a)
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Could NOT find libdw (missing: LIBDW_LIBRARY LIBDW_INCLUDE_DIR) 
-- Could NOT find libbfd (missing: LIBBFD_LIBRARY LIBBFD_INCLUDE_DIR) 
-- Could NOT find libdwarf (missing: LIBDWARF_LIBRARY LIBDWARF_INCLUDE_DIR LIBELF_LIBRARY LIBELF_INCLUDE_DIR) 
-- Found Backward: /home/nlbutts/.hunter/_Base/9b4e732/a3a48bb/4460244/Install/lib/backward  
-- Found nlohmann_json: /home/nlbutts/.hunter/_Base/9b4e732/a3a48bb/4460244/Install/lib/cmake/nlohmann_json/nlohmann_jsonConfig.cmake (found suitable version "3.9.1", minimum required is "3.9.0") 
-- Performing Test FLAG_-Wall
-- Performing Test FLAG_-Wall - Success
-- Performing Test FLAG_-Wextra
-- Performing Test FLAG_-Wextra - Success
-- Performing Test FLAG_-Woverloaded-virtual
-- Performing Test FLAG_-Woverloaded-virtual - Success
-- Performing Test FLAG_-Wformat=2
-- Performing Test FLAG_-Wformat=2 - Success
-- Performing Test FLAG_-Wmisleading-indentation
-- Performing Test FLAG_-Wmisleading-indentation - Success
-- Performing Test FLAG_-Wduplicated-cond
-- Performing Test FLAG_-Wduplicated-cond - Success
-- Performing Test FLAG_-Wduplicated-branches
-- Performing Test FLAG_-Wduplicated-branches - Success
-- Performing Test FLAG_-Wnull-dereference
-- Performing Test FLAG_-Wnull-dereference - Success
-- Performing Test FLAG_-Wdouble-promotion
-- Performing Test FLAG_-Wdouble-promotion - Success
-- Performing Test FLAG_-Wsign-compare
-- Performing Test FLAG_-Wsign-compare - Success
-- Performing Test FLAG_-Wtype-limits
-- Performing Test FLAG_-Wtype-limits - Success
-- Performing Test FLAG_-Werror=self-assign-field
-- Performing Test FLAG_-Werror=self-assign-field - Failed
-- Performing Test FLAG_-Werror=unused-lambda-capture
-- Performing Test FLAG_-Werror=unused-lambda-capture - Failed
-- Performing Test FLAG_-Werror=return-type
-- Performing Test FLAG_-Werror=return-type - Success
-- Performing Test FLAG_-Werror=non-virtual-dtor
-- Performing Test FLAG_-Werror=non-virtual-dtor - Success
-- Performing Test FLAG_-Werror=sign-compare
-- Performing Test FLAG_-Werror=sign-compare - Success
-- Performing Test FLAG_-Werror=reorder
-- Performing Test FLAG_-Werror=reorder - Success
-- Performing Test FLAG_-Werror=switch-enum
-- Performing Test FLAG_-Werror=switch-enum - Success
-- Compiling depthai-core resources in PATCH_ONLY mode
-- Downloading Depthai device side binaries from server...
-- Downloading depthai and patch
-- commit: 2e3dbf75ce469e677002dae4e99223ad49d79b42
-- [download 13% complete]
-- [download 47% complete]
-- [download 55% complete]
-- [download 100% complete]
-- Downloaded file checksum mismatch: b94f4a64acb84b2e029a1cb81aaa39cbf90f8d8c6f5ca90bc45154344716ab37 != {_file_checksum}
-- [download 13% complete]
-- [download 47% complete]
-- [download 55% complete]
-- [download 100% complete]
-- Downloaded file checksum mismatch: b94f4a64acb84b2e029a1cb81aaa39cbf90f8d8c6f5ca90bc45154344716ab37 != {_file_checksum}
-- [download 13% complete]
-- [download 47% complete]
-- [download 55% complete]
-- [download 100% complete]
-- Downloaded file checksum mismatch: b94f4a64acb84b2e029a1cb81aaa39cbf90f8d8c6f5ca90bc45154344716ab37 != {_file_checksum}
-- [download 13% complete]
-- [download 47% complete]
-- [download 55% complete]
-- [download 100% complete]
-- Downloaded file checksum mismatch: b94f4a64acb84b2e029a1cb81aaa39cbf90f8d8c6f5ca90bc45154344716ab37 != {_file_checksum}
-- [download 13% complete]
-- [download 47% complete]
-- [download 55% complete]
-- [download 100% complete]
-- Downloaded file checksum mismatch: b94f4a64acb84b2e029a1cb81aaa39cbf90f8d8c6f5ca90bc45154344716ab37 != {_file_checksum}
-- Couldn't check if depthai-shared codebase matches between device and host
-- Downloading and checking depthai-device-fwp.tar.xz
-- [download 13% complete]
-- [download 47% complete]
-- [download 55% complete]
-- [download 100% complete]
-- Downloaded file checksum mismatch: b94f4a64acb84b2e029a1cb81aaa39cbf90f8d8c6f5ca90bc45154344716ab37 != {_file_checksum}
-- [download 13% complete]
-- [download 47% complete]
-- [download 55% complete]
-- [download 100% complete]
-- Downloaded file checksum mismatch: b94f4a64acb84b2e029a1cb81aaa39cbf90f8d8c6f5ca90bc45154344716ab37 != {_file_checksum}
-- [download 13% complete]
-- [download 47% complete]
-- [download 55% complete]
-- [download 100% complete]
-- Downloaded file checksum mismatch: b94f4a64acb84b2e029a1cb81aaa39cbf90f8d8c6f5ca90bc45154344716ab37 != {_file_checksum}
-- [download 13% complete]
-- [download 47% complete]
-- [download 55% complete]
-- [download 100% complete]
-- Downloaded file checksum mismatch: b94f4a64acb84b2e029a1cb81aaa39cbf90f8d8c6f5ca90bc45154344716ab37 != {_file_checksum}
-- [download 13% complete]
-- [download 47% complete]
-- [download 55% complete]
-- [download 100% complete]
-- Downloaded file checksum mismatch: b94f4a64acb84b2e029a1cb81aaa39cbf90f8d8c6f5ca90bc45154344716ab37 != {_file_checksum}
-- 
Couldn't download depthai-device-fwp.tar.xz

-- Couldn't retrieve files correctly, checksum mismatch.
CMake Error at depthai-core/cmake/DepthaiDownloader.cmake:223 (message):
  Aborting.

Call Stack (most recent call first):
  depthai-core/CMakeLists.txt:314 (DepthaiDownload)

-- Configuring incomplete, errors occurred!
See also "/home/nlbutts/projects/depthai-python/build/CMakeFiles/CMakeOutput.log".
See also "/home/nlbutts/projects/depthai-python/build/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found.  Stop.
themarpe commented 2 years ago

@nlbutts can you try removing the build/ directory and retry?