a-r-j / graphein

Protein Graph Library
https://graphein.ai/
MIT License
1.01k stars 126 forks source link

ImportError: libcudart.so.10.1: cannot open shared object file: No such file or directory #247

Closed johnnytam100 closed 1 year ago

johnnytam100 commented 1 year ago

Hi @a-r-j ! how are you doing?

I am trying to build mesh by following the protein_mesh_tutorial.ipynb with colab.

Unfortunately, in this cell

# NBVAL_SKIP
from graphein.protein.meshes import create_mesh

verts, faces, aux = create_mesh(pdb_code="1ldf", config=config)
print(verts, faces, aux)

I met a cuda error as follows:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
[<ipython-input-8-574afbf9398e>](https://localhost:8080/#) in <module>
      2 from graphein.protein.meshes import create_mesh
      3 
----> 4 verts, faces, aux = create_mesh(pdb_code="1ldf", config=config)
      5 print(verts, faces, aux)

4 frames
[/usr/local/lib/python3.8/dist-packages/pytorch3d/renderer/blending.py](https://localhost:8080/#) in <module>
      7 
      8 # pyre-fixme[21]: Could not find name `_C` in `pytorch3d`.
----> 9 from pytorch3d import _C
     10 
     11 

ImportError: libcudart.so.10.1: cannot open shared object file: No such file or directory

Do you know how to solve this?

Thanks again!

a-r-j commented 1 year ago

Hi @johnnytam100 this is not a Graphein problem. The most likely scenario is that your Pytorch3d installation is mismatched with your system. Check if Pytorch & Pytorch3d are both cuda or cpu installs and that you have the appropriate cuda version installed.