DeepGraphLearning / graphvite

GraphVite: A General and High-performance Graph Embedding System
https://graphvite.io
Apache License 2.0
1.22k stars 151 forks source link

installation error : Solving environment #47

Closed almugabo closed 4 years ago

almugabo commented 4 years ago

I am having hard time installing graphive. I am on ubuntu 19.10 nvcc -V | grep -Po "(?<=V)\d+.\d+" gives (correctly) 10.1

but the following command fails:

conda install -c milagraph graphvite-mini cudatoolkit=$(nvcc -V | grep -Po "(?<=V)\d+.\d+")

any idea what I am doing wrong ?

here the output: Collecting package metadata (repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Solving environment: / Found conflicts! Looking for incompatible packages. This can take several minutes. Press CTRL-C to abort. failed

and the error report:

>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

Traceback (most recent call last):
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/cli/install.py", line 265, in install
    should_retry_solve=(_should_retry_unfrozen or repodata_fn != repodata_fns[-1]),
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 117, in solve_for_transaction
    should_retry_solve)
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 158, in solve_for_diff
    force_remove, should_retry_solve)
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 281, in solve_final_state
    ssc = self._run_sat(ssc)
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/common/io.py", line 88, in decorated
    return f(*args, **kwds)
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 808, in _run_sat
    should_retry_solve=ssc.should_retry_solve
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/common/io.py", line 88, in decorated
    return f(*args, **kwds)
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/resolve.py", line 1316, in solve
    raise UnsatisfiableError({})
conda.exceptions.UnsatisfiableError: 
Did not find conflicting dependencies. If you would like to know which
packages conflict ensure that you have enabled unsatisfiable hints.

conda config --set unsatisfiable_hints True

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/exceptions.py", line 1079, in __call__
    return func(*args, **kwargs)
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/cli/main.py", line 84, in _main
    exit_code = do_call(args, p)
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/cli/conda_argparse.py", line 82, in do_call
    return getattr(module, func_name)(args, parser)
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/cli/main_install.py", line 20, in execute
    install(args, parser, 'install')
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/cli/install.py", line 299, in install
    should_retry_solve=(repodata_fn != repodata_fns[-1]),
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 117, in solve_for_transaction
    should_retry_solve)
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 158, in solve_for_diff
    force_remove, should_retry_solve)
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 275, in solve_final_state
    ssc = self._add_specs(ssc)
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/core/solve.py", line 694, in _add_specs
    ssc.r.find_conflicts(spec_set)
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/resolve.py", line 347, in find_conflicts
    bad_deps = self.build_conflict_map(specs, specs_to_add, history_specs)
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/resolve.py", line 507, in build_conflict_map
    root, search_node, dep_graph, num_occurances)
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/resolve.py", line 369, in breadth_first_search_for_dep_graph
    last_spec = MatchSpec.union((path[-1], target_paths[-1][-1]))[0]
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/models/match_spec.py", line 481, in union
    return cls.merge(match_specs, union=True)
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/models/match_spec.py", line 475, in merge
    reduce(lambda x, y: x._merge(y, union), group) if len(group) > 1 else group[0]
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/models/match_spec.py", line 475, in <lambda>
    reduce(lambda x, y: x._merge(y, union), group) if len(group) > 1 else group[0]
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/models/match_spec.py", line 502, in _merge
    final = this_component.union(that_component)
  File "/home/mike/anaconda3/lib/python3.7/site-packages/conda/models/match_spec.py", line 764, in union
    return '|'.join(options)
TypeError: sequence item 0: expected str instance, Channel found

$ /home/mike/anaconda3/bin/conda install -c milagraph graphvite-mini cudatoolkit=10.1

environment variables: CIO_TEST= CONDA_DEFAULT_ENV=base CONDA_EXE=/home/mike/anaconda3/bin/conda CONDA_PREFIX=/home/mike/anaconda3 CONDA_PROMPT_MODIFIER=(base) CONDA_PYTHON_EXE=/home/mike/anaconda3/bin/python CONDA_ROOT=/home/mike/anaconda3 CONDA_SHLVL=1 LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda-10.1/lib64: PATH=/home/mike/anaconda3/bin:/usr/local/cuda/bin:/usr/local/cuda-10.1/bin: /home/mike/anaconda3/bin:/home/mike/anaconda3/condabin:/usr/local/sbin :/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/ga mes:/snap/bin:/usr/local/cuda/bin REQUESTS_CA_BUNDLE= SSL_CERT_FILE= WINDOWPATH=2

 active environment : base
active env location : /home/mike/anaconda3
        shell level : 1
   user config file : /home/mike/.condarc

populated config files : conda version : 4.8.2 conda-build version : 3.18.9 python version : 3.7.6.final.0 virtual packages : cuda=10.2 glibc=2.30 base environment : /home/mike/anaconda3 (writable) channel URLs : https://conda.anaconda.org/milagraph/linux-64 https://conda.anaconda.org/milagraph/noarch https://repo.anaconda.com/pkgs/main/linux-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/linux-64 https://repo.anaconda.com/pkgs/r/noarch package cache : /home/mike/anaconda3/pkgs /home/mike/.conda/pkgs envs directories : /home/mike/anaconda3/envs /home/mike/.conda/envs platform : linux-64 user-agent : conda/4.8.2 requests/2.22.0 CPython/3.7.6 Linux/5.3.0-40-generic ubuntu/19.10 glibc/2.30 UID:GID : 1000:1000 netrc file : None offline mode : False

An unexpected error has occurred. Conda has prepared the above report.

If submitted, this report will be used by core maintainers to improve future releases of conda. Would you like conda to send this report to the core maintainers?

[y/N]: Timeout reached. No report sent.

AlexMRuch commented 4 years ago

I'm getting this too -- very frustrating. Happens even in a new env with no other libraries installed :-(

Here's my printout:

(seabiscuit) amruch@wit:~$ conda install -c milagraph graphvite cudatoolkit=$(nvcc -V | grep -Po "(?<=V)\d+\.\d+")
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: | 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                                                                                               

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/cli/install.py", line 265, in install
        should_retry_solve=(_should_retry_unfrozen or repodata_fn != repodata_fns[-1]),
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 117, in solve_for_transaction
        should_retry_solve)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 158, in solve_for_diff
        force_remove, should_retry_solve)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 281, in solve_final_state
        ssc = self._run_sat(ssc)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/common/io.py", line 88, in decorated
        return f(*args, **kwds)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 808, in _run_sat
        should_retry_solve=ssc.should_retry_solve
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/common/io.py", line 88, in decorated
        return f(*args, **kwds)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/resolve.py", line 1316, in solve
        raise UnsatisfiableError({})
    conda.exceptions.UnsatisfiableError: 
    Did not find conflicting dependencies. If you would like to know which
    packages conflict ensure that you have enabled unsatisfiable hints.

    conda config --set unsatisfiable_hints True

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 1079, in __call__
        return func(*args, **kwargs)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/cli/main.py", line 84, in _main
        exit_code = do_call(args, p)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/cli/conda_argparse.py", line 82, in do_call
        return getattr(module, func_name)(args, parser)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/cli/main_install.py", line 20, in execute
        install(args, parser, 'install')
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/cli/install.py", line 299, in install
        should_retry_solve=(repodata_fn != repodata_fns[-1]),
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 117, in solve_for_transaction
        should_retry_solve)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 158, in solve_for_diff
        force_remove, should_retry_solve)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 275, in solve_final_state
        ssc = self._add_specs(ssc)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 694, in _add_specs
        ssc.r.find_conflicts(spec_set)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/resolve.py", line 347, in find_conflicts
        bad_deps = self.build_conflict_map(specs, specs_to_add, history_specs)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/resolve.py", line 507, in build_conflict_map
        root, search_node, dep_graph, num_occurances)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/resolve.py", line 369, in breadth_first_search_for_dep_graph
        last_spec = MatchSpec.union((path[-1], target_paths[-1][-1]))[0]
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/models/match_spec.py", line 481, in union
        return cls.merge(match_specs, union=True)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/models/match_spec.py", line 475, in merge
        reduce(lambda x, y: x._merge(y, union), group) if len(group) > 1 else group[0]
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/models/match_spec.py", line 475, in <lambda>
        reduce(lambda x, y: x._merge(y, union), group) if len(group) > 1 else group[0]
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/models/match_spec.py", line 502, in _merge
        final = this_component.union(that_component)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/models/match_spec.py", line 764, in union
        return '|'.join(options)
    TypeError: sequence item 0: expected str instance, Channel found

`$ /home/amruch/anaconda3/bin/conda install -c milagraph graphvite cudatoolkit=9.0`

  environment variables:
                 CIO_TEST=<not set>
        CONDA_DEFAULT_ENV=seabiscuit
                CONDA_EXE=/home/amruch/anaconda3/bin/conda
             CONDA_PREFIX=/home/amruch/anaconda3/envs/seabiscuit
    CONDA_PROMPT_MODIFIER=(seabiscuit)
         CONDA_PYTHON_EXE=/home/amruch/anaconda3/bin/python
               CONDA_ROOT=/home/amruch/anaconda3
              CONDA_SHLVL=1
          LD_LIBRARY_PATH=/usr/local/nccl-2.3:/usr/local/cuda-9.0:/usr/local/nccl-2.3:/usr/local
                          /cuda:/usr/local/cuda-9.0/lib64::/usr/local/cuda/lib64:
                     PATH=/home/amruch/anaconda3/bin:/home/amruch/anaconda3/envs/seabiscuit/bin:
                          /home/amruch/.cargo/bin:/usr/local/cuda-9.0/bin:/usr/local/cuda/bin:/h
                          ome/amruch/anaconda3/bin:/home/amruch/anaconda3/bin:/home/amruch/anaco
                          nda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:
                          /bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/cuda/bin:/usr/lo
                          cal/cuda-9.0/bin
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : seabiscuit
    active env location : /home/amruch/anaconda3/envs/seabiscuit
            shell level : 1
       user config file : /home/amruch/.condarc
 populated config files : /home/amruch/.condarc
          conda version : 4.8.2
    conda-build version : 3.16.2
         python version : 3.6.7.final.0
       virtual packages : __cuda=9.2
                          __glibc=2.27
       base environment : /home/amruch/anaconda3  (writable)
           channel URLs : https://conda.anaconda.org/milagraph/linux-64
                          https://conda.anaconda.org/milagraph/noarch
                          https://conda.anaconda.org/pkgw-forge/linux-64
                          https://conda.anaconda.org/pkgw-forge/noarch
                          https://conda.anaconda.org/ostrokach-forge/linux-64
                          https://conda.anaconda.org/ostrokach-forge/noarch
                          https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/amruch/anaconda3/pkgs
                          /home/amruch/.conda/pkgs
       envs directories : /home/amruch/anaconda3/envs
                          /home/amruch/.conda/envs
               platform : linux-64
             user-agent : conda/4.8.2 requests/2.20.0 CPython/3.6.7 Linux/4.15.0-88-generic ubuntu/18.04.4 glibc/2.27
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

An unexpected error has occurred. Conda has prepared the above report.

If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?

[y/N]: 
Timeout reached. No report sent.
AlexMRuch commented 4 years ago

For what it's worth, instal from source also failed:

(seabiscuit) amruch@wit:~/graphvite$ cd build && cmake .. && make && cd -
-- The CXX compiler identification is GNU 7.3.0
-- The CUDA compiler identification is NVIDIA 9.0.176
-- Check for working CXX compiler: /home/amruch/anaconda3/envs/seabiscuit/bin/x86_64-conda_cos6-linux-gnu-c++
-- Check for working CXX compiler: /home/amruch/anaconda3/envs/seabiscuit/bin/x86_64-conda_cos6-linux-gnu-c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working CUDA compiler: /usr/local/cuda-9.0/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda-9.0/bin/nvcc -- works
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Looking for C++ include pthread.h
-- Looking for C++ include 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  
-- Found CUDA: /usr/local/cuda-9.0 (found version "9.0") 
-- Found Glog: /home/amruch/anaconda3/envs/seabiscuit/include  
-- Found glog    (include: /home/amruch/anaconda3/envs/seabiscuit/include, library: /home/amruch/anaconda3/envs/seabiscuit/lib/libglog.so)
-- Found GFlags: /home/amruch/anaconda3/envs/seabiscuit/include  
-- Found gflags  (include: /home/amruch/anaconda3/envs/seabiscuit/include, library: /home/amruch/anaconda3/envs/seabiscuit/lib/libgflags.so)
-- Found PythonInterp: /home/amruch/anaconda3/envs/seabiscuit/bin/python (found version "3.6.7") 
-- Found PythonLibs: /home/amruch/anaconda3/envs/seabiscuit/lib/libpython3.6m.so
-- Performing Test HAS_CPP14_FLAG
-- Performing Test HAS_CPP14_FLAG - Success
-- Autodetected CUDA architecture(s):  6.1 6.1
-- Configuring done
-- Generating done
-- Build files have been written to: /home/amruch/graphvite/build
Scanning dependencies of target faiss
[ 10%] Creating directories for 'faiss'
[ 20%] Performing download step (git clone) for 'faiss'
Cloning into 'faiss'...
Already on 'master'
Your branch is up to date with 'origin/master'.
[ 30%] No patch step for 'faiss'
[ 40%] Skipping update step for 'faiss'
[ 50%] Performing configure step for 'faiss'
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether /home/amruch/anaconda3/envs/seabiscuit/bin/x86_64-conda_cos6-linux-gnu-c++ accepts -g... yes
checking whether /home/amruch/anaconda3/envs/seabiscuit/bin/x86_64-conda_cos6-linux-gnu-c++ supports C++11 features with -std=c++11... yes
checking for gcc... /home/amruch/anaconda3/envs/seabiscuit/bin/x86_64-conda_cos6-linux-gnu-cc
checking whether we are using the GNU C compiler... yes
checking whether /home/amruch/anaconda3/envs/seabiscuit/bin/x86_64-conda_cos6-linux-gnu-cc accepts -g... yes
checking for /home/amruch/anaconda3/envs/seabiscuit/bin/x86_64-conda_cos6-linux-gnu-cc option to accept ISO C89... none needed
checking how to run the C preprocessor... /home/amruch/anaconda3/envs/seabiscuit/bin/x86_64-conda_cos6-linux-gnu-cpp
checking whether make sets $(MAKE)... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for python... python
checking for Python C flags... -I/home/amruch/anaconda3/envs/seabiscuit/include/python3.6m -I/home/amruch/anaconda3/envs/seabiscuit/include/python3.6m
checking for numpy headers path... /home/amruch/.local/lib/python3.6/site-packages/numpy/core/include
checking for swig... no
checking how to run the C++ preprocessor... /home/amruch/anaconda3/envs/seabiscuit/bin/x86_64-conda_cos6-linux-gnu-c++ -std=c++11 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for nvcc... /usr/local/cuda-9.0/bin/nvcc
checking cuda.h usability... yes
checking cuda.h presence... yes
checking for cuda.h... yes
checking for cublasAlloc in -lcublas... yes
checking for cudaSetDevice in -lcudart... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... no
checking for _Bool... no
checking for inline... inline
checking for int32_t... yes
checking for int64_t... yes
checking for C/C++ restrict keyword... __restrict
checking for size_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for clock_gettime... no
checking for floor... yes
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for munmap... yes
checking for pow... yes
checking for sqrt... yes
checking for strerror... yes
checking for strstr... yes
checking for /home/amruch/anaconda3/envs/seabiscuit/bin/x86_64-conda_cos6-linux-gnu-c++ -std=c++11 option to support OpenMP... -fopenmp
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking if sgemm_ is being linked in already... no
checking for sgemm_ in -lmkl_intel_lp64... yes
checking for cheev_... yes
checking target system type... x86_64-pc-linux-gnu
checking for cpu arch... x86_64-pc-linux-gnu CPUFLAGS+="-mpopcnt -msse4" CXXFLAGS+="-m64"
configure: creating ./config.status
config.status: creating makefile.inc
[ 60%] Performing build step for 'faiss'
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
cc1plus: fatal error: cuda_runtime.h: No such file or directory
Makefile:45: recipe for target 'gpu/utils/DeviceUtils.o' failed
compilation terminated.
make[3]: *** [gpu/utils/DeviceUtils.o] Error 1
make[3]: *** Waiting for unfinished jobs....
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectHalf64.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectHalf64.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
cc1plus: fatal error: cuda_runtime.h: No such file or directory
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
compilation terminated.
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
compilation terminated.
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectFloat128.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectFloat128.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectHalfF1024.o' failed
cc1plus: fatal error: cuda_runtime.h: No such file or directory
make[3]: *** [gpu/utils/blockselect/BlockSelectHalfF1024.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectFloatF2048.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectFloatF2048.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/GpuIndexIVFFlat.o' failed
make[3]: *** [gpu/GpuIndexIVFFlat.o] Error 1
Makefile:45: recipe for target 'gpu/GpuDistance.o' failed
make[3]: *** [gpu/GpuDistance.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
compilation terminated.
Makefile:45: recipe for target 'gpu/impl/L2Norm.o' failed
make[3]: *** [gpu/impl/L2Norm.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/impl/IVFAppend.o' failed
make[3]: *** [gpu/impl/IVFAppend.o] Error 1
Makefile:45: recipe for target 'gpu/impl/BinaryDistance.o' failed
make[3]: *** [gpu/impl/BinaryDistance.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/impl/BroadcastSum.o' failed
make[3]: *** [gpu/impl/BroadcastSum.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/impl/L2Select.o' failed
make[3]: *** [gpu/impl/L2Select.o] Error 1
Makefile:45: recipe for target 'gpu/GpuIndexIVF.o' failed
make[3]: *** [gpu/GpuIndexIVF.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/utils/Float16.o' failed
make[3]: *** [gpu/utils/Float16.o] Error 1
Makefile:45: recipe for target 'gpu/impl/IVFUtils.o' failed
make[3]: *** [gpu/impl/IVFUtils.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectHalfF512.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectHalfF512.o] Error 1
Makefile:45: recipe for target 'gpu/GpuIndexBinaryFlat.o' failed
make[3]: *** [gpu/GpuIndexBinaryFlat.o] Error 1
Makefile:45: recipe for target 'gpu/utils/BlockSelectFloat.o' failed
make[3]: *** [gpu/utils/BlockSelectFloat.o] Error 1
Makefile:45: recipe for target 'gpu/GpuIndexFlat.o' failed
make[3]: *** [gpu/GpuIndexFlat.o] Error 1
Makefile:45: recipe for target 'gpu/utils/BlockSelectHalf.o' failed
make[3]: *** [gpu/utils/BlockSelectHalf.o] Error 1
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectFloat128.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectFloat128.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectHalf256.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectHalf256.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectHalf1.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectHalf1.o] Error 1
Makefile:45: recipe for target 'gpu/utils/MatrixMult.o' failed
make[3]: *** [gpu/utils/MatrixMult.o] Error 1
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectFloatT1024.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectFloatT1024.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/impl/PQScanMultiPassNoPrecomputed.o' failed
make[3]: *** [gpu/impl/PQScanMultiPassNoPrecomputed.o] Error 1
Makefile:45: recipe for target 'gpu/utils/WarpSelectHalf.o' failed
make[3]: *** [gpu/utils/WarpSelectHalf.o] Error 1
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectFloatF512.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectFloatF512.o] Error 1
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectHalfT1024.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectHalfT1024.o] Error 1
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectFloat1.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectFloat1.o] Error 1
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectHalf1.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectHalf1.o] Error 1
Makefile:45: recipe for target 'gpu/utils/WarpSelectFloat.o' failed
make[3]: *** [gpu/utils/WarpSelectFloat.o] Error 1
Makefile:45: recipe for target 'gpu/GpuIndexIVFPQ.o' failed
make[3]: *** [gpu/GpuIndexIVFPQ.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectFloatT2048.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectFloatT2048.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectHalf256.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectHalf256.o] Error 1
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectHalf32.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectHalf32.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/impl/IVFFlat.o' failed
make[3]: *** [gpu/impl/IVFFlat.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectHalfF2048.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectHalfF2048.o] Error 1
Makefile:45: recipe for target 'gpu/impl/IVFUtilsSelect1.o' failed
make[3]: *** [gpu/impl/IVFUtilsSelect1.o] Error 1
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectFloatT2048.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectFloatT2048.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectHalfT2048.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectHalfT2048.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/impl/IVFPQ.o' failed
make[3]: *** [gpu/impl/IVFPQ.o] Error 1
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectHalfT512.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectHalfT512.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
compilation terminated.
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectFloatT512.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectFloatT512.o] Error 1
Makefile:45: recipe for target 'gpu/impl/FlatIndex.o' failed
make[3]: *** [gpu/impl/FlatIndex.o] Error 1
Makefile:45: recipe for target 'gpu/impl/VectorResidual.o' failed
make[3]: *** [gpu/impl/VectorResidual.o] Error 1
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectHalf32.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectHalf32.o] Error 1
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectFloat32.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectFloat32.o] Error 1
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectFloatT1024.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectFloatT1024.o] Error 1
Makefile:45: recipe for target 'gpu/impl/PQCodeDistances.o' failed
make[3]: *** [gpu/impl/PQCodeDistances.o] Error 1
Makefile:45: recipe for target 'gpu/impl/BinaryFlatIndex.o' failed
make[3]: *** [gpu/impl/BinaryFlatIndex.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectFloatT512.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectFloatT512.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectFloat1.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectFloat1.o] Error 1
compilation terminated.
Makefile:45: recipe for target 'gpu/impl/IVFFlatScan.o' failed
make[3]: *** [gpu/impl/IVFFlatScan.o] Error 1
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectFloat64.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectFloat64.o] Error 1
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectHalfF512.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectHalfF512.o] Error 1
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectFloatF2048.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectFloatF2048.o] Error 1
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectFloatF1024.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectFloatF1024.o] Error 1
Makefile:45: recipe for target 'gpu/impl/IVFBase.o' failed
make[3]: *** [gpu/impl/IVFBase.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/impl/PQScanMultiPassPrecomputed.o' failed
make[3]: *** [gpu/impl/PQScanMultiPassPrecomputed.o] Error 1
Makefile:45: recipe for target 'gpu/impl/IVFUtilsSelect2.o' failed
make[3]: *** [gpu/impl/IVFUtilsSelect2.o] Error 1
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectHalf128.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectHalf128.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectHalfF2048.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectHalfF2048.o] Error 1
Makefile:45: recipe for target 'gpu/utils/nvidia/fp16_emu.o' failed
make[3]: *** [gpu/utils/nvidia/fp16_emu.o] Error 1
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectHalfT512.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectHalfT512.o] Error 1
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectFloat32.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectFloat32.o] Error 1
Makefile:45: recipe for target 'gpu/GpuIndex.o' failed
make[3]: *** [gpu/GpuIndex.o] Error 1
Makefile:45: recipe for target 'gpu/GpuIndexIVFScalarQuantizer.o' failed
make[3]: *** [gpu/GpuIndexIVFScalarQuantizer.o] Error 1
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectFloat256.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectFloat256.o] Error 1
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectFloatF512.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectFloatF512.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/impl/Distance.o' failed
make[3]: *** [gpu/impl/Distance.o] Error 1
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectFloatF1024.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectFloatF1024.o] Error 1
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectHalfF1024.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectHalfF1024.o] Error 1
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectHalfT1024.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectHalfT1024.o] Error 1
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectHalf128.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectHalf128.o] Error 1
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectHalfT2048.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectHalfT2048.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectFloat64.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectFloat64.o] Error 1
Makefile:45: recipe for target 'gpu/utils/warpselect/WarpSelectHalf64.o' failed
make[3]: *** [gpu/utils/warpselect/WarpSelectHalf64.o] Error 1
cc1plus: fatal error: cuda_runtime.h: No such file or directory
compilation terminated.
Makefile:45: recipe for target 'gpu/utils/blockselect/BlockSelectFloat256.o' failed
make[3]: *** [gpu/utils/blockselect/BlockSelectFloat256.o] Error 1
CMakeFiles/faiss.dir/build.make:106: recipe for target 'faiss/src/faiss-stamp/faiss-build' failed
make[2]: *** [faiss/src/faiss-stamp/faiss-build] Error 2
CMakeFiles/Makefile2:95: recipe for target 'CMakeFiles/faiss.dir/all' failed
make[1]: *** [CMakeFiles/faiss.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
AlexMRuch commented 4 years ago

My error is most likely from the fact that I have CUDA 9.0 :-( But Just wanted to share that info anyways

almugabo commented 4 years ago

I have cuda 10.1 and is working properly otherwise. my understanding - after trying installation from source as well - is that the problem is FAISS. I tried also to install it separately but without success :-)

KiddoZhu commented 4 years ago

For conda installation, could you try with both channels -c milagraph -c conda-forge?

For source installation, GraphVite requires CUDA 9.2, since nvcc below 9.2 doesn't compile the C++ source very well. You may refer to this reply to disable FAISS in the compilation.

AlexMRuch commented 4 years ago

So after updating to CUDA 10.1, I still get this error:

conda install -c milagraph graphvite cudatoolkit=$(nvcc -V | grep -Po "(?<=V)\d+\.\d+")
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: | 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                                                        

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/cli/install.py", line 265, in install
        should_retry_solve=(_should_retry_unfrozen or repodata_fn != repodata_fns[-1]),
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 117, in solve_for_transaction
        should_retry_solve)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 158, in solve_for_diff
        force_remove, should_retry_solve)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 281, in solve_final_state
        ssc = self._run_sat(ssc)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/common/io.py", line 88, in decorated
        return f(*args, **kwds)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 808, in _run_sat
        should_retry_solve=ssc.should_retry_solve
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/common/io.py", line 88, in decorated
        return f(*args, **kwds)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/resolve.py", line 1316, in solve
        raise UnsatisfiableError({})
    conda.exceptions.UnsatisfiableError: 
    Did not find conflicting dependencies. If you would like to know which
    packages conflict ensure that you have enabled unsatisfiable hints.

    conda config --set unsatisfiable_hints True

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 1079, in __call__
        return func(*args, **kwargs)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/cli/main.py", line 84, in _main
        exit_code = do_call(args, p)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/cli/conda_argparse.py", line 82, in do_call
        return getattr(module, func_name)(args, parser)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/cli/main_install.py", line 20, in execute
        install(args, parser, 'install')
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/cli/install.py", line 299, in install
        should_retry_solve=(repodata_fn != repodata_fns[-1]),
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 117, in solve_for_transaction
        should_retry_solve)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 158, in solve_for_diff
        force_remove, should_retry_solve)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 275, in solve_final_state
        ssc = self._add_specs(ssc)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 694, in _add_specs
        ssc.r.find_conflicts(spec_set)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/resolve.py", line 347, in find_conflicts
        bad_deps = self.build_conflict_map(specs, specs_to_add, history_specs)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/resolve.py", line 507, in build_conflict_map
        root, search_node, dep_graph, num_occurances)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/resolve.py", line 369, in breadth_first_search_for_dep_graph
        last_spec = MatchSpec.union((path[-1], target_paths[-1][-1]))[0]
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/models/match_spec.py", line 481, in union
        return cls.merge(match_specs, union=True)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/models/match_spec.py", line 475, in merge
        reduce(lambda x, y: x._merge(y, union), group) if len(group) > 1 else group[0]
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/models/match_spec.py", line 475, in <lambda>
        reduce(lambda x, y: x._merge(y, union), group) if len(group) > 1 else group[0]
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/models/match_spec.py", line 502, in _merge
        final = this_component.union(that_component)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/models/match_spec.py", line 764, in union
        return '|'.join(options)
    TypeError: sequence item 0: expected str instance, Channel found

`$ /home/amruch/anaconda3/bin/conda install -c milagraph graphvite cudatoolkit=9.0`

  environment variables:
                 CIO_TEST=<not set>
        CONDA_DEFAULT_ENV=dgl
                CONDA_EXE=/home/amruch/anaconda3/bin/conda
             CONDA_PREFIX=/home/amruch/anaconda3/envs/dgl
    CONDA_PROMPT_MODIFIER=(dgl)
         CONDA_PYTHON_EXE=/home/amruch/anaconda3/bin/python
               CONDA_ROOT=/home/amruch/anaconda3
              CONDA_SHLVL=1
          LD_LIBRARY_PATH=/usr/local/nccl-2.3:/usr/local/cuda-9.0:/usr/local/nccl-2.3:/usr/local
                          /cuda:/usr/local/cuda-9.0/lib64::/usr/local/cuda/lib64:
                     PATH=/home/amruch/anaconda3/bin:/home/amruch/anaconda3/envs/dgl/bin:/home/a
                          mruch/.cargo/bin:/usr/local/cuda-9.0/bin:/usr/local/cuda/bin:/home/amr
                          uch/anaconda3/bin:/home/amruch/anaconda3/bin:/home/amruch/anaconda3/co
                          ndabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/u
                          sr/games:/usr/local/games:/snap/bin:/usr/local/cuda/bin:/usr/local/cud
                          a-9.0/bin
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : dgl
    active env location : /home/amruch/anaconda3/envs/dgl
            shell level : 1
       user config file : /home/amruch/.condarc
 populated config files : /home/amruch/.condarc
          conda version : 4.8.2
    conda-build version : 3.16.2
         python version : 3.6.7.final.0
       virtual packages : __cuda=10.1
                          __glibc=2.27
       base environment : /home/amruch/anaconda3  (writable)
           channel URLs : https://conda.anaconda.org/milagraph/linux-64
                          https://conda.anaconda.org/milagraph/noarch
                          https://conda.anaconda.org/pkgw-forge/linux-64
                          https://conda.anaconda.org/pkgw-forge/noarch
                          https://conda.anaconda.org/ostrokach-forge/linux-64
                          https://conda.anaconda.org/ostrokach-forge/noarch
                          https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/amruch/anaconda3/pkgs
                          /home/amruch/.conda/pkgs
       envs directories : /home/amruch/anaconda3/envs
                          /home/amruch/.conda/envs
               platform : linux-64
             user-agent : conda/4.8.2 requests/2.20.0 CPython/3.6.7 Linux/4.15.0-88-generic ubuntu/18.04.4 glibc/2.27
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

