[BUG]Cannot manually install cuVS
Nobody has claimed this yet.
- Dominant language
- Cuda
- Stars
- 854
- Forks
- 236
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 62
Description
cuvs/build.sh failed
Hi! I am trying to do some adjustment on your source code of cagra and check if it could work. However, I failed to manually install your cuvs package (without any modification).
Could you kindly tell me if there is a better way for me to complete it, or help with the maunually installation problem.
/cuvs-branch-24.12$ ./build.sh python
Looking in indexes: https://mirrors.ustc.edu.cn/pypi/web/simple
Processing ./python/cuvs
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [30 lines of output]
Traceback (most recent call last):
File "/share/public/chenzk/Miniconda3/envs/transformer/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/share/public/chenzk/Miniconda3/envs/transformer/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/share/public/chenzk/Miniconda3/envs/transformer/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/share/public/chenzk/Miniconda3/envs/transformer/lib/python3.11/site-packages/rapids_build_backend/impls.py", line 370, in prepare_metadata_for_build_wheel
return _get_backend(config.build_backend).prepare_metadata_for_build_wheel(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/share/public/chenzk/Miniconda3/envs/transformer/lib/python3.11/site-packages/scikit_build_core/build/__init__.py", line 96, in prepare_metadata_for_build_wheel
return _build_wheel_impl(
^^^^^^^^^^^^^^^^^^
File "/share/public/chenzk/Miniconda3/envs/transformer/lib/python3.11/site-packages/scikit_build_core/build/wheel.py", line 175, in _build_wheel_impl
return _build_wheel_impl_impl(
^^^^^^^^^^^^^^^^^^^^^^^
File "/share/public/chenzk/Miniconda3/envs/transformer/lib/python3.11/site-packages/scikit_build_core/build/wheel.py", line 232, in _build_wheel_impl_impl
metadata = get_standard_metadata(pyproject, settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/share/public/chenzk/Miniconda3/envs/transformer/lib/python3.11/site-packages/scikit_build_core/build/metadata.py", line 40, in get_standard_metadata
metadata = StandardMetadata.from_pyproject(new_pyproject_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/share/public/chenzk/Miniconda3/envs/transformer/lib/python3.11/site-packages/scikit_build_core/_vendor/pyproject_metadata/__init__.py", line 238, in from_pyproject
version = packaging.version.Version(version_string) if version_string else None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/share/public/chenzk/Miniconda3/envs/transformer/lib/python3.11/site-packages/packaging/version.py", line 202, in __init__
raise InvalidVersion(f"Invalid version: '{version}'")
packaging.version.InvalidVersion: Invalid version: '../../../VERSION'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
My environment is:
Miniconda 24.7.1
python 3.11.10
cmake 3.27.4
gcc 11.4.0
nvcc 12.1
packaging 24.1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with cuvs/build.sh and the python/cuvs package metadata, then reproduce the ./build.sh python command in an environment matching the reported versions. Trace how the package version is read during metadata generation and compare it with the expected version format. Done means manual installation completes past metadata generation without the reported InvalidVersion error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100