parlance / ctcdecode

PyTorch CTC Decoder bindings
MIT License
829 stars 245 forks source link

_ctc_decode import issue #35

Closed eturner303 closed 7 years ago

eturner303 commented 7 years ago

Hello,

I am still experiencing the _ctc_decode import issue, with the latest pytorch-ctc checkout from the Git repository.

The relevant error lines are:

python

Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import torch import pytorch_ctc Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/pytorch_ctc/init.py", line 4, in from ._ctc_decode import lib as _lib, ffi as _ffi SystemError: dynamic module not initialized properly

ryanleary commented 7 years ago

I think this may be resolved if using the latest pytorch_ctc and latest pytorch (current master branch). @SeanNaren has some more details on this one.

ryanleary commented 7 years ago

Check that -- @SeanNaren has a branch that addresses this. It will be contingent on a change in the master version of pytorch.

SeanNaren commented 7 years ago

The newest build system should now work for python 2.7 using the master branch.