LEAP icon indicating copy to clipboard operation
LEAP copied to clipboard

Unable to install LEAP

Open JosephBend opened this issue 7 months ago • 5 comments

Hi, I was able to install LEAP in my laptop. I am now trying to install it in server with 2 GPUs.

I get this error after typing "pip install ." ERROR: No .egg-info directory found in C:\Users\user\AppData\Local\Temp\pip-pip-egg-info-xsgp7hn8

This command ""python setup.py install" results in this error "Running 'nmake' '?' failed with no such file or directory"

Per ChatGPT I also tried:

  • "python -m pip install --upgrade pip setuptools wheel", which run OK, but did not help.
  • I cleared the pip cache "pip cache purge"
  • I created the .egg-info dir by hand
  • I also ran as Admin

I have installed the following packages:

  • LEAP v1.26 (from zip file)
  • Anaconda with Python 3.12.7
  • Visual studio 2022 v17.14
  • cmake 4.0.2
  • Pytorch 2.7.0+cu128
  • Cuda 12.9.r12.9

Your help will be much appreciated.

Joseph

JosephBend avatar May 21 '25 20:05 JosephBend

How about making another virtual environment at your conda?

jeffhwang02 avatar May 21 '25 21:05 jeffhwang02

That helped, thank you. This is the new issue.

Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [56 lines of output]

  (LEAP) (base) C:\Users\user3\Documents\LEAP\LEAP-main\LEAP-main\win_build>cmake .. -DDEV_MODE=1
  -- Building for: NMake Makefiles
  CMake Error at CMakeLists.txt:4 (project):
    Running
     'nmake' '-?'
    failed with:
     no such file or directory

Any idea what to try next? Thank you.

JosephBend avatar May 21 '25 22:05 JosephBend

Joseph, use the following command which prints out debugging statements and send me the output.

pip install -v .

kylechampley avatar May 22 '25 13:05 kylechampley

Hi, I am having the same problem, and switching a new conda environment doesn't help, this is what I get from pip install -v .:

Processing /mnt/data_1/dlr/code/diffusion/dependency/LEAP
  Running command python setup.py egg_info
  -- The C compiler identification is GNU 10.5.0
  -- The CXX compiler identification is GNU 10.5.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /usr/bin/cc - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /usr/bin/c++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  CMake Error at /opt/cmake-3.31.5-linux-x86_64/share/cmake-3.31/Modules/CMakeDetermineCompilerId.cmake:865 (message):
    Compiling the CUDA compiler identification source file
    "CMakeCUDACompilerId.cu" failed.

    Compiler: /usr/bin/nvcc

    Build flags:

    Id flags: --keep;--keep-dir;tmp -v



    The output was:

    1

    #$ _NVVM_BRANCH_=nvvm

    #$ _SPACE_=

    #$ _CUDART_=cudart

    #$ _HERE_=/usr/lib/nvidia-cuda-toolkit/bin

    #$ _THERE_=/usr/lib/nvidia-cuda-toolkit/bin

    #$ _TARGET_SIZE_=

    #$ _TARGET_DIR_=

    #$ _TARGET_SIZE_=64

    #$ NVVMIR_LIBRARY_DIR=/usr/lib/nvidia-cuda-toolkit/libdevice

    #$
    PATH=/usr/lib/nvidia-cuda-toolkit/bin:/home/dlr/.cursor-server/cli/servers/Stable-02270c8441bdc4b2fdbc30e6f470a589ec78d600/server/bin/remote-cli:/home/dlr/anaconda3/envs/ldm/bin:/home/dlr/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/dlr/.dotnet/tools:/home/dlr/.cursor-server/cli/servers/Stable-02270c8441bdc4b2fdbc30e6f470a589ec78d600/server/bin/remote-cli:/home/dlr/anaconda3/bin:/home/dlr/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/dlr/.dotnet/tools:/home/dlr/.cursor-server/cli/servers/Stable-02270c8441bdc4b2fdbc30e6f470a589ec78d600/server/bin/remote-cli:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin


    #$ LIBRARIES= -L/usr/lib/x86_64-linux-gnu/stubs -L/usr/lib/x86_64-linux-gnu

    #$ rm tmp/a_dlink.reg.c

    #$ gcc -D__CUDA_ARCH__=520 -D__CUDA_ARCH_LIST__=520 -E -x c++
    -DCUDA_DOUBLE_MATH_FUNCTIONS -D__CUDACC__ -D__NVCC__
    -D__CUDACC_VER_MAJOR__=11 -D__CUDACC_VER_MINOR__=5
    -D__CUDACC_VER_BUILD__=119 -D__CUDA_API_VER_MAJOR__=11
    -D__CUDA_API_VER_MINOR__=5 -D__NVCC_DIAG_PRAGMA_SUPPORT__=1 -include
    "cuda_runtime.h" -m64 "CMakeCUDACompilerId.cu" -o
    "tmp/CMakeCUDACompilerId.cpp1.ii"

    #$ cicc --c++14 --gnu_version=100500 --display_error_number
    --orig_src_file_name "CMakeCUDACompilerId.cu" --orig_src_path_name
    "/mnt/data_1/dlr/code/diffusion/dependency/LEAP/build/CMakeFiles/3.31.5/CompilerIdCUDA/CMakeCUDACompilerId.cu"
    --allow_managed -arch compute_52 -m64 --no-version-ident -ftz=0 -prec_div=1
    -prec_sqrt=1 -fmad=1 --include_file_name "CMakeCUDACompilerId.fatbin.c"
    -tused --gen_module_id_file --module_id_file_name
    "tmp/CMakeCUDACompilerId.module_id" --gen_c_file_name
    "tmp/CMakeCUDACompilerId.cudafe1.c" --stub_file_name
    "tmp/CMakeCUDACompilerId.cudafe1.stub.c" --gen_device_file_name
    "tmp/CMakeCUDACompilerId.cudafe1.gpu" "tmp/CMakeCUDACompilerId.cpp1.ii" -o
    "tmp/CMakeCUDACompilerId.ptx"

    /usr/include/c++/11/bits/stl_pair.h(460): error: argument list for class
    template "std::pair" is missing



    /usr/include/c++/11/bits/stl_pair.h(460): error: expected a ")"



    /usr/include/c++/11/bits/stl_pair.h(460): error: template parameter "_T1"
    may not be redeclared in this scope



    /usr/include/c++/11/bits/stl_pair.h(460): error: expected a ";"



    4 errors detected in the compilation of "CMakeCUDACompilerId.cu".

    # --error 0x1 --





  Call Stack (most recent call first):
    /opt/cmake-3.31.5-linux-x86_64/share/cmake-3.31/Modules/CMakeDetermineCompilerId.cmake:8 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
    /opt/cmake-3.31.5-linux-x86_64/share/cmake-3.31/Modules/CMakeDetermineCompilerId.cmake:53 (__determine_compiler_id_test)
    /opt/cmake-3.31.5-linux-x86_64/share/cmake-3.31/Modules/CMakeDetermineCUDACompiler.cmake:131 (CMAKE_DETERMINE_COMPILER_ID)
    src/CMakeLists.txt:9 (project)


  -- Configuring incomplete, errors occurred!
  Failed to compile!
  Preparing metadata (setup.py) ... done
ERROR: No .egg-info directory found in /tmp/pip-pip-egg-info-z2yfc4ln```

OvO1111 avatar May 29 '25 08:05 OvO1111

Joseph, use the following command which prints out debugging statements and send me the output.

pip install -v .

I'm having the same problem, though, even when using' pip install -v'.

Benny0323 avatar Jul 17 '25 02:07 Benny0323