Installation error - The dependency target "pycaffe" of target "pytest" does not exist.

2,939 views
Skip to first unread message

Kyler

unread,
Jan 6, 2017, 7:48:54 PM1/6/17
to Caffe Users
Using Windows 10.  Have CUDA 8, cuDNN, Python 2.7 Anaconda.
When executing scripts/build_win.cmd, it downloads and churns for a while, then gives the following error...

The system cannot find the drive specified.
INFO: ============================================================
INFO: Summary:
INFO: ============================================================
INFO: MSVC_VERSION               = 14
INFO: WITH_NINJA                 = 0
INFO: CMAKE_GENERATOR            = "Visual Studio 14 2015 Win64"
INFO: CPU_ONLY                   = 0
INFO: CMAKE_CONFIG               = Release
INFO: CMAKE_BUILD_SHARED_LIBS    = 1
INFO: BUILD_PYTHON               = 1
INFO: BUILD_PYTHON_LAYER         = 1
INFO: BUILD_MATLAB               = 0
INFO: PYTHON_EXE                 = "python"
INFO: RUN_TESTS                  = 1
INFO: RUN_LINT                   = 1
INFO: RUN_INSTALL                = 1
INFO: ============================================================
WARNING: Disabling tests with shared library build
INFO: Downloading dependencies
Downloading dependencies (libraries_v140_x64_py27_1.0.1.tar.bz2). Please wait...
...100%, 143 MB, 6666 KB/s, 22 seconds passed
Done.
Extracting dependencies. Please wait...
Done.
loading initial cache file C:\Users\kyler\utilities\caffe\build\libraries\caffe-builder-config.cmake
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning at CMakeLists.txt:63 (message):
  Some tests (solvers) will fail when building as a shared library with MSVC

-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Boost version: 1.61.0
-- Found the following Boost libraries:
--   system
--   thread
--   filesystem
--   chrono
--   date_time
--   atomic
-- Found GFlags: C:/Users/kyler/utilities/caffe/build/libraries/include
-- Found gflags  (include: C:/Users/kyler/utilities/caffe/build/libraries/include, library: gflags_shared)
-- Found Glog: C:/Users/kyler/utilities/caffe/build/libraries/include
-- Found glog    (include: C:/Users/kyler/utilities/caffe/build/libraries/include, library: glog)
-- Found Protobuf: C:/Users/kyler/utilities/caffe/build/libraries/bin/protoc.exe (found version "3.1.0")
-- Found PROTOBUF Compiler: C:/Users/kyler/utilities/caffe/build/libraries/bin/protoc.exe
-- Found LMDB: C:/Users/kyler/utilities/caffe/build/libraries/include
-- Found lmdb    (include: C:/Users/kyler/utilities/caffe/build/libraries/include, library: lmdb)
-- Found LevelDB: C:/Users/kyler/utilities/caffe/build/libraries/include
-- Found LevelDB (include: C:/Users/kyler/utilities/caffe/build/libraries/include, library: leveldb)
-- Found ZLIB: optimized;C:/Users/kyler/utilities/caffe/build/libraries/lib/caffezlib.lib;debug;C:/Users/kyler/utilities/caffe/build/libraries/lib/caffezlibd.lib (found version "1.2.8")
-- Found Snappy: C:/Users/kyler/utilities/caffe/build/libraries/include
-- Found Snappy  (include: C:/Users/kyler/utilities/caffe/build/libraries/include, library: snappy_static;optimized;C:/Users/kyler/utilities/caffe/build/libraries/lib/caffezlib.lib;debug;C:/Users/kyler/utilities/caffe/build/libraries/lib/caffezlibd.lib)
-- CUDA detected: 8.0
-- Found cuDNN: ver. 5.1.5 found (include: C:/Program Files/NVIDIA GPU Computing Toolkit/cuDNN/cuda/include, library: C:/Program Files/NVIDIA GPU Computing Toolkit/cuDNN/cuda/lib/x64/cudnn.lib)
-- Added CUDA NVCC flags for: sm_52
-- OpenCV found (C:/Users/kyler/utilities/caffe/build/libraries)
-- Found OpenBLAS libraries: C:/Users/kyler/utilities/caffe/build/libraries/lib/libopenblas.dll.a
-- Found OpenBLAS include: C:/Users/kyler/utilities/caffe/build/libraries/include
-- Found PythonInterp: C:/Python27/python.exe (found suitable version "2.7.12", minimum required is "2.7")
-- Found PythonLibs: C:/Python27/libs/python27.lib (found suitable version "2.7.12", minimum required is "2.7")
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named numpy
-- Could NOT find NumPy (missing:  NUMPY_INCLUDE_DIR NUMPY_VERSION) (Required is at least version "1.7.1")
-- Boost version: 1.61.0
-- Found the following Boost libraries:
--   python
-- Python interface is disabled or not all required dependencies found. Building without it...
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.8.0.windows.1")
--
-- ******************* Caffe Configuration Summary *******************
-- General:
--   Version           :   1.0.0-rc3
--   Git               :   rc3-347-g3d1f43d-dirty
--   System            :   Windows
--   C++ compiler      :   C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
--   Release CXX flags :   /MD /O2 /Ob2 /DNDEBUG /DWIN32 /D_WINDOWS /W3 /GR /EHsc
--   Debug CXX flags   :   /D_DEBUG /MDd /Zi /Ob0 /Od /RTC1 /DWIN32 /D_WINDOWS /W3 /GR /EHsc
--   Build type        :   Release
--
--   BUILD_SHARED_LIBS :   1
--   BUILD_python      :   1
--   BUILD_matlab      :
--   BUILD_docs        :
--   CPU_ONLY          :   0
--   USE_OPENCV        :   ON
--   USE_LEVELDB       :   ON
--   USE_LMDB          :   ON
--   ALLOW_LMDB_NOLOCK :   OFF
--
-- Dependencies:
--   BLAS              :   Yes (Open)
--   Boost             :   Yes (ver. 1.61)
--   glog              :   Yes
--   gflags            :   Yes
--   protobuf          :   Yes (ver. 3.1.0)
--   lmdb              :   Yes (ver. 0.9.70)
--   LevelDB           :   Yes (ver. 1.18)
--   Snappy            :   Yes (ver. 1.1.1)
--   OpenCV            :   Yes (ver. 3.1.0)
--   CUDA              :   Yes (ver. 8.0)
--
-- NVIDIA CUDA:
--   Target GPU(s)     :   Auto
--   GPU arch(s)       :   sm_52
--   cuDNN             :   Yes (ver. 5.1.5)
--
-- Install:
--   Install path      :   C:/Users/kyler/utilities/caffe/build/install
--
-- Configuring done
CMake Error at CMakeLists.txt:116 (add_dependencies):
  The dependency target "pycaffe" of target "pytest" does not exist.

-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:
    BUILD_python_layer

-- Build files have been written to: C:/Users/kyler/utilities/caffe/build
ERROR: Configure failed
Message has been deleted

twu...@aucklanduni.ac.nz

unread,
Jan 9, 2017, 2:19:31 AM1/9/17
to Caffe Users
I'm getting the same error, running on windows 10 as well, with Python 2.7 Anaconda. 

Have you managed to find a fix for this? Any help will be appreciated, thanks 

Guillaume Dumont

unread,
Jan 9, 2017, 6:34:00 AM1/9/17
to Caffe Users
Try installing numpy.

You have an error here:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named numpy
-- Could NOT find NumPy (missing:  NUMPY_INCLUDE_DIR NUMPY_VERSION) (Required is at least version "1.7.1")
Reply all
Reply to author
Forward
0 new messages