SeanNaren / warp-ctc

Pytorch Bindings for warp-ctc
Apache License 2.0
756 stars 271 forks source link

Import error: libtorch_cpu.so: cannot open shared object file: No such file or directory #187

Open scfang opened 3 years ago

scfang commented 3 years ago

Hello, I've been trying to install warp-ctc and getting the package to import in my environment, but I constantly run into this error:

>>> import warpctc_pytorch
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ubuntu/anaconda3/envs/pytorch_latest_p37/lib/python3.7/site-packages/warpctc_pytorch-0.1-py3.7-linux-x86_64.egg/warpctc_pytorch/__init__.py", line 6, in <module>
    from ._warp_ctc import *  # noqa
ImportError: libtorch_cpu.so: cannot open shared object file: No such file or directory

I'm currently using Pytorch 1.4.0, but I've tried running this on 1.6.0 as well, but I think I ran into a different issue. On switching Pytorch versions, I've tried rebuilding the project and reinstalling as instructed in the readme, but I have had no luck getting the import to work. Any help would be appreciated