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

Unable to install #1264

Open
zshn25 opened this issue Mar 1, 2023 · 2 comments
Open

Unable to install #1264

zshn25 opened this issue Mar 1, 2023 · 2 comments

Comments

@zshn25
Copy link

zshn25 commented Mar 1, 2023

pip install -e . while in the cloned triton/python folder leads to the following error

Successfully built lit
Installing collected packages: filelock, lit, triton
  WARNING: The script lit is installed in '/home/zsuri/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  Running setup.py develop for triton
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/zsuri/triton/python/setup.py'"'"'; __file__='"'"'/home/zsuri/triton/python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix=
         cwd: /home/zsuri/triton/python/
    Complete output (91 lines):
    running develop
    running egg_info
    writing triton.egg-info/PKG-INFO
    writing dependency_links to triton.egg-info/dependency_links.txt
    writing requirements to triton.egg-info/requires.txt
    writing top-level names to triton.egg-info/top_level.txt
    reading manifest file 'triton.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'triton.egg-info/SOURCES.txt'
    running build_ext
    CMake Error at CMakeLists.txt:3 (cmake_policy):
      Policy "CMP0116" is not known to this version of CMake.
    
    
    -- 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
    -- Adding Python module
    -- Linker detection: GNU ld
    CMake Warning at /home/zsuri/.triton/llvm/llvm+mlir-17.0.0-x86_64-linux-gnu-ubuntu-18.04-release/lib/cmake/llvm/AddLLVM.cmake:1850 (message):
      LLVM_EXTERNAL_LIT set to /tmp/llvm-project/build/./bin/llvm-lit, but the
      path does not exist.
    Call Stack (most recent call first):
      /home/zsuri/.triton/llvm/llvm+mlir-17.0.0-x86_64-linux-gnu-ubuntu-18.04-release/lib/cmake/llvm/AddLLVM.cmake:1895 (get_llvm_lit_path)
      /home/zsuri/.triton/llvm/llvm+mlir-17.0.0-x86_64-linux-gnu-ubuntu-18.04-release/lib/cmake/llvm/AddLLVM.cmake:1985 (add_lit_target)
      test/CMakeLists.txt:19 (add_lit_testsuite)
    
    
    -- Found Python: /usr/bin/python3.9 (found version "3.9.5") found components: Interpreter
    -- 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
    -- Configuring incomplete, errors occurred!
    See also "/home/zsuri/triton/python/build/temp.linux-aarch64-cpython-38/CMakeFiles/CMakeOutput.log".
    See also "/home/zsuri/triton/python/build/temp.linux-aarch64-cpython-38/CMakeFiles/CMakeError.log".
    /usr/local/lib/python3.8/dist-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    /usr/local/lib/python3.8/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
      warnings.warn(
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/zsuri/triton/python/setup.py", line 209, in <module>
        setup(
      File "/usr/local/lib/python3.8/dist-packages/setuptools/__init__.py", line 108, in setup
        return distutils.core.setup(**attrs)
      File "/usr/local/lib/python3.8/dist-packages/setuptools/_distutils/core.py", line 185, in setup
        return run_commands(dist)
      File "/usr/local/lib/python3.8/dist-packages/setuptools/_distutils/core.py", line 201, in run_commands
        dist.run_commands()
      File "/usr/local/lib/python3.8/dist-packages/setuptools/_distutils/dist.py", line 969, in run_commands
        self.run_command(cmd)
      File "/usr/local/lib/python3.8/dist-packages/setuptools/dist.py", line 1213, in run_command
        super().run_command(command)
      File "/usr/local/lib/python3.8/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
        cmd_obj.run()
      File "/usr/local/lib/python3.8/dist-packages/setuptools/command/develop.py", line 34, in run
        self.install_for_development()
      File "/usr/local/lib/python3.8/dist-packages/setuptools/command/develop.py", line 114, in install_for_development
        self.run_command('build_ext')
      File "/usr/local/lib/python3.8/dist-packages/setuptools/_distutils/cmd.py", line 318, in run_command
        self.distribution.run_command(command)
      File "/usr/local/lib/python3.8/dist-packages/setuptools/dist.py", line 1213, in run_command
        super().run_command(command)
      File "/usr/local/lib/python3.8/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
        cmd_obj.run()
      File "/home/zsuri/triton/python/setup.py", line 158, in run
        self.build_extension(ext)
      File "/home/zsuri/triton/python/setup.py", line 203, in build_extension
        subprocess.check_call(["cmake", self.base_dir] + cmake_args, cwd=self.build_temp, env=env)
      File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['cmake', '/home/zsuri/triton', '-DLLVM_ENABLE_WERROR=ON', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/zsuri/triton/python/triton/_C', '-DTRITON_BUILD_TUTORIALS=OFF', '-DTRITON_BUILD_PYTHON_MODULE=ON', '-DPython3_EXECUTABLE:FILEPATH=/usr/bin/python3', '-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON', '-DPYTHON_INCLUDE_DIRS=/usr/include/python3.8', '-DPYBIND11_INCLUDE_DIR=/home/zsuri/.triton/pybind11/pybind11-2.10.0/include', '-DLLVM_INCLUDE_DIRS=/home/zsuri/.triton/llvm/llvm+mlir-17.0.0-x86_64-linux-gnu-ubuntu-18.04-release/include', '-DLLVM_LIBRARY_DIR=/home/zsuri/.triton/llvm/llvm+mlir-17.0.0-x86_64-linux-gnu-ubuntu-18.04-release/lib', '-DCMAKE_BUILD_TYPE=TritonRelBuildWithAsserts']' returned non-zero exit status 1.
    downloading and extracting https://github.com/pybind/pybind11/archive/refs/tags/v2.10.0.tar.gz ...
    downloading and extracting https://github.com/ptillet/triton-llvm-releases/releases/download/llvm-17.0.0-37b7a60cd74b/llvm+mlir-17.0.0-x86_64-linux-gnu-ubuntu-18.04-release.tar.xz ...
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/zsuri/triton/python/setup.py'"'"'; __file__='"'"'/home/zsuri/triton/python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix= Check the logs for full command output.
@hypersniper05
Copy link

same

1 similar comment
@Gong1130
Copy link

Gong1130 commented Mar 7, 2024

same

ZzEeKkAa pushed a commit to ZzEeKkAa/triton that referenced this issue Aug 5, 2024
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

3 participants