An unexpected error has occurred. Conda has prepared the above report.

If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?

[y/N]: y
Upload successful.

Thank you for helping to improve conda.
Opt-in to always sending reports (and not see this message again)
by running

    $ conda config --set report_errors true

Running with both channels, -c milagraph -c conda-forge, also fails:

conda install -c milagraph -c conda-forge graphvite cudatoolkit=$(nvcc -V | grep -Po "(?<=V)\d+\.\d+")
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: | 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                                                        

# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<

    Traceback (most recent call last):
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/cli/install.py", line 265, in install
        should_retry_solve=(_should_retry_unfrozen or repodata_fn != repodata_fns[-1]),
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 117, in solve_for_transaction
        should_retry_solve)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 158, in solve_for_diff
        force_remove, should_retry_solve)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 281, in solve_final_state
        ssc = self._run_sat(ssc)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/common/io.py", line 88, in decorated
        return f(*args, **kwds)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 808, in _run_sat
        should_retry_solve=ssc.should_retry_solve
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/common/io.py", line 88, in decorated
        return f(*args, **kwds)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/resolve.py", line 1316, in solve
        raise UnsatisfiableError({})
    conda.exceptions.UnsatisfiableError: 
    Did not find conflicting dependencies. If you would like to know which
    packages conflict ensure that you have enabled unsatisfiable hints.

    conda config --set unsatisfiable_hints True

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 1079, in __call__
        return func(*args, **kwargs)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/cli/main.py", line 84, in _main
        exit_code = do_call(args, p)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/cli/conda_argparse.py", line 82, in do_call
        return getattr(module, func_name)(args, parser)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/cli/main_install.py", line 20, in execute
        install(args, parser, 'install')
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/cli/install.py", line 299, in install
        should_retry_solve=(repodata_fn != repodata_fns[-1]),
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 117, in solve_for_transaction
        should_retry_solve)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 158, in solve_for_diff
        force_remove, should_retry_solve)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 275, in solve_final_state
        ssc = self._add_specs(ssc)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/core/solve.py", line 694, in _add_specs
        ssc.r.find_conflicts(spec_set)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/resolve.py", line 347, in find_conflicts
        bad_deps = self.build_conflict_map(specs, specs_to_add, history_specs)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/resolve.py", line 507, in build_conflict_map
        root, search_node, dep_graph, num_occurances)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/resolve.py", line 369, in breadth_first_search_for_dep_graph
        last_spec = MatchSpec.union((path[-1], target_paths[-1][-1]))[0]
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/models/match_spec.py", line 481, in union
        return cls.merge(match_specs, union=True)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/models/match_spec.py", line 475, in merge
        reduce(lambda x, y: x._merge(y, union), group) if len(group) > 1 else group[0]
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/models/match_spec.py", line 475, in <lambda>
        reduce(lambda x, y: x._merge(y, union), group) if len(group) > 1 else group[0]
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/models/match_spec.py", line 502, in _merge
        final = this_component.union(that_component)
      File "/home/amruch/anaconda3/lib/python3.6/site-packages/conda/models/match_spec.py", line 764, in union
        return '|'.join(options)
    TypeError: sequence item 0: expected str instance, Channel found

`$ /home/amruch/anaconda3/bin/conda install -c milagraph -c conda-forge graphvite cudatoolkit=9.0`

  environment variables:
                 CIO_TEST=<not set>
        CONDA_DEFAULT_ENV=dgl
                CONDA_EXE=/home/amruch/anaconda3/bin/conda
             CONDA_PREFIX=/home/amruch/anaconda3/envs/dgl
    CONDA_PROMPT_MODIFIER=(dgl)
         CONDA_PYTHON_EXE=/home/amruch/anaconda3/bin/python
               CONDA_ROOT=/home/amruch/anaconda3
              CONDA_SHLVL=1
          LD_LIBRARY_PATH=/usr/local/nccl-2.3:/usr/local/cuda-9.0:/usr/local/nccl-2.3:/usr/local
                          /cuda:/usr/local/cuda-9.0/lib64::/usr/local/cuda/lib64:
                     PATH=/home/amruch/anaconda3/bin:/home/amruch/anaconda3/envs/dgl/bin:/home/a
                          mruch/.cargo/bin:/usr/local/cuda-9.0/bin:/usr/local/cuda/bin:/home/amr
                          uch/anaconda3/bin:/home/amruch/anaconda3/bin:/home/amruch/anaconda3/co
                          ndabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/u
                          sr/games:/usr/local/games:/snap/bin:/usr/local/cuda/bin:/usr/local/cud
                          a-9.0/bin
       REQUESTS_CA_BUNDLE=<not set>
            SSL_CERT_FILE=<not set>

     active environment : dgl
    active env location : /home/amruch/anaconda3/envs/dgl
            shell level : 1
       user config file : /home/amruch/.condarc
 populated config files : /home/amruch/.condarc
          conda version : 4.8.2
    conda-build version : 3.16.2
         python version : 3.6.7.final.0
       virtual packages : __cuda=10.1
                          __glibc=2.27
       base environment : /home/amruch/anaconda3  (writable)
           channel URLs : https://conda.anaconda.org/milagraph/linux-64
                          https://conda.anaconda.org/milagraph/noarch
                          https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://conda.anaconda.org/pkgw-forge/linux-64
                          https://conda.anaconda.org/pkgw-forge/noarch
                          https://conda.anaconda.org/ostrokach-forge/linux-64
                          https://conda.anaconda.org/ostrokach-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/amruch/anaconda3/pkgs
                          /home/amruch/.conda/pkgs
       envs directories : /home/amruch/anaconda3/envs
                          /home/amruch/.conda/envs
               platform : linux-64
             user-agent : conda/4.8.2 requests/2.20.0 CPython/3.6.7 Linux/4.15.0-88-generic ubuntu/18.04.4 glibc/2.27
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

An unexpected error has occurred. Conda has prepared the above report.

If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?

[y/N]: y
Upload successful.

Thank you for helping to improve conda.
Opt-in to always sending reports (and not see this message again)
by running

    $ conda config --set report_errors true

Does your comment above, @KiddoZhu, mean that I need CUDA 9.2 exactly and that 10.1 won't work?

AlexMRuch commented 4 years ago

Just wanted to throw in that this continues to fail when I create a new python environment with nothing in it and run conda install -c milagraph graphvite cudatoolkit=$(nvcc -V | grep -Po "(?<=V)\d+\.\d+") and conda install -c milagraph -c conda-forge graphvite cudatoolkit=$(nvcc -V | grep -Po "(?<=V)\d+\.\d+") as the first install commands, so it's not because of python-related conflicts (I believe). Also, when doing this, the install finds dependency conflicts right off the bat, so there may be internal dependency conflicts with the install recipe:

Solving environment: failed with initial frozen solve. Retrying with flexible solve.
KiddoZhu commented 4 years ago

I guess the reason is that we only have CUDA 10.0 in conda, since anaconda just supported CUDA 10.1 very recently. We are working on the release of GraphVite with CUDA 10.1.

KiddoZhu commented 4 years ago

@AlexMRuch CUDA 10.1 is supported in GraphVite 0.2.2

AlexMRuch commented 4 years ago

Woohoo! Got it to work. Thank so much, @KiddoZhu!