Skip to content

Issue with uv #10178

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

Open
SmokeShine opened this issue Apr 9, 2025 · 1 comment
Open

Issue with uv #10178

SmokeShine opened this issue Apr 9, 2025 · 1 comment

Comments

@SmokeShine
Copy link

πŸ› Describe the bug

Unable to import torch-geometric with uv

uv pip install torch-scatter 

Failed to build `torch-scatter==2.1.2`
  β”œβ”€β–Ά The build backend returned an error
  ╰─▢ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit status: 1)
ModuleNotFoundError: No module named 'torch'

      hint: This error likely indicates that `[email protected]` depends on `torch`, but doesn't declare it as a build dependency. If `torch-scatter`
      is a first-party package, consider adding `torch` to its `build-system.requires`. Otherwise, `uv pip install torch` into the environment and
      re-run with `--no-build-isolation`.

Versions

python 3.12

uv run python3 collect_env.py is throwing errors about splitline.

Python 3.12.8 (main, Jan  5 2025, 06:55:30) [Clang 19.1.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch; print(torch.version.cuda)
None
>>> import torch; print(torch.__version__)
2.6.0
>>> from torch_geometric.data import Data
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'torch_geometric'
@SmokeShine SmokeShine added the bug label Apr 9, 2025
@akihironitta
Copy link
Member

uv pip install torch-scatter

Hi @SmokeShine, it looks like you're not installing torch-geometric in your uv command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants