-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Pip Install faling in colab #1366
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
Comments
Can you retry with |
Using pip 23.1.2 from /usr/local/lib/python3.10/dist-packages/pip (python 3.10)
Collecting llama-cpp-python
Downloading llama_cpp_python-0.2.63.tar.gz (37.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 37.5/37.5 MB 15.7 MB/s eta 0:00:00
Running command pip subprocess to install build dependencies
Using pip 23.1.2 from /usr/local/lib/python3.10/dist-packages/pip (python 3.10)
Collecting scikit-build-core[pyproject]>=0.5.1
Downloading scikit_build_core-0.9.1-py3-none-any.whl (151 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 151.5/151.5 kB 3.1 MB/s eta 0:00:00
Collecting exceptiongroup>=1.0 (from scikit-build-core[pyproject]>=0.5.1)
Downloading exceptiongroup-1.2.1-py3-none-any.whl (16 kB)
Collecting packaging>=21.3 (from scikit-build-core[pyproject]>=0.5.1)
Downloading packaging-24.0-py3-none-any.whl (53 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.5/53.5 kB 5.1 MB/s eta 0:00:00
Collecting pathspec>=0.10.1 (from scikit-build-core[pyproject]>=0.5.1)
Downloading pathspec-0.12.1-py3-none-any.whl (31 kB)
Collecting tomli>=1.2.2 (from scikit-build-core[pyproject]>=0.5.1)
Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
Installing collected packages: tomli, pathspec, packaging, exceptiongroup, scikit-build-core
Successfully installed exceptiongroup-1.2.1 packaging-24.0 pathspec-0.12.1 scikit-build-core-0.9.1 tomli-2.0.1
Installing build dependencies ... done
Running command Getting requirements to build wheel
Traceback (most recent call last):
File "/tmp/pip-build-env-_cf4p64j/overlay/local/lib/python3.10/dist-packages/scikit_build_core/program_search.py", line 81, in get_cmake_program
result = Run().capture(cmake_path, "-E", "capabilities")
File "/tmp/pip-build-env-_cf4p64j/overlay/local/lib/python3.10/dist-packages/scikit_build_core/_shutil.py", line 43, in capture
return self._run(args, capture=True)
File "/tmp/pip-build-env-_cf4p64j/overlay/local/lib/python3.10/dist-packages/scikit_build_core/_shutil.py", line 71, in _run
return subprocess.run(
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/local/bin/cmake', '-E', 'capabilities']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-build-env-_cf4p64j/overlay/local/lib/python3.10/dist-packages/scikit_build_core/program_search.py", line 90, in get_cmake_program
result = Run().capture(cmake_path, "--version")
File "/tmp/pip-build-env-_cf4p64j/overlay/local/lib/python3.10/dist-packages/scikit_build_core/_shutil.py", line 43, in capture
return self._run(args, capture=True)
File "/tmp/pip-build-env-_cf4p64j/overlay/local/lib/python3.10/dist-packages/scikit_build_core/_shutil.py", line 71, in _run
return subprocess.run(
File "/usr/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/usr/local/bin/cmake', '--version']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-_cf4p64j/overlay/local/lib/python3.10/dist-packages/scikit_build_core/build/__init__.py", line 126, in get_requires_for_build_wheel
[*requires.cmake(), *requires.ninja()] if requires.settings.wheel.cmake else []
File "/tmp/pip-build-env-_cf4p64j/overlay/local/lib/python3.10/dist-packages/scikit_build_core/builder/get_requires.py", line 78, in cmake
cmake = best_program(get_cmake_programs(module=False), version=cmake_verset)
File "/tmp/pip-build-env-_cf4p64j/overlay/local/lib/python3.10/dist-packages/scikit_build_core/program_search.py", line 169, in best_program
for program in programs:
File "/tmp/pip-build-env-_cf4p64j/overlay/local/lib/python3.10/dist-packages/scikit_build_core/program_search.py", line 125, in get_cmake_programs
yield get_cmake_program(cmake_path)
File "/tmp/pip-build-env-_cf4p64j/overlay/local/lib/python3.10/dist-packages/scikit_build_core/program_search.py", line 105, in get_cmake_program
result.stdout,
UnboundLocalError: local variable 'result' referenced before assignment While cmake --version returned cmake version 3.27.9
CMake suite maintained and supported by Kitware (kitware.com/cmake). |
Also ran into this. Seems to be a result of scikit-build-core v0.9.1 (scikit-build/scikit-build-core#717). No issue with v0.9.0. The |
Command:
Result:
I didn't change anything, it worked yesterday, but failed today. |
I found a way to make it work on Google Colab! (GPU support works) First install OK version of scikit:
Then use this "build isolation" version of the build command:
EDIT: works on T4, you may need to change the flags for other GPUs. |
Yes looks like it's been reported now in scikit-build-core scikit-build/scikit-build-core#718 so I'll keep an eye on it. I may add a |
It's already fixed in version |
This was wonderful- Thank you so much! 🙏🏼❤️
|
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
CMAKE_ARGS="-DLLAMA_CUDA=on" pip install llama-cpp-python
This should be installing in colab environment. It worked up untill yesterday but now it is failing to install.
Current Behavior
Collecting llama-cpp-python
Downloading llama_cpp_python-0.2.63.tar.gz (37.5 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 37.5/37.5 MB 42.1 MB/s eta 0:00:00
Installing build dependencies ... done
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
The text was updated successfully, but these errors were encountered: