-
Notifications
You must be signed in to change notification settings - Fork 35
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 #22
Comments
I'm sadly still not able to reproduce this issue on three different Ubuntu machines. Can you show me the output of running |
❯ ldd --version
ldd (GNU libc) 2.17
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
|
I see. I'm seeing if I can go back to building via |
Updated the wheels. Please try again :) |
Unfortunately, it doesn't... sorry. I've also created a new conda env from scratch and |
Ok, but the error message should be different, right? Other-wise this might be a cache issue with AWS. |
It looks the same to me ❯ 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 ".conda/envs/spline/lib/python3.9/site-packages/torch_spline_conv/__init__.py", line 11, in <module>
torch.ops.load_library(importlib.machinery.PathFinder().find_spec(
File ".conda/envs/spline/lib/python3.9/site-packages/torch/_ops.py", line 104, in load_library
ctypes.CDLL(path)
File ".conda/envs/spline/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 .conda/envs/spline/lib/python3.9/site-packages/torch_spline_conv/_basis_cuda.so) |
Can you try to install via:
|
That did it, now it works 😄. What was the issue? |
Should work just fine with |
I'm closing this for now. Please feel free to re-open if you think this issue is not resolved yet. |
Hello! I'm currently getting the same issue. I'm on torch version 1.10.0, pytorch-geometric 2.02, and cuda version 11.3. Here are the commands I ran
Here's the error message
Then, I try importing, and it doesn't work... Any help would be great |
GLIBC=2.27 is now required as GitHub Actions no longer provide support for |
FYI you may not require |
I'm also still having the same issue: Here are the relevant lines from the output of
I tried Also, I'm not sure what @rusty1s means by
Could you please elaborate on what that means for users of PyTorch Geometric? |
We will use GitHub Actions to build our wheels. For linux, this means that we make use of |
I am still having this issue.
Do you have any advice @rusty1s ? |
Actually I was able to pip install this successfully once I loaded the right cuda environment variables. Thanks! |
@hnisonoff can you please describe what cuda environment variables you changed to get it working? |
As discussed here, installing
torch-spline-conv
via the provided wheels fails withOSError: /lib64/libm.so.6: version 'GLIBC_2.27' not found
.We know that:
cudatoolkit
versionpython
versiontorch 1.9.0
As per @rusty1s suggestion, adding a
print
statement intorch_spline_conv/__init__.py
between lines 10 and 11, produces the following output:Meaning that the culprit is
_basis_cuda
, as also mentioned in the last line of the error.Further examination using
diff
between the recompiled (working) package in thepytorch
conda environment and the original one thetest39
environment produced the following output:I don't know enough about the subject to make wild speculations, but could it be possible that the provided wheels were compiled in a different environment than the one they're supposed to work in?
The text was updated successfully, but these errors were encountered: