-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Cannot import torch-spline-conv when installed from pip wheel in Torch 1.9.0 and CUDA 11.1 #2744
Comments
Can you show me the output of |
I got this pip install --verbose --no-index torch-scatter -f https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html> pip install --verbose --no-index torch-scatter -f https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html > Using pip 21.1.2 from /opt/anaconda3/lib/python3.7/site-packages/pip (python 3.7) > Non-user install because site-packages writeable > Ignoring indexes: https://pypi.org/simple > Created temporary directory: /tmp/pip-ephem-wheel-cache-4tm8ouxt > Created temporary directory: /tmp/pip-req-tracker-kb9fo3av > Initialized build tracking at /tmp/pip-req-tracker-kb9fo3av > Created build tracker: /tmp/pip-req-tracker-kb9fo3av > Entered build tracker: /tmp/pip-req-tracker-kb9fo3av > Created temporary directory: /tmp/pip-install-mxk9uotc > Looking in links: https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html > 1 location(s) to search for versions of torch-scatter: > * https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html > Fetching project page and analyzing links: https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html > Getting page https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html > Looking up "https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html" in the cache > Request header has "max_age" as 0, cache bypassed > Starting new HTTPS connection (1): pytorch-geometric.com:443 > https://pytorch-geometric.com:443 "GET /whl/torch-1.9.0+cu111.html HTTP/1.1" 200 4237 > Updating cache with response from "https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html" > Caching due to etag > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_cluster-1.5.9-cp36-cp36m-linux_x86_64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_cluster-1.5.9-cp36-cp36m-win_amd64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_cluster-1.5.9-cp37-cp37m-linux_x86_64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_cluster-1.5.9-cp37-cp37m-win_amd64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_cluster-1.5.9-cp38-cp38-linux_x86_64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_cluster-1.5.9-cp38-cp38-win_amd64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_cluster-1.5.9-cp39-cp39-linux_x86_64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_cluster-1.5.9-cp39-cp39-win_amd64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: none of the wheel's tags (cp36-cp36m-linux_x86_64) are compatible (run pip debug --verbose to show compatible tags): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_scatter-2.0.7-cp36-cp36m-linux_x86_64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: none of the wheel's tags (cp36-cp36m-win_amd64) are compatible (run pip debug --verbose to show compatible tags): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_scatter-2.0.7-cp36-cp36m-win_amd64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Found link https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_scatter-2.0.7-cp37-cp37m-linux_x86_64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html), version: 2.0.7 > Skipping link: none of the wheel's tags (cp37-cp37m-win_amd64) are compatible (run pip debug --verbose to show compatible tags): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_scatter-2.0.7-cp37-cp37m-win_amd64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: none of the wheel's tags (cp38-cp38-linux_x86_64) are compatible (run pip debug --verbose to show compatible tags): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_scatter-2.0.7-cp38-cp38-linux_x86_64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: none of the wheel's tags (cp38-cp38-win_amd64) are compatible (run pip debug --verbose to show compatible tags): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_scatter-2.0.7-cp38-cp38-win_amd64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: none of the wheel's tags (cp39-cp39-linux_x86_64) are compatible (run pip debug --verbose to show compatible tags): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_scatter-2.0.7-cp39-cp39-linux_x86_64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: none of the wheel's tags (cp39-cp39-win_amd64) are compatible (run pip debug --verbose to show compatible tags): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_scatter-2.0.7-cp39-cp39-win_amd64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_sparse-0.6.10-cp36-cp36m-linux_x86_64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_sparse-0.6.10-cp36-cp36m-win_amd64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_sparse-0.6.10-cp37-cp37m-linux_x86_64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_sparse-0.6.10-cp37-cp37m-win_amd64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_sparse-0.6.10-cp38-cp38-linux_x86_64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_sparse-0.6.10-cp38-cp38-win_amd64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_sparse-0.6.10-cp39-cp39-linux_x86_64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_sparse-0.6.10-cp39-cp39-win_amd64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_spline_conv-1.2.1-cp36-cp36m-linux_x86_64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_spline_conv-1.2.1-cp36-cp36m-win_amd64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_spline_conv-1.2.1-cp37-cp37m-linux_x86_64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_spline_conv-1.2.1-cp37-cp37m-win_amd64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_spline_conv-1.2.1-cp38-cp38-linux_x86_64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_spline_conv-1.2.1-cp38-cp38-win_amd64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_spline_conv-1.2.1-cp39-cp39-linux_x86_64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: wrong project name (not torch-scatter): https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_spline_conv-1.2.1-cp39-cp39-win_amd64.whl (from https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html) > Skipping link: unsupported archive format: .html: https://pytorch-geometric.com/whl/torch-1.9.0+cu111.html > Given no hashes to check 1 links for project 'torch-scatter': discarding no candidates > Collecting torch-scatter > Created temporary directory: /tmp/pip-unpack-6wha6z09 > Looking up "https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_scatter-2.0.7-cp37-cp37m-linux_x86_64.whl" in the cache > No cache entry available > https://pytorch-geometric.com:443 "GET /whl/torch-1.9.0%2Bcu111/torch_scatter-2.0.7-cp37-cp37m-linux_x86_64.whl HTTP/1.1" 200 2855533 > Downloading https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_scatter-2.0.7-cp37-cp37m-linux_x86_64.whl (2.9 MB) > |████████████████████████████████| 2.8 MB 6.9 MB/s eta 0:00:01 Updating cache with response from "https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_scatter-2.0.7-cp37-cp37m-linux_x86_64.whl" > Caching due to etag > |████████████████████████████████| 2.9 MB 6.9 MB/s > Added torch-scatter from https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_scatter-2.0.7-cp37-cp37m-linux_x86_64.whl to build tracker '/tmp/pip-req-tracker-kb9fo3av' > Removed torch-scatter from https://pytorch-geometric.com/whl/torch-1.9.0%2Bcu111/torch_scatter-2.0.7-cp37-cp37m-linux_x86_64.whl from build tracker '/tmp/pip-req-tracker-kb9fo3av' > Created temporary directory: /tmp/pip-unpack-lfv6oes1 > Installing collected packages: torch-scatter > > Successfully installed torch-scatter-2.0.7 > Removed build tracker: '/tmp/pip-req-tracker-kb9fo3av'Btw, I always uninstall the old packages, run |
Ok, this looks good. And you get a similar error when running |
I can actually import torch_scatter, torch_sparse, torch_cluster, and torch_geometric without error. It's only
|
Ah I see, thanks for the clarification. And |
Ok, I'm trying to track this issue down, but it's unclear to me why imports of other packages work fine, while it fails for Other-wise, you can try multiple options:
You should also check what version of glibc you have on your CentOS 7 machine. |
Yes, I can confirm all other packages work fine in my code when I uninstalled Actually when I build Thanks very much for your help! |
I'd like to reopen this issue since building from source doesn't fix the underlying problem of the wheels. It doesn't seem to be a CUDA version specific issue, since I've experienced the same with CUDA 10.2. Moreover, I've tested it with several python versions, from ReproducibilityPytorch and dependencies installed with
Python output ❯ python
Python 3.9.5 | packaged by conda-forge | (default, Jun 19 2021, 00:32:32)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch_spline_conv
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "envs/test39/lib/python3.9/site-packages/torch_spline_conv/__init__.py", line 11, in <module>
torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
File "envs/test39/lib/python3.9/site-packages/torch/_ops.py", line 104, in load_library
ctypes.CDLL(path)
File "envs/test39/lib/python3.9/ctypes/__init__.py", line 382, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by envs/test39/lib/python3.9/site-packages/torch_spline_conv/_basis_cuda.so) The bug only shows up in a CUDA capable machine. Importing the module on a machine without CUDA support works fine. |
Ok, please submit this issue to You can also check which CUDA file produces the output by checking the |
@JonnyTran @saiden89 |
Issue submitted in the appropriate repository. |
I updated the wheels for |
Unfortunately, it doesn't... sorry. I've also created a new conda env from scratch and |
I'm closing this for now, see rusty1s/pytorch_spline_conv#22. Please feel free to re-open if you think this issue is not resolved yet. |
FYI, it seems that this issue persists with torch 1.11.0, however uninstalling |
The issue persists! "pip install torch-spline-conv -f https://data.pyg.org/whl/torch-2.0.0+${CUDA}.html" worked for me! |
📚 Installation
I had been able install all pytorch-geometric related packages via pip prior to the new 1.7.1 release and it all works well. However, with the new release,
pip install
seems to skip "building the wheel" for torch-spline-conv, but still give a successful installation. When importing the torch-spline-conv, it then gives this error:Environment
Checklist
nvcc
.Additional context
The text was updated successfully, but these errors were encountered: