Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

python

pytorch

While running smdataparallel, I see following error

# python
Python 3.6.10 |Anaconda, Inc.| (default, May  8 2020, 02:54:21)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import smdistributed.dataparallel.torch.distributed as dist
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/conda/lib/python3.6/site-packages/smdistributed/dataparallel/__init__.py", line 16, in <module>
    import smddpcommon as hc
ImportError: libc10.so: cannot open shared object file: No such file or directory
like image 863
Chaitanya Bapat Avatar asked Dec 17 '22 11:12

Chaitanya Bapat


1 Answers

libc10.so is made available by pytorch. Hence first

import torch

and then import packages that depend on pytorch.

like image 112
Chaitanya Bapat Avatar answered Feb 06 '23 18:02

Chaitanya Bapat