Closed Dinghow closed 5 years ago
I get the same problem. @Dinghow Have you solved the problem yet?
@ZGAI Not yet
@SeanNaren Hi, Could you give us any help? Thanks!
@Dinghow I have solved it now. You should upgrade your gcc. I upgrade my gcc from 4.8.5 -> 5.4.0.
@ZGAI Thanks, I will try that way
Hi, do we need reinstall pytorch and warp_ctc after upgrade GCC ?
@ZGAI After upgrading the gcc version, did you reinstall the module again? I tried to upgrade the gcc version, tested the module without reinstall it and still got the error (Segmentation fault (core dumped)).
When I compiled and reinstall the module with gcc 5.4.0, I got the current error when import CTCLoss, did you got this problem?
ImportError Traceback (most recent call last)
@ZGAI After upgrading the gcc version, did you reinstall the module again? I tried to upgrade the gcc version, tested the module without reinstall it and still got the error (Segmentation fault (core dumped)).
When I compiled and reinstall the module with gcc 5.4.0, I got the current error when import CTCLoss, did you got this problem?
In [2]: from warpctc_pytorch import CTCLoss
ImportError Traceback (most recent call last) in ----> 1 from warpctc_pytorch import CTCLoss
/disk2/dongsq/environments/python3.6/lib/python3.6/site-packages/warpctc_pytorch-0.1-py3.6-linux-x86_64.egg/warpctc_pytorch/init.py in 4 from torch.nn import Module 5 ----> 6 from ._warp_ctc import * 7 8
ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /disk2/dongsq/environments/python3.6/lib/python3.6/site-packages/warpctc_pytorch-0.1-py3.6-linux-x86_64.egg/warpctc_pytorch/_warp_ctc.cpython-36m-x86_64-linux-gnu.so)
I have solved it now. I got this because that I didn't update the softlink of libstdc++.so.6
I run the example code in README
When I execute to
cost = ctc_loss(probs, labels, probs_sizes, label_sizes)
, python crashed with 'Segmentation fault (core dumped)'My python version is 3.6, pytorch is 1.0.